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