diff --git a/libmms-pkgconfig.patch b/libmms-pkgconfig.patch new file mode 100644 index 0000000..dd2959f --- /dev/null +++ b/libmms-pkgconfig.patch @@ -0,0 +1,12 @@ +--- pkgconfig/libmms.pc.in.orig ++++ pkgconfig/libmms.pc.in +@@ -5,7 +5,8 @@ includedir=@includedir@/ + + Name: libmms + Description: Library implementing the MMS protocol +-Requires: glib-2.0 ++# glib usage is private only for static linking ++#Requires.private: glib-2.0 + Version: @VERSION@ + Libs: -L${libdir} -lmms -lm + Cflags: -I${includedir} diff --git a/libmms.changes b/libmms.changes index ff36b26..ab208ee 100644 --- a/libmms.changes +++ b/libmms.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Nov 22 18:40:37 UTC 2012 - crrodriguez@opensuse.org + +- libmms-pkgconfig.patch: DO not inject bogus build + dependencies via pkgconfig files, in this case glib2 which + will pull pcre and so on... + ------------------------------------------------------------------- Mon Mar 5 14:00:05 UTC 2012 - toddrme2178@gmail.com diff --git a/libmms.spec b/libmms.spec index 27eca97..b6c19ea 100644 --- a/libmms.spec +++ b/libmms.spec @@ -1,7 +1,7 @@ # # spec file for package libmms # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -15,12 +15,12 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # + %define soname 0 Name: libmms Version: 0.6.2 Release: 0 -License: LGPL-2.1+ # NOTE: there are files from the xine project with GPL headers in the source, # but these were re-licensed to LGPLv2+ with the explicit permission of all # contributors. @@ -28,14 +28,16 @@ License: LGPL-2.1+ # libmms-relicensing-1.txt and libmms-relicensing-2.txt Summary: MMS stream protocol library -Url: http://www.sf.net/projects/%{name} +License: LGPL-2.1+ Group: System/Libraries +Url: http://www.sf.net/projects/%{name} Source0: %{name}-%{version}.tar.bz2 Source1: libmms-relicensing-1.txt Source2: libmms-relicensing-2.txt Source3: baselibs.conf BuildRequires: pkg-config BuildRequires: pkgconfig(glib-2.0) +Patch0: libmms-pkgconfig.patch %description LibMMS is a common library for parsing mms:// and mmsh:// type network streams. @@ -57,12 +59,14 @@ all. Summary: Libmms development files Group: Development/Libraries/C and C++ Requires: %{name}%{soname} = %{version} +Requires: glibc-devel %description -n %{name}-devel Headers and libraries to program against %{name} %prep %setup -q +%patch0 %build %configure --disable-static