- new
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 8 Mar 2014 16:08:57 +0000 (17:08 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Sat, 8 Mar 2014 16:08:57 +0000 (17:08 +0100)
cdflib.spec [new file with mode: 0644]

diff --git a/cdflib.spec b/cdflib.spec
new file mode 100644 (file)
index 0000000..3115c10
--- /dev/null
@@ -0,0 +1,116 @@
+Summary:       CDF (Common Data Format) software
+Summary(pl.UTF-8):     Oprogramowanie obsługujące CDF (Common Data Format)
+Name:          cdflib
+Version:       3.5.0.1
+Release:       1
+License:       freely usable, non-commercially distributable
+Group:         Libraries
+# see http://cdf.gsfc.nasa.gov/html/sw_and_docs.html
+Source0:       http://cdaweb.gsfc.nasa.gov/pub/software/cdf/dist/cdf35_0/linux/cdf35_0-dist-all.tar.gz
+# Source0-md5: 61dcabe51427e03f83b8a6dcf9d4dfd4
+URL:           http://cdf.gsfc.nasa.gov/cdf_home.html
+BuildRequires: gcc-fortran >= 6:4.4.2
+BuildRequires: ncurses-devel
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+CDF (Common Data Format) software.
+
+%description -l pl.UTF-8
+Oprogramowanie obsługujące CDF (Common Data Format).
+
+%package devel
+Summary:       C and Fortran header files for CDF library
+Summary(pl.UTF-8):     Pliki nagłówkowe C i Fortranu do biblioteki CDF
+Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+
+%description devel
+C and Fortran header files for CDF library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe C i Fortranu do biblioteki CDF.
+
+%package static
+Summary:       Static CDF library
+Summary(pl.UTF-8):     Statyczna biblioteka CDF
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{version}-%{release}
+
+%description static
+Static CDF library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka CDF.
+
+%package -n java-cdflib
+Summary:       Java API for CDF library
+Summary(pl.UTF-8):     API Javy do biblioteki CDF
+Group:         Libraries/Java
+URL:           http://cdf.gsfc.nasa.gov/cdfjava_doc/index.html
+Requires:      %{name} = %{version}-%{release}
+
+%description -n java-cdflib
+Java API for CDF library.
+
+%description -n java-cdflib -l pl.UTF-8
+API Javy do biblioteki CDF.
+
+%prep
+%setup -q -n cdf35_0-dist
+
+%build
+%{__make} all \
+       OS=linux \
+       ENV=gnu \
+       CC_linux_gnu="%{__cc}" \
+       LIBCDFa="../lib/libcdf.so" \
+       UCOPTIONS="%{rpmcflags}"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+       INSTALLDIR=$RPM_BUILD_ROOT%{_prefix}
+
+%if "%{_lib}" != "lib"
+%{__mv} $RPM_BUILD_ROOT%{_prefix}/{lib,%{_lib}}
+%endif
+
+install -d $RPM_BUILD_ROOT%{_datadir}/cdf
+%{__mv} $RPM_BUILD_ROOT%{_prefix}/CDFLeapSeconds.txt $RPM_BUILD_ROOT%{_datadir}/cdf
+%{__mv} $RPM_BUILD_ROOT%{_bindir}/definitions.* $RPM_BUILD_ROOT%{_datadir}/cdf
+
+install -d $RPM_BUILD_ROOT%{_javadir}
+cp -p cdfjava/classes/cdfjava.jar $RPM_BUILD_ROOT%{_javadir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CDF_copyright.txt CHANGES.txt README_cdf_tools.txt Release.notes Welcome.txt
+%attr(755,root,root) %{_bindir}/cdf*
+%attr(755,root,root) %{_bindir}/skeletoncdf
+%attr(755,root,root) %{_bindir}/skeletontable
+%attr(755,root,root) %{_libdir}/libcdf.so
+%{_libdir}/cdf
+%{_datadir}/cdf
+
+%files devel
+%defattr(644,root,root,755)
+%{_includedir}/cdf.h
+%{_includedir}/cdfconfig.h
+%{_includedir}/cdfdist.h
+%{_includedir}/cdflib.h
+%{_includedir}/cdflib64.h
+# fortran
+%{_includedir}/cdf.inc
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libcdf.a
+
+%files -n java-cdflib
+%defattr(644,root,root,755)
+%{_javadir}/cdfjava.jar
This page took 0.157906 seconds and 4 git commands to generate.