[packages/libmspack] - package system.h (needed by cabextract), - put header files under separate dir, - release 2

adamg adamg at pld-linux.org
Fri Oct 26 07:30:18 CEST 2018


commit abc2a3047fe3f1bf34e0f097d9e7e35148efc968
Author: Adam Gołębiowski <adamg at pld-linux.org>
Date:   Fri Oct 26 07:29:57 2018 +0200

    - package system.h (needed by cabextract),
    - put header files under separate dir,
    - release 2

 libmspack-headers.patch | 11 +++++++++++
 libmspack.spec          |  9 +++++++--
 2 files changed, 18 insertions(+), 2 deletions(-)
---
diff --git a/libmspack.spec b/libmspack.spec
index 9e77934..a75f2e2 100644
--- a/libmspack.spec
+++ b/libmspack.spec
@@ -6,12 +6,13 @@ Summary:	A library for Microsoft compression formats
 Summary(pl.UTF-8):	Biblioteka do formatów kompresji używanych przez Microsoft
 Name:		libmspack
 Version:	0.8alpha
-Release:	1
+Release:	2
 License:	LGPL v2.1
 Group:		Libraries
 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
@@ -74,6 +75,7 @@ Microsoftu.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 %{__libtoolize}
@@ -90,6 +92,7 @@ Microsoftu.
 rm -rf $RPM_BUILD_ROOT
 
 %{__make} install \
+	includedir=%{_includedir}/mspack \
 	DESTDIR=$RPM_BUILD_ROOT
 
 %clean
@@ -109,7 +112,9 @@ 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/system.h
+%{_includedir}/mspack/mspack.h
 %{_pkgconfigdir}/libmspack.pc
 
 %if %{with static_libs}
diff --git a/libmspack-headers.patch b/libmspack-headers.patch
new file mode 100644
index 0000000..df50dfc
--- /dev/null
+++ b/libmspack-headers.patch
@@ -0,0 +1,11 @@
+--- libmspack-0.8alpha/Makefile.am~	2018-10-16 12:07:28.000000000 +0200
++++ libmspack-0.8alpha/Makefile.am	2018-10-23 21:11:11.477166014 +0200
+@@ -18,7 +18,7 @@
+ AM_CPPFLAGS =		-I$(top_srcdir)/mspack -I$(top_srcdir)/test 
+ 
+ bin_PROGRAMS = 		src/cabrip src/chmextract src/msexpand src/oabextract
+-include_HEADERS =	mspack/mspack.h
++include_HEADERS =	mspack/mspack.h mspack/system.h
+ lib_LTLIBRARIES =	libmspack.la
+ 
+ noinst_LTLIBRARIES =	libmscabd.la libmschmd.la
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libmspack.git/commitdiff/abc2a3047fe3f1bf34e0f097d9e7e35148efc968



More information about the pld-cvs-commit mailing list