]>
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 |
1a2499b0 JB |
8 | Version: 0.9.1alpha |
9 | Release: 1 | |
41db4650 | 10 | License: LGPL v2.1 |
4b07437f | 11 | Group: Libraries |
4a8a666f | 12 | Source0: https://www.cabextract.org.uk/libmspack/%{name}-%{version}.tar.gz |
1a2499b0 | 13 | # Source0-md5: 9602ae4a6b0468d9aaef6359c1e90657 |
b2f7b0e4 | 14 | Patch0: %{name}-deps.patch |
abc2a304 | 15 | Patch1: %{name}-headers.patch |
1a2499b0 | 16 | Patch2: %{name}-progs.patch |
4a8a666f | 17 | URL: https://www.cabextract.org.uk/libmspack/ |
b2f7b0e4 | 18 | BuildRequires: autoconf >= 2.59 |
1a2499b0 | 19 | BuildRequires: automake >= 1:1.11 |
94bceb88 | 20 | BuildRequires: gcc >= 5:3.0 |
b2f7b0e4 | 21 | BuildRequires: libtool >= 2:2 |
4b07437f JB |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
23 | ||
18a496fa | 24 | %undefine __cxx |
25 | ||
4b07437f JB |
26 | %description |
27 | The purpose of libmspack is to provide compressors and decompressors, | |
28 | archivers and dearchivers for Microsoft compression formats: CAB, CHM, | |
b6500233 JB |
29 | HLP, KWAJ, LIT, SZDD and WIM. It is also designed to be easily |
30 | embeddable, stable, robust and resource-efficient. | |
4b07437f | 31 | |
5878fbb1 JR |
32 | %description -l pl.UTF-8 |
33 | Celem libmspack jest dostarczenie kompresorów i dekompresorów, | |
34 | archiwizerów i dearchiwizerów dla formatów kompresji używanych przez | |
b6500233 JB |
35 | Microsoft: CAB, CHM, HLP, KWAJ, LIT, SZDD i WIM. Ponadto biblioteka |
36 | została zaprojektowana tak, by być łatwo osadzalna, stabilna, mocna i | |
37 | wydajna pod względem zasobów. | |
4b07437f JB |
38 | |
39 | %package devel | |
40 | Summary: Header files for libmspack library | |
522326c0 | 41 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libmspack |
4b07437f JB |
42 | Group: Development/Libraries |
43 | Requires: %{name} = %{version}-%{release} | |
44 | ||
45 | %description devel | |
46 | Header files for libmspack library. | |
47 | ||
5878fbb1 JR |
48 | %description devel -l pl.UTF-8 |
49 | Pliki nagłówkowe biblioteki libmspack. | |
4b07437f JB |
50 | |
51 | %package static | |
52 | Summary: Static libmspack library | |
522326c0 | 53 | Summary(pl.UTF-8): Statyczna biblioteka libmspack |
4b07437f JB |
54 | Group: Development/Libraries |
55 | Requires: %{name}-devel = %{version}-%{release} | |
56 | ||
57 | %description static | |
58 | Static libmspack library. | |
59 | ||
5878fbb1 | 60 | %description static -l pl.UTF-8 |
4b07437f JB |
61 | Statyczna biblioteka libmspack. |
62 | ||
d1649ba0 JR |
63 | %package progs |
64 | Summary: MS expand-compatible, .cab and .chm decompressors | |
65 | Summary(pl.UTF-8): Dekompresory do plików .cab, .chm i zgodnych z MS expand | |
66 | Group: Applications/Archiving | |
67 | Requires: %{name} = %{version}-%{release} | |
68 | ||
69 | %description progs | |
70 | Microsoft expand.exe-compatible, .cab and .chm file decompressors. | |
71 | ||
72 | %description progs -l pl.UTF-8 | |
73 | Programy dekompresujące pliki .cab, .chm i zgodne z expand.exe | |
74 | Microsoftu. | |
75 | ||
4b07437f JB |
76 | %prep |
77 | %setup -q | |
b2f7b0e4 | 78 | %patch0 -p1 |
abc2a304 | 79 | %patch1 -p1 |
1a2499b0 | 80 | %patch2 -p1 |
4b07437f JB |
81 | |
82 | %build | |
b2f7b0e4 JB |
83 | %{__libtoolize} |
84 | %{__aclocal} -I m4 | |
85 | %{__autoconf} | |
86 | %{__autoheader} | |
87 | %{__automake} | |
5e30f1ca | 88 | %configure \ |
b2f7b0e4 | 89 | --disable-silent-rules \ |
5e30f1ca | 90 | %{!?with_static_libs:--disable-static} |
4b07437f JB |
91 | %{__make} |
92 | ||
93 | %install | |
94 | rm -rf $RPM_BUILD_ROOT | |
95 | ||
96 | %{__make} install \ | |
97 | DESTDIR=$RPM_BUILD_ROOT | |
98 | ||
99 | %clean | |
100 | rm -rf $RPM_BUILD_ROOT | |
101 | ||
102 | %post -p /sbin/ldconfig | |
103 | %postun -p /sbin/ldconfig | |
104 | ||
105 | %files | |
106 | %defattr(644,root,root,755) | |
107 | %doc AUTHORS ChangeLog README TODO | |
108 | %attr(755,root,root) %{_libdir}/libmspack.so.*.*.* | |
0d709c39 | 109 | %attr(755,root,root) %ghost %{_libdir}/libmspack.so.0 |
4b07437f JB |
110 | |
111 | %files devel | |
112 | %defattr(644,root,root,755) | |
8ae35293 | 113 | %doc doc/*.html |
4b07437f JB |
114 | %attr(755,root,root) %{_libdir}/libmspack.so |
115 | %{_libdir}/libmspack.la | |
0c6b01be JB |
116 | %{_includedir}/mspack.h |
117 | # private headers, used by cabextract (see headers patch) | |
118 | %{_includedir}/libmspack | |
0d709c39 | 119 | %{_pkgconfigdir}/libmspack.pc |
4b07437f | 120 | |
5e30f1ca | 121 | %if %{with static_libs} |
4b07437f JB |
122 | %files static |
123 | %defattr(644,root,root,755) | |
124 | %{_libdir}/libmspack.a | |
5e30f1ca | 125 | %endif |
d1649ba0 JR |
126 | |
127 | %files progs | |
128 | %defattr(644,root,root,755) | |
129 | %attr(755,root,root) %{_bindir}/cabrip | |
130 | %attr(755,root,root) %{_bindir}/chmextract | |
131 | %attr(755,root,root) %{_bindir}/msexpand | |
132 | %attr(755,root,root) %{_bindir}/oabextract |