Use pkgconfig for BuildRequires

This commit is contained in:
David King 2014-12-10 23:38:33 +00:00
parent 43050c4697
commit 820a62c5b7

View File

@ -1,37 +1,36 @@
%global _changelog_trimtime %(date +%s -d "1 year ago")
Summary: Help browser for the GNOME desktop
Name: yelp
Epoch: 1
Version: 3.14.1
Release: 2%{?dist}
#VCS: git:git://git.gnome.org/yelp
Source: http://download.gnome.org/sources/yelp/3.14/%{name}-%{version}.tar.xz
Name: yelp
Epoch: 1
Version: 3.14.1
Release: 3%{?dist}
Summary: Help browser for the GNOME desktop
Group: Applications/System
License: GPLv2+
URL: https://wiki.gnome.org/Apps/Yelp
#VCS: git:git://git.gnome.org/yelp
Source: https://download.gnome.org/sources/yelp/3.14/%{name}-%{version}.tar.xz
# https://bugzilla.gnome.org/show_bug.cgi?id=687960
Patch1: 0001-Center-new-windows.patch
Patch1: 0001-Center-new-windows.patch
URL: http://live.gnome.org/Yelp
License: GPLv2+
Group: Applications/System
Requires: yelp-libs%{?_isa} = %{epoch}:%{version}-%{release}
Requires: yelp-xsl
Requires(post): desktop-file-utils
Requires(postun): desktop-file-utils
BuildRequires: gtk3-devel >= 3.0.0
BuildRequires: libxml2-devel >= 2.6.5
BuildRequires: libxslt-devel >= 1.1.4
BuildRequires: webkitgtk3-devel
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(liblzma)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(libexslt)
BuildRequires: pkgconfig(libxslt)
BuildRequires: pkgconfig(sqlite3)
BuildRequires: pkgconfig(webkitgtk-3.0)
BuildRequires: pkgconfig(yelp-xsl)
BuildRequires: desktop-file-utils
BuildRequires: yelp-xsl-devel >= 3.0.1
BuildRequires: xz-devel
BuildRequires: bzip2-devel
BuildRequires: gettext-devel
BuildRequires: intltool
BuildRequires: sqlite-devel
BuildRequires: itstool
Requires: yelp-libs%{?_isa} = %{epoch}:%{version}-%{release}
Requires: yelp-xsl
%description
Yelp is the help browser for the GNOME desktop. It is designed
@ -67,10 +66,10 @@ the libraries in the yelp-libs package.
# 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}
make %{?_smp_mflags} V=1
%install
make install DESTDIR=$RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
rm $RPM_BUILD_ROOT%{_libdir}/libyelp.la
@ -113,10 +112,13 @@ gtk-update-icon-cache %{_datadir}icons/hicolor &> /dev/null || :
%files devel
%{_libdir}/libyelp.so
%{_includedir}/libyelp
%{_datadir}/gtk-doc/html/libyelp
%{_datadir}/gtk-doc
%changelog
* Wed Dec 10 2014 David King <amigadave@amigadave.com> - 1:3.14.1-3
- Use pkgconfig for BuildRequires
* Mon Nov 10 2014 Matthias Clasen <mclasen@redhat.com> - 1:3.14.1-2
- Drop the gnome-user-docs dependency (#1149511)