]>
Commit | Line | Data |
---|---|---|
5e30f1ca | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static libraries | |
4 | # | |
4b07437f | 5 | Summary: A library for Microsoft compression formats |
522326c0 | 6 | Summary(pl.UTF-8): Biblioteka do formatów kompresji używanych przez Microsoft |
4b07437f | 7 | Name: libmspack |
4a8a666f JB |
8 | Version: 0.6alpha |
9 | Release: 1 | |
41db4650 | 10 | License: LGPL v2.1 |
4b07437f | 11 | Group: Libraries |
4a8a666f JB |
12 | Source0: https://www.cabextract.org.uk/libmspack/%{name}-%{version}.tar.gz |
13 | # Source0-md5: ec1a4585178ef029d46475aef1462852 | |
14 | URL: https://www.cabextract.org.uk/libmspack/ | |
94bceb88 | 15 | BuildRequires: gcc >= 5:3.0 |
4b07437f JB |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
17 | ||
18a496fa | 18 | %undefine __cxx |
19 | ||
4b07437f JB |
20 | %description |
21 | The purpose of libmspack is to provide compressors and decompressors, | |
22 | archivers and dearchivers for Microsoft compression formats: CAB, CHM, | |
b6500233 JB |
23 | HLP, KWAJ, LIT, SZDD and WIM. It is also designed to be easily |
24 | embeddable, stable, robust and resource-efficient. | |
4b07437f | 25 | |
5878fbb1 JR |
26 | %description -l pl.UTF-8 |
27 | Celem libmspack jest dostarczenie kompresorów i dekompresorów, | |
28 | archiwizerów i dearchiwizerów dla formatów kompresji używanych przez | |
b6500233 JB |
29 | Microsoft: CAB, CHM, HLP, KWAJ, LIT, SZDD i WIM. Ponadto biblioteka |
30 | została zaprojektowana tak, by być łatwo osadzalna, stabilna, mocna i | |
31 | wydajna pod względem zasobów. | |
4b07437f JB |
32 | |
33 | %package devel | |
34 | Summary: Header files for libmspack library | |
522326c0 | 35 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libmspack |
4b07437f JB |
36 | Group: Development/Libraries |
37 | Requires: %{name} = %{version}-%{release} | |
38 | ||
39 | %description devel | |
40 | Header files for libmspack library. | |
41 | ||
5878fbb1 JR |
42 | %description devel -l pl.UTF-8 |
43 | Pliki nagłówkowe biblioteki libmspack. | |
4b07437f JB |
44 | |
45 | %package static | |
46 | Summary: Static libmspack library | |
522326c0 | 47 | Summary(pl.UTF-8): Statyczna biblioteka libmspack |
4b07437f JB |
48 | Group: Development/Libraries |
49 | Requires: %{name}-devel = %{version}-%{release} | |
50 | ||
51 | %description static | |
52 | Static libmspack library. | |
53 | ||
5878fbb1 | 54 | %description static -l pl.UTF-8 |
4b07437f JB |
55 | Statyczna biblioteka libmspack. |
56 | ||
57 | %prep | |
58 | %setup -q | |
59 | ||
60 | %build | |
5e30f1ca | 61 | %configure \ |
62 | %{!?with_static_libs:--disable-static} | |
4b07437f JB |
63 | %{__make} |
64 | ||
65 | %install | |
66 | rm -rf $RPM_BUILD_ROOT | |
67 | ||
68 | %{__make} install \ | |
69 | DESTDIR=$RPM_BUILD_ROOT | |
70 | ||
71 | %clean | |
72 | rm -rf $RPM_BUILD_ROOT | |
73 | ||
74 | %post -p /sbin/ldconfig | |
75 | %postun -p /sbin/ldconfig | |
76 | ||
77 | %files | |
78 | %defattr(644,root,root,755) | |
79 | %doc AUTHORS ChangeLog README TODO | |
4a8a666f JB |
80 | %attr(755,root,root) %{_bindir}/cabrip |
81 | %attr(755,root,root) %{_bindir}/chmextract | |
82 | %attr(755,root,root) %{_bindir}/msexpand | |
83 | %attr(755,root,root) %{_bindir}/oabextract | |
4b07437f | 84 | %attr(755,root,root) %{_libdir}/libmspack.so.*.*.* |
0d709c39 | 85 | %attr(755,root,root) %ghost %{_libdir}/libmspack.so.0 |
4b07437f JB |
86 | |
87 | %files devel | |
88 | %defattr(644,root,root,755) | |
8ae35293 | 89 | %doc doc/*.html |
4b07437f JB |
90 | %attr(755,root,root) %{_libdir}/libmspack.so |
91 | %{_libdir}/libmspack.la | |
92 | %{_includedir}/mspack.h | |
0d709c39 | 93 | %{_pkgconfigdir}/libmspack.pc |
4b07437f | 94 | |
5e30f1ca | 95 | %if %{with static_libs} |
4b07437f JB |
96 | %files static |
97 | %defattr(644,root,root,755) | |
98 | %{_libdir}/libmspack.a | |
5e30f1ca | 99 | %endif |