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