]> git.pld-linux.org Git - packages/szip.git/blobdiff - szip.spec
- new
[packages/szip.git] / szip.spec
diff --git a/szip.spec b/szip.spec
new file mode 100644 (file)
index 0000000..5bd32be
--- /dev/null
+++ b/szip.spec
@@ -0,0 +1,102 @@
+#
+# Conditional build:
+%bcond_with    encoder         # build with encoder (may require license)
+#
+Summary:       SZIP - Science Data Lossless Compression library
+Summary(pl):   SZIP - biblioteka bezstratnej kompresji danych naukowych
+Name:          szip
+Version:       2.0
+Release:       1
+%if %{with encoder}
+License:       free for non-commercial, scientific use only in HDF software
+%else
+License:       free for use in HDF software
+%endif
+Group:         Libraries
+Source0:       ftp://ftp.ncsa.uiuc.edu/HDF/szip/2.0/src/%{name}-%{version}.tar
+# Source0-md5: 60f5247d9948fda493042fc42c5ca655
+Patch0:                %{name}-opt.patch
+URL:           http://hdf.ncsa.uiuc.edu/HDF5/doc_resource/SZIP/
+BuildRequires: automake
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+SZIP is an implementation of the extended-Rice lossless compression
+algorithm. The Consultative Committee on Space Data Systems (CCSDS)
+has adopted the extended-Rice algorithm for international standards
+for space applications. SZIP is reported to provide fast and effective
+compression, specifically for the EOS data generated by the NASA Earth
+Observatory System (EOS). It was originally developed at University of
+New Mexico (UNM) and integrated with HDF4 by UNM researchers and
+developers.
+
+%description -l pl
+SZIP to implementacja rozszerzonego algorytmu kompresji bezstratnej
+Rice'a. CCSDS (Consultative Committee on Space Data Systems)
+zaadoptowa³o rozszerzony algorytm Rice'a na potrzeby miêdzynarodowych
+standardów aplikacji przestrzennych. SZIP daje szybk± i efektywn±
+kompresjê, szczególnie dla danych EOS generowanych przez NASA Earth
+Observatory System (EOS). Pierwotnie biblioteka zosta³a stworzona w
+University of New Mexico (UNM) i zintegrowana z HDF4 przez naukowców i
+programistów UNM.
+
+%package devel
+Summary:       Header files for SZIP library
+Summary(pl):   Pliki nag³ówkowe biblioteki SZIP
+Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+
+%description devel
+Header files for SZIP library.
+
+%description devel -l pl
+Pliki nag³ówkowe biblioteki SZIP.
+
+%package static
+Summary:       Static SZIP library
+Summary(pl):   Statyczna biblioteka SZIP
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{version}-%{release}
+
+%description static
+Static SZIP library.
+
+%description static -l pl
+Statyczna biblioteka SZIP.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+cp -f /usr/share/automake/config.* bin
+%configure \
+       %{!?with_encoder:--disable-encoding}
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post  -p /sbin/ldconfig
+%postun        -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc COPYING RELEASE.txt
+%attr(755,root,root) %{_libdir}/libsz.so.*.*.*
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libsz.so
+%{_libdir}/libsz.la
+%{_includedir}/*.h
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libsz.a
This page took 0.123529 seconds and 4 git commands to generate.