[libodfgen] rhbz#1000893 do not pull in unneeded packages

David Tardon dtardon at fedoraproject.org
Tue Dec 3 09:03:23 UTC 2013


commit eae1a25f307d230c69ea0cfe64504b14a8e0963a
Author: David Tardon <dtardon at redhat.com>
Date:   Tue Dec 3 10:02:00 2013 +0100

    rhbz#1000893 do not pull in unneeded packages

 ...libetonyek-are-not-runtime-deps-hide-them.patch |   25 ++++++++++++++++++++
 libodfgen.spec                                     |    8 +++++-
 2 files changed, 32 insertions(+), 1 deletions(-)
---
diff --git a/0001-libwpd-and-libetonyek-are-not-runtime-deps-hide-them.patch b/0001-libwpd-and-libetonyek-are-not-runtime-deps-hide-them.patch
new file mode 100644
index 0000000..ed5d8ea
--- /dev/null
+++ b/0001-libwpd-and-libetonyek-are-not-runtime-deps-hide-them.patch
@@ -0,0 +1,25 @@
+From 8f36633505a2a644a9d70bba3f35c0216a1bd42c Mon Sep 17 00:00:00 2001
+From: David Tardon <dtardon at redhat.com>
+Date: Tue, 3 Dec 2013 09:07:22 +0100
+Subject: [PATCH] libwpd and libetonyek are not runtime deps, hide them
+
+---
+ libodfgen.pc.in | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/libodfgen.pc.in b/libodfgen.pc.in
+index e5a5ff6..efc38fa 100644
+--- a/libodfgen.pc.in
++++ b/libodfgen.pc.in
+@@ -6,6 +6,7 @@ includedir=@includedir@
+ Name: libodfgen- at LIBODFGEN_MAJOR_VERSION@. at LIBODFGEN_MINOR_VERSION@
+ Description: Library to generate ODF documents from libwpd's and libwpg's api calls
+ Version: @VERSION@
+-Requires: libwpd-0.9 libwpg-0.2 libetonyek-0.0
++Requires: libwpd-0.9
++Requires.private: libwpg-0.2 libetonyek-0.0
+ Libs: -L${libdir} -lodfgen- at LIBODFGEN_MAJOR_VERSION@. at LIBODFGEN_MINOR_VERSION@
+ Cflags: -I${includedir}/libodfgen- at LIBODFGEN_MAJOR_VERSION@. at LIBODFGEN_MINOR_VERSION@
+-- 
+1.8.4.2
+
diff --git a/libodfgen.spec b/libodfgen.spec
index c95a137..a05fd81 100644
--- a/libodfgen.spec
+++ b/libodfgen.spec
@@ -2,7 +2,7 @@
 
 Name: libodfgen
 Version: 0.0.3
-Release: 1%{?dist}
+Release: 2%{?dist}
 Summary: An ODF generator library
 
 Group: System Environment/Libraries
@@ -16,6 +16,8 @@ BuildRequires: libetonyek-devel
 BuildRequires: libwpd-devel
 BuildRequires: libwpg-devel
 
+Patch0: 0001-libwpd-and-libetonyek-are-not-runtime-deps-hide-them.patch
+
 %description
 %{name} is a library for generating ODF (text and vector drawing formats
 only). It is directly pluggable into input filters based on
@@ -41,6 +43,7 @@ The %{name}-doc package contains documentation files for %{name}.
 
 %prep
 %setup -q
+%patch0 -p1
 
 
 %build
@@ -80,6 +83,9 @@ rm -rf %{buildroot}/%{_docdir}/%{name}
 
 
 %changelog
+* Tue Dec 03 2013 David Tardon <dtardon at redhat.com> - 0.0.3-2
+- rhbz#1000893 do not pull in unneeded packages
+
 * Thu Oct 31 2013 David Tardon <dtardon at redhat.com> - 0.0.3-1
 - new release
 


More information about the scm-commits mailing list