source: projects/specs/trunk/n/netcdf/netcdf-vl.spec @ 7034

Revision 7034, 3.3 KB checked in by Takemikaduchi, 12 years ago (diff)

GMT-coastlines: new package
others: new upstream release

Line 
1Summary:        Libraries for the Unidata network Common Data Form
2Name:           netcdf
3Version:        4.2.1.1
4Release:        1%{?_dist_release}
5Source0:        http://www.unidata.ucar.edu/downloads/%{name}/ftp/%{name}-%{version}.tar.gz
6Group:          Applications/Engineering
7License:        NetCDF
8URL:            http://www.unidata.ucar.edu/downloads/netcdf/index.jsp
9
10BuildRoot:      %{_tmppath}/%{name}-%{version}-root
11#BuildRequires:  gcc-g77
12BuildRequires:  gcc-gfortran
13BuildRequires:  zlib-devel
14BuildRequires:  hdf5-devel
15
16%description
17NetCDF (network Common Data Form) is an interface for
18array-oriented data access and a freely-distributed collection of
19software libraries for C, Fortran, C++, and perl that provides an
20implementation of the interface.  The NetCDF library also defines a
21machine-independent format for representing scientific data. Together,
22the interface, library, and format support the creation, access, and
23sharing of scientific data. The NetCDF software was developed at the
24Unidata Program Center in Boulder, Colorado.
25
26NetCDF data is:
27
28   o Self-Describing: A NetCDF file includes information about the
29     data it contains.
30
31   o Network-transparent:  A NetCDF file is represented in a form that
32     can be accessed by computers with different ways of storing
33     integers, characters, and floating-point numbers.
34
35   o Direct-access:  A small subset of a large dataset may be accessed
36     efficiently, without first reading through all the preceding
37     data.
38
39   o Appendable:  Data can be appended to a NetCDF dataset along one
40     dimension without copying the dataset or redefining its
41     structure. The structure of a NetCDF dataset can be changed,
42     though this sometimes causes the dataset to be copied.
43
44   o Sharable:  One writer and multiple readers may simultaneously
45     access the same NetCDF file.
46
47%package devel
48Summary:        Development files for netcdf
49Group:          Development/Libraries
50Requires:       %{name} = %{version}-%{release}
51
52%description devel
53This package contains the netCDF header files, libs, and man
54pages.
55
56
57%prep
58%setup -q -n %{name}-%{version}
59
60
61%build
62#cd src
63%configure --enable-shared --disable-static
64%__make
65
66
67%install
68rm -rf ${RPM_BUILD_ROOT}
69mkdir ${RPM_BUILD_ROOT}
70mkdir -p ${RPM_BUILD_ROOT}%{_includedir}/netcdf
71mkdir -p ${RPM_BUILD_ROOT}%{_libdir}
72mkdir -p ${RPM_BUILD_ROOT}%{_datadir}
73mkdir -p ${RPM_BUILD_ROOT}%{_mandir}
74#cd src
75%makeinstall INCDIR=${RPM_BUILD_ROOT}%{_includedir}/netcdf \
76  LIBDIR=${RPM_BUILD_ROOT}%{_libdir} \
77  MANDIR=${RPM_BUILD_ROOT}%{_mandir}
78
79find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
80
81%clean
82rm -rf ${RPM_BUILD_ROOT}
83
84%post -p /sbin/ldconfig
85
86%preun -p /sbin/ldconfig
87
88
89%files
90%defattr(-,root,root,-)
91%doc COPYRIGHT README
92%{_bindir}/*
93%{_libdir}/*.so.*
94%{_mandir}/man1/*
95
96%files devel
97%defattr(-,root,root,-)
98%{_includedir}/*
99%{_libdir}/*.so
100%{_libdir}/pkgconfig/*
101%{_mandir}/man3/*
102
103
104%changelog
105* Sun Oct 28 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.2.1.1-1
106- update to 4.2.1.1
107- add BuildRequires: zlib-devel, hdf5-devel
108
109* Mon Jan 11 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.0.1-1
110- new upstream release
111
112* Sun Oct  5 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.6.0.p1-1
113- new versioning policy
114
115* Sat Aug 25 2007 Shu KONNO <owa@bg.wakwak.com> 3.6.0.p1-0vl2
116- changed BuildRequires gcc-g77 to gcc-gfortran
117
118* Fri Oct 21 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 3.6.0.p1-0vl1
119- initial build for Vine Linux
Note: See TracBrowser for help on using the repository browser.