rpms/yelp/devel yelp.spec,1.162,1.163

Matthias Clasen mclasen at fedoraproject.org
Sun Jul 19 02:13:47 UTC 2009


Author: mclasen

Update of /cvs/pkgs/rpms/yelp/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv30452

Modified Files:
	yelp.spec 
Log Message:
Drop unneeded direct deps



Index: yelp.spec
===================================================================
RCS file: /cvs/pkgs/rpms/yelp/devel/yelp.spec,v
retrieving revision 1.162
retrieving revision 1.163
diff -u -p -r1.162 -r1.163
--- yelp.spec	2 Jul 2009 06:15:26 -0000	1.162
+++ yelp.spec	19 Jul 2009 02:13:16 -0000	1.163
@@ -19,7 +19,7 @@
 Summary: Help browser for the GNOME desktop
 Name: yelp
 Version: 2.27.2
-Release: 2%{?dist}
+Release: 3%{?dist}
 Source: http://download.gnome.org/sources/yelp/2.27/%{name}-%{version}.tar.bz2
 URL: http://live.gnome.org/Yelp
 Patch1: yelp-2.15.5-fedora-docs.patch
@@ -66,6 +66,7 @@ BuildRequires: dbus-devel
 BuildRequires: gettext-devel
 BuildRequires: rarian-devel >= %{rarian_version}
 BuildRequires: intltool
+BuildRequires: automake autoconf libtool
 
 
 %if %{WITH_MONO}
@@ -89,12 +90,18 @@ documentation written in DocBook.
 # force regeneration
 rm data/yelp.schemas
 
+autoreconf -i -f -i
+
 %build
 %configure 			\
 	--with-mozilla=libxul-embedding	\
 	--disable-schemas-install
 
-make
+# drop unneeded direct library deps with --as-needed
+# libtool doesn't make this easy, so we do it the hard way
+sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' -e 's/    if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then/      func_append compile_command " -Wl,-O1,--as-needed"\n      func_append finalize_command " -Wl,-O1,--as-needed"\n\0/' libtool
+
+make %{?_smp_mflags}
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -149,6 +156,9 @@ update-desktop-database &> /dev/null ||:
 %{_datadir}/yelp
 
 %changelog
+* Sat Jul 18 2009 Matthias Clasen <mclasen at redhat.com> - 2.27.2-3
+- Drop unused direct dependencies
+
 * Thu Jul  2 2009 Matthias Clasen <mclasen at redhat.com> - 2.27.2-2
 - Shrink GConf schemas
 




More information about the fedora-extras-commits mailing list