[packages/OpenNI] - rel 2; provide libopenni.pc

arekm arekm at pld-linux.org
Tue Nov 11 11:33:01 CET 2014


commit aa6fbcd355d1b1646e919ef349faba6f164d53e1
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Tue Nov 11 11:32:56 2014 +0100

    - rel 2; provide libopenni.pc

 OpenNI.spec  | 14 ++++++++++++--
 libopenni.pc | 10 ++++++++++
 2 files changed, 22 insertions(+), 2 deletions(-)
---
diff --git a/OpenNI.spec b/OpenNI.spec
index 2187410..4b4ca5a 100644
--- a/OpenNI.spec
+++ b/OpenNI.spec
@@ -14,11 +14,12 @@ Summary:	OpenNI framework for Natural Interaction devices
 Summary(pl.UTF-8):	Szkielet OpenNI do urządzeń służących interakcji z naturą
 Name:		OpenNI
 Version:	1.5.7.10
-Release:	1
+Release:	2
 License:	Apache v2.0
 Group:		Libraries
 Source0:	https://github.com/OpenNI/OpenNI/tarball/Stable-%{version}/%{name}-%{version}.tar.gz
 # Source0-md5:	5c6072e875a72180a696ee60460ba347
+Source1:	libopenni.pc
 Patch0:		%{name}-system-libs.patch
 Patch1:		%{name}-nosse.patch
 URL:		http://openni.org/
@@ -141,7 +142,7 @@ Requires:	mono
 Interfejs .NET do OpenNI.
 
 %prep
-%setup -q -n %{name}-OpenNI-1e9524f
+%setup -q -n %{name}-%{name}-1e9524f
 %undos Platform/Linux/Build/Samples/NiUserTracker/Makefile
 %patch0 -p1
 %patch1 -p1
@@ -189,6 +190,14 @@ cp -p ${BDIR}/org.openni.jar $RPM_BUILD_ROOT%{_javadir}
 gacutil -i ${BDIR}/OpenNI.net.dll -package 2.0 -root $RPM_BUILD_ROOT%{_prefix}/lib
 %endif
 
+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}/libopenni.pc
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -224,6 +233,7 @@ fi
 %files devel
 %defattr(644,root,root,755)
 %{_includedir}/ni
+%{_pkgconfigdir}/libopenni.pc
 
 %files doc
 %defattr(644,root,root,755)
diff --git a/libopenni.pc b/libopenni.pc
new file mode 100644
index 0000000..418c374
--- /dev/null
+++ b/libopenni.pc
@@ -0,0 +1,10 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@/ni
+
+Name: OpenNI
+Description: A general purpose driver for all OpenNI cameras.
+Version: @version@
+Cflags: -I${includedir}
+Libs: -L${libdir} -lOpenNI
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/OpenNI.git/commitdiff/aa6fbcd355d1b1646e919ef349faba6f164d53e1



More information about the pld-cvs-commit mailing list