]> git.pld-linux.org Git - packages/libmspack.git/blobdiff - libmspack.spec
- release 4
[packages/libmspack.git] / libmspack.spec
index 586584221896790d6170196eec8f186acdd5a96d..baa86473fb68b683536fdedc1454651f19f352dc 100644 (file)
@@ -5,14 +5,19 @@
 Summary:       A library for Microsoft compression formats
 Summary(pl.UTF-8):     Biblioteka do formatów kompresji używanych przez Microsoft
 Name:          libmspack
-Version:       0.5alpha
-Release:       1
+Version:       0.8alpha
+Release:       4
 License:       LGPL v2.1
 Group:         Libraries
-Source0:       http://www.cabextract.org.uk/libmspack/%{name}-%{version}.tar.gz
-# Source0-md5: 3aa3f6b9ef101463270c085478fda1da
-URL:           http://www.cabextract.org.uk/libmspack/
+Source0:       https://www.cabextract.org.uk/libmspack/%{name}-%{version}.tar.gz
+# Source0-md5: be4ed61868c6c1ecc173b678ce3459be
+Patch0:                %{name}-deps.patch
+Patch1:                %{name}-headers.patch
+URL:           https://www.cabextract.org.uk/libmspack/
+BuildRequires: autoconf >= 2.59
+BuildRequires: automake
 BuildRequires: gcc >= 5:3.0
+BuildRequires: libtool >= 2:2
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %undefine      __cxx
@@ -54,11 +59,32 @@ Static libmspack library.
 %description static -l pl.UTF-8
 Statyczna biblioteka libmspack.
 
+%package progs
+Summary:       MS expand-compatible, .cab and .chm decompressors
+Summary(pl.UTF-8):     Dekompresory do plików .cab, .chm i zgodnych z MS expand
+Group:         Applications/Archiving
+Requires:      %{name} = %{version}-%{release}
+
+%description progs
+Microsoft expand.exe-compatible, .cab and .chm file decompressors.
+
+%description progs -l pl.UTF-8
+Programy dekompresujące pliki .cab, .chm i zgodne z expand.exe
+Microsoftu.
+
 %prep
 %setup -q
+%patch0 -p1
+%patch1 -p1
 
 %build
+%{__libtoolize}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
 %configure \
+       --disable-silent-rules \
        %{!?with_static_libs:--disable-static}
 %{__make}
 
@@ -66,6 +92,7 @@ Statyczna biblioteka libmspack.
 rm -rf $RPM_BUILD_ROOT
 
 %{__make} install \
+       includedir=%{_includedir}/mspack \
        DESTDIR=$RPM_BUILD_ROOT
 
 %clean
@@ -85,7 +112,25 @@ rm -rf $RPM_BUILD_ROOT
 %doc doc/*.html
 %attr(755,root,root) %{_libdir}/libmspack.so
 %{_libdir}/libmspack.la
-%{_includedir}/mspack.h
+%dir %{_includedir}/mspack
+%{_includedir}/mspack/cab.h
+%{_includedir}/mspack/chm.h
+%{_includedir}/mspack/crc32.h
+%{_includedir}/mspack/des.h
+%{_includedir}/mspack/hlp.h
+%{_includedir}/mspack/kwaj.h
+%{_includedir}/mspack/lit.h
+%{_includedir}/mspack/lzss.h
+%{_includedir}/mspack/lzx.h
+%{_includedir}/mspack/mspack.h
+%{_includedir}/mspack/mszip.h
+%{_includedir}/mspack/oab.h
+%{_includedir}/mspack/qtm.h
+%{_includedir}/mspack/readbits.h
+%{_includedir}/mspack/readhuff.h
+%{_includedir}/mspack/sha.h
+%{_includedir}/mspack/system.h
+%{_includedir}/mspack/szdd.h
 %{_pkgconfigdir}/libmspack.pc
 
 %if %{with static_libs}
@@ -93,3 +138,10 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %{_libdir}/libmspack.a
 %endif
+
+%files progs
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/cabrip
+%attr(755,root,root) %{_bindir}/chmextract
+%attr(755,root,root) %{_bindir}/msexpand
+%attr(755,root,root) %{_bindir}/oabextract
This page took 0.092038 seconds and 4 git commands to generate.