]>
Commit | Line | Data |
---|---|---|
7890b3fe JB |
1 | # |
2 | # Conditional build: | |
6101a856 | 3 | %bcond_without encoder # build with encoder (using may require license) |
7890b3fe JB |
4 | # |
5 | Summary: SZIP - Science Data Lossless Compression library | |
ab28acb5 | 6 | Summary(pl.UTF-8): SZIP - biblioteka bezstratnej kompresji danych naukowych |
7890b3fe | 7 | Name: szip |
45fde329 | 8 | Version: 2.1 |
6101a856 | 9 | Release: 2 |
7890b3fe | 10 | %if %{with encoder} |
6101a856 | 11 | License: free for use in HDF software (decoder), free for non-commercial, scientific use only in HDF software (encoder) |
7890b3fe JB |
12 | %else |
13 | License: free for use in HDF software | |
14 | %endif | |
15 | Group: Libraries | |
6101a856 JB |
16 | Source0: ftp://ftp.hdfgroup.org/lib-external/szip/%{version}/src/%{name}-%{version}.tar.gz |
17 | # Source0-md5: 63894a65bc470011fd2049f3ca65d2bf | |
7890b3fe | 18 | Patch0: %{name}-opt.patch |
8d340d74 | 19 | Patch1: %{name}-linking.patch |
472a7b53 | 20 | URL: http://hdf.ncsa.uiuc.edu/doc_resource/SZIP/ |
3a5b4689 | 21 | BuildRequires: autoconf >= 2.54 |
22 | BuildRequires: automake >= 1:1.7 | |
23 | BuildRequires: libtool >= 1:1.4.2-9 | |
7890b3fe JB |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
25 | ||
26 | %description | |
27 | SZIP is an implementation of the extended-Rice lossless compression | |
28 | algorithm. The Consultative Committee on Space Data Systems (CCSDS) | |
29 | has adopted the extended-Rice algorithm for international standards | |
30 | for space applications. SZIP is reported to provide fast and effective | |
31 | compression, specifically for the EOS data generated by the NASA Earth | |
32 | Observatory System (EOS). It was originally developed at University of | |
33 | New Mexico (UNM) and integrated with HDF4 by UNM researchers and | |
34 | developers. | |
35 | ||
efb324b0 | 36 | %description -l pl.UTF-8 |
7890b3fe JB |
37 | SZIP to implementacja rozszerzonego algorytmu kompresji bezstratnej |
38 | Rice'a. CCSDS (Consultative Committee on Space Data Systems) | |
efb324b0 JR |
39 | zaadoptowało rozszerzony algorytm Rice'a na potrzeby międzynarodowych |
40 | standardów aplikacji przestrzennych. SZIP daje szybką i efektywną | |
41 | kompresję, szczególnie dla danych EOS generowanych przez NASA Earth | |
42 | Observatory System (EOS). Pierwotnie biblioteka została stworzona w | |
43 | University of New Mexico (UNM) i zintegrowana z HDF4 przez naukowców i | |
44 | programistów UNM. | |
7890b3fe JB |
45 | |
46 | %package devel | |
47 | Summary: Header files for SZIP library | |
ab28acb5 | 48 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki SZIP |
7890b3fe JB |
49 | Group: Development/Libraries |
50 | Requires: %{name} = %{version}-%{release} | |
51 | ||
52 | %description devel | |
53 | Header files for SZIP library. | |
54 | ||
efb324b0 JR |
55 | %description devel -l pl.UTF-8 |
56 | Pliki nagłówkowe biblioteki SZIP. | |
7890b3fe JB |
57 | |
58 | %package static | |
59 | Summary: Static SZIP library | |
ab28acb5 | 60 | Summary(pl.UTF-8): Statyczna biblioteka SZIP |
7890b3fe JB |
61 | Group: Development/Libraries |
62 | Requires: %{name}-devel = %{version}-%{release} | |
63 | ||
64 | %description static | |
65 | Static SZIP library. | |
66 | ||
efb324b0 | 67 | %description static -l pl.UTF-8 |
7890b3fe JB |
68 | Statyczna biblioteka SZIP. |
69 | ||
70 | %prep | |
71 | %setup -q | |
72 | %patch0 -p1 | |
8d340d74 | 73 | %patch1 -p1 |
7890b3fe JB |
74 | |
75 | %build | |
3a5b4689 | 76 | %{__libtoolize} |
77 | %{__aclocal} | |
78 | %{__autoheader} | |
79 | %{__autoconf} | |
80 | %{__automake} | |
7890b3fe JB |
81 | %configure \ |
82 | %{!?with_encoder:--disable-encoding} | |
83 | %{__make} | |
84 | ||
85 | %install | |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | ||
88 | %{__make} install \ | |
89 | DESTDIR=$RPM_BUILD_ROOT | |
90 | ||
91 | %clean | |
92 | rm -rf $RPM_BUILD_ROOT | |
93 | ||
94 | %post -p /sbin/ldconfig | |
95 | %postun -p /sbin/ldconfig | |
96 | ||
97 | %files | |
98 | %defattr(644,root,root,755) | |
6101a856 | 99 | %doc COPYING HISTORY.txt RELEASE.txt |
8d340d74 | 100 | %attr(755,root,root) %{_libdir}/libsz.so.2.*.* |
101 | %attr(755,root,root) %ghost %{_libdir}/libsz.so.2 | |
7890b3fe JB |
102 | |
103 | %files devel | |
104 | %defattr(644,root,root,755) | |
105 | %attr(755,root,root) %{_libdir}/libsz.so | |
106 | %{_libdir}/libsz.la | |
6101a856 JB |
107 | %{_includedir}/ricehdf.h |
108 | %{_includedir}/szip_adpt.h | |
109 | %{_includedir}/szlib.h | |
7890b3fe JB |
110 | |
111 | %files static | |
112 | %defattr(644,root,root,755) | |
113 | %{_libdir}/libsz.a |