]> git.pld-linux.org Git - packages/live.git/commitdiff
- add pc file (from debian) auto/th/live-2014.07.04-1
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sun, 6 Jul 2014 06:46:07 +0000 (08:46 +0200)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Sun, 6 Jul 2014 06:46:07 +0000 (08:46 +0200)
live-pkgconfig.patch [new file with mode: 0644]
live.spec

diff --git a/live-pkgconfig.patch b/live-pkgconfig.patch
new file mode 100644 (file)
index 0000000..ca21c25
--- /dev/null
@@ -0,0 +1,38 @@
+Description: Add a pkg-config file for the shared libraries.
+Author: Benjamin Drung <bdrung@debian.org>
+
+--- a/Makefile.head
++++ b/Makefile.head
+@@ -1 +1,4 @@
++PREFIX = /usr/local
++LIBDIR = /usr/local/lib
++VERSION = $(shell grep LIVEMEDIA_LIBRARY_VERSION_STRING liveMedia/include/liveMedia_version.hh | sed 's/.*"\([^"]*\)".*/\1/')
+ ##### Change the following for your environment:
+--- /dev/null
++++ b/live555.pc.in
+@@ -0,0 +1,9 @@
++prefix=@PREFIX@
++libdir=@LIBDIR@
++includedir=${prefix}/include
++
++Name: live555
++Description: multimedia RTSP streaming library
++Version: @VERSION@
++Cflags: -I${includedir}/liveMedia -I${includedir}/groupsock -I${includedir}/BasicUsageEnvironment -I${includedir}/UsageEnvironment
++Libs: -L${libdir} -lliveMedia -lgroupsock -lBasicUsageEnvironment -lUsageEnvironment
+--- a/Makefile.tail
++++ b/Makefile.tail
+@@ -20,7 +20,12 @@
+       cd $(MEDIA_SERVER_DIR) ; $(MAKE)
+       cd $(PROXY_SERVER_DIR) ; $(MAKE)
+-install:
++install_shared_libraries:
++      install -d $(DESTDIR)$(LIBDIR)/pkgconfig
++      sed "s#@PREFIX@#$(PREFIX)#;s#@LIBDIR@#$(LIBDIR)#;s#@VERSION@#$(VERSION)#" live555.pc.in > $(DESTDIR)$(LIBDIR)/pkgconfig/live555.pc
++      chmod 644 $(DESTDIR)$(LIBDIR)/pkgconfig/live555.pc
++
++install: $(INSTALL2)
+       cd $(LIVEMEDIA_DIR) ; $(MAKE) install
+       cd $(GROUPSOCK_DIR) ; $(MAKE) install
+       cd $(USAGE_ENVIRONMENT_DIR) ; $(MAKE) install
index edcb3822888362dccc69400d0d240d348528522b..48026af6aa7b6a96d811d0ab6274b11b1b77c79a 100644 (file)
--- a/live.spec
+++ b/live.spec
@@ -14,6 +14,8 @@ Source1:      http://www.live555.com/liveMedia/public/changelog.txt
 # Source1-md5: bed918232b9caf3cf2b04bf32a33c285
 Source2:       %{name}-shared.config
 Patch0:                %{name}-link.patch
+# from debian
+Patch1:                %{name}-pkgconfig.patch
 URL:           http://www.live555.com/liveMedia/
 BuildRequires: libstdc++-devel
 BuildRequires: sed >= 4.0
@@ -74,6 +76,9 @@ Biblioteki statyczne LIVE555 do strumieni multimedialnych.
 %prep
 %setup -q -c -n %{name}
 %patch0 -p0
+cd live
+%patch1 -p1
+cd ..
 install %{SOURCE2} %{name}/config.linux-shared
 cp -pPR %{name} %{name}-shared
 mv %{name} %{name}-static
@@ -111,6 +116,11 @@ done
 # We provide shared version:
 install -p %{name}-shared/mediaServer/live555MediaServer $RPM_BUILD_ROOT%{_bindir}
 
+# pc file
+%{__make} -C live-shared install_shared_libraries \
+       LIBDIR=%{_libdir} \
+       DESTDIR=$RPM_BUILD_ROOT
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -136,6 +146,7 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_libdir}/libgroupsock.so
 %attr(755,root,root) %{_libdir}/libliveMedia.so
 %{_includedir}/liveMedia
+%{_pkgconfigdir}/live555.pc
 
 %files static
 %defattr(644,root,root,755)
This page took 0.107062 seconds and 4 git commands to generate.