[packages/tinyxml] - rel 8; add pc file

arekm arekm at pld-linux.org
Tue Sep 18 09:25:31 CEST 2018


commit d1407cdda4515928993a6f7096211cfe3bf40a01
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Tue Sep 18 09:25:23 2018 +0200

    - rel 8; add pc file

 tinyxml.pc.in | 10 ++++++++++
 tinyxml.spec  | 12 +++++++++++-
 2 files changed, 21 insertions(+), 1 deletion(-)
---
diff --git a/tinyxml.spec b/tinyxml.spec
index b692829..6bf6b66 100644
--- a/tinyxml.spec
+++ b/tinyxml.spec
@@ -3,11 +3,12 @@ Summary:	A simple, small, C++ XML parser
 Summary(pl.UTF-8):	Prosty, mały, napisany w C++ parser XML
 Name:		tinyxml
 Version:	2.6.2
-Release:	7
+Release:	8
 License:	zlib
 Group:		Libraries
 Source0:	http://downloads.sourceforge.net/tinyxml/%{name}_%{file_version}.tar.gz
 # Source0-md5:	c1b864c96804a10526540c664ade67f0
+Source1:	%{name}.pc.in
 Patch0:		%{name}-flags.patch
 Patch1:		enforce-use-stl.patch
 URL:		http://www.grinninglizard.com/tinyxml/
@@ -78,6 +79,14 @@ cp -a xmltest $RPM_BUILD_ROOT%{_bindir}
 cp -a tiny*.h $RPM_BUILD_ROOT%{_includedir}
 libtool --mode=install %{__install} libtinyxml.la $RPM_BUILD_ROOT%{_libdir}
 
+install -d $RPM_BUILD_ROOT%{_pkgconfigdir}
+sed -e 's![@]prefix[@]!%{_prefix}!g' \
+ -e 's![@]exec_prefix[@]!%{_exec_prefix}!g' \
+ -e 's![@]libdir[@]!%{_libdir}!g' \
+ -e 's![@]includedir[@]!%{_includedir}!g' \
+ -e 's![@]version[@]!%{version}!g' \
+ %{SOURCE1} > $RPM_BUILD_ROOT%{_pkgconfigdir}/%{name}.pc
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -97,6 +106,7 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/libtinyxml.la
 %{_includedir}/tinystr.h
 %{_includedir}/tinyxml.h
+%{_pkgconfigdir}/tinyxml.pc
 
 %files static
 %defattr(644,root,root,755)
diff --git a/tinyxml.pc.in b/tinyxml.pc.in
new file mode 100644
index 0000000..9af2098
--- /dev/null
+++ b/tinyxml.pc.in
@@ -0,0 +1,10 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: TinyXML
+Description: A simple, small, C++ XML parser
+Version: @version@
+Libs: -L${libdir} -ltinyxml
+Cflags: -I${includedir} -DTIXML_USE_STL=YES
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/tinyxml.git/commitdiff/d1407cdda4515928993a6f7096211cfe3bf40a01



More information about the pld-cvs-commit mailing list