]> git.pld-linux.org Git - packages/tinyxml.git/commitdiff
- rel 8; add pc file master auto/th/tinyxml-2.6.2-8
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Tue, 18 Sep 2018 07:25:23 +0000 (09:25 +0200)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Tue, 18 Sep 2018 07:25:23 +0000 (09:25 +0200)
tinyxml.pc.in [new file with mode: 0644]
tinyxml.spec

diff --git a/tinyxml.pc.in b/tinyxml.pc.in
new file mode 100644 (file)
index 0000000..9af2098
--- /dev/null
@@ -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
index b692829192d8ba66792968d6aceb2e83b69e3750..6bf6b666336c1f21e2149b9600e86020405c45b4 100644 (file)
@@ -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)
This page took 0.208682 seconds and 4 git commands to generate.