]>
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 | 8 | Version: 0.6alpha |
d1649ba0 | 9 | Release: 2 |
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 | ||
d1649ba0 JR |
57 | %package progs |
58 | Summary: MS expand-compatible, .cab and .chm decompressors | |
59 | Summary(pl.UTF-8): Dekompresory do plików .cab, .chm i zgodnych z MS expand | |
60 | Group: Applications/Archiving | |
61 | Requires: %{name} = %{version}-%{release} | |
62 | ||
63 | %description progs | |
64 | Microsoft expand.exe-compatible, .cab and .chm file decompressors. | |
65 | ||
66 | %description progs -l pl.UTF-8 | |
67 | Programy dekompresujące pliki .cab, .chm i zgodne z expand.exe | |
68 | Microsoftu. | |
69 | ||
4b07437f JB |
70 | %prep |
71 | %setup -q | |
72 | ||
73 | %build | |
5e30f1ca | 74 | %configure \ |
75 | %{!?with_static_libs:--disable-static} | |
4b07437f JB |
76 | %{__make} |
77 | ||
78 | %install | |
79 | rm -rf $RPM_BUILD_ROOT | |
80 | ||
81 | %{__make} install \ | |
82 | DESTDIR=$RPM_BUILD_ROOT | |
83 | ||
84 | %clean | |
85 | rm -rf $RPM_BUILD_ROOT | |
86 | ||
87 | %post -p /sbin/ldconfig | |
88 | %postun -p /sbin/ldconfig | |
89 | ||
90 | %files | |
91 | %defattr(644,root,root,755) | |
92 | %doc AUTHORS ChangeLog README TODO | |
93 | %attr(755,root,root) %{_libdir}/libmspack.so.*.*.* | |
0d709c39 | 94 | %attr(755,root,root) %ghost %{_libdir}/libmspack.so.0 |
4b07437f JB |
95 | |
96 | %files devel | |
97 | %defattr(644,root,root,755) | |
8ae35293 | 98 | %doc doc/*.html |
4b07437f JB |
99 | %attr(755,root,root) %{_libdir}/libmspack.so |
100 | %{_libdir}/libmspack.la | |
101 | %{_includedir}/mspack.h | |
0d709c39 | 102 | %{_pkgconfigdir}/libmspack.pc |
4b07437f | 103 | |
5e30f1ca | 104 | %if %{with static_libs} |
4b07437f JB |
105 | %files static |
106 | %defattr(644,root,root,755) | |
107 | %{_libdir}/libmspack.a | |
5e30f1ca | 108 | %endif |
d1649ba0 JR |
109 | |
110 | %files progs | |
111 | %defattr(644,root,root,755) | |
112 | %attr(755,root,root) %{_bindir}/cabrip | |
113 | %attr(755,root,root) %{_bindir}/chmextract | |
114 | %attr(755,root,root) %{_bindir}/msexpand | |
115 | %attr(755,root,root) %{_bindir}/oabextract |