Drop unneeded direct deps

This commit is contained in:
Matthias Clasen 2009-07-19 02:13:16 +00:00
parent f46e745ef1
commit 5eeccc4d94

View File

@ -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@redhat.com> - 2.27.2-3
- Drop unused direct dependencies
* Thu Jul 2 2009 Matthias Clasen <mclasen@redhat.com> - 2.27.2-2
- Shrink GConf schemas