Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.1:Update
netcdf
netcdf.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File netcdf.spec of Package netcdf
# # spec file for package netcdf # # Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild %define ncdf_so_major 4 Name: netcdf Summary: Library for Array Oriented Data Access Version: 4.0.1 Release: 12 Group: System/Libraries License: MIT License (or similar) Url: http://www.unidata.ucar.edu/software/netcdf/ Source: %{name}-%{version}.tar.bz2 Source1: nc-config.1.gz Patch0: netcdf-correct_casting.patch Patch1: %{name}-%{version}-dependencies.patch Patch2: %{name}-%{version}-delete.patch Patch3: netcdf-codecleanup.patch Patch4: netcdf-no_date_time.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: gcc-c++ gcc-fortran PreReq: %install_info_prereq %description This library provides array-oriented data access for the languages C and C++. Authors: -------- Glenn Davis Russ Rew Steve Emmerson Harvey Davies <support@unidata.ucar.edu> %package -n libnetcdf%{ncdf_so_major} License: MIT License (or similar) Summary: Library for Array Oriented Data Access Group: Development/Libraries/C and C++ Provides: libnetcdf-4 = %{version} Obsoletes: libnetcdf-4 < %{version} %description -n libnetcdf%{ncdf_so_major} This library provides array-oriented data access for the languages C and C++. Authors: -------- Glenn Davis Russ Rew Steve Emmerson Harvey Davies <support@unidata.ucar.edu> %package -n libnetcdf-devel License: MIT License (or similar) Summary: Library for Array Oriented Data Access Group: Development/Libraries/C and C++ Requires: libnetcdf%{ncdf_so_major} = %{version} Requires: pkgconfig BuildRequires: pkgconfig %description -n libnetcdf-devel This library provides array-oriented data access for the languages C and C++. Authors: -------- Glenn Davis Russ Rew Steve Emmerson Harvey Davies <support@unidata.ucar.edu> %prep %setup -q %patch0 %patch1 %patch2 %patch3 %patch4 %build export CC=gcc CXX=g++ FC=gfortran \ CFLAGS="%{optflags}" CXXFLAGS="%{optflags}" FCFLAGS="%{optflags}" %configure \ --enable-shared \ --disable-static \ --with-pic make %{?jobs:-j %jobs} %install %makeinstall mkdir -p %{buildroot}%{_mandir}/man1 install -m644 %{S:1} %{buildroot}%{_mandir}/man1 rm -f %{buildroot}%{_infodir}/dir rm -f %{buildroot}%{_libdir}/*.la %clean rm -rf %{buildroot} %post -n libnetcdf-devel for i in netcdf-c netcdf-tutorial netcdf-f90 netcdf-f77 netcdf-install netcdf netcdf-cxx; do %install_info --info-dir=%{_infodir} %{_infodir}/$i.info.gz done %postun -n libnetcdf-devel for i in netcdf-c netcdf-tutorial netcdf-f90 netcdf-f77 netcdf-install netcdf netcdf-cxx; do %install_info_delete --info-dir=%{_infodir} %{_infodir}/$i.info.gz done %post -n libnetcdf%{ncdf_so_major} -p /sbin/ldconfig %postun -n libnetcdf%{ncdf_so_major} -p /sbin/ldconfig %files %defattr(-,root,root) %doc COPYRIGHT README RELEASE_NOTES %{_bindir}/* %exclude %{_bindir}/nc-config %{_mandir}/man1/* %exclude %{_mandir}/man1/nc-config.1.gz %files -n libnetcdf-devel %defattr(-,root,root) %{_bindir}/nc-config %{_includedir}/* %{_libdir}/*.so %{_libdir}/pkgconfig/netcdf.pc %{_mandir}/man1/nc-config.1.gz %{_mandir}/man3/* %{_infodir}/* %files -n libnetcdf%{ncdf_so_major} %defattr(-,root,root) %{_libdir}/libnetcdf.so.* %{_libdir}/libnetcdf_c++.so.* %{_libdir}/libnetcdff.so.* %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor