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