Use pkgconfig for BuildRequires

Additionally, disable tests and remove the unused gtk3 dependency.
This commit is contained in:
David King 2021-12-14 13:45:13 +00:00
parent ee18f86ceb
commit 2895103fde

View File

@ -1,19 +1,18 @@
%define glib2_version 2.26.0 %define glib2_version 2.26.0
Name: libnotify Name: libnotify
Version: 0.7.9 Version: 0.7.9
Release: 5%{?dist} Release: 6%{?dist}
Summary: Desktop notification library Summary: Desktop notification library
License: LGPLv2+ License: LGPLv2+
URL: http://www.gnome.org URL: https://gitlab.gnome.org/GNOME/libnotify
Source0: http://ftp.gnome.org/pub/GNOME/sources/libnotify/0.7/%{name}-%{version}.tar.xz Source0: https://download.gnome.org/sources/libnotify/0.7/%{name}-%{version}.tar.xz
BuildRequires: pkgconfig(gdk-pixbuf-2.0)
BuildRequires: pkgconfig(glib-2.0) >= %{glib2_version}
BuildRequires: pkgconfig(gobject-introspection-1.0)
BuildRequires: docbook-xsl-ns BuildRequires: docbook-xsl-ns
BuildRequires: gdk-pixbuf2-devel
BuildRequires: glib2-devel >= %{glib2_version}
BuildRequires: gobject-introspection-devel
BuildRequires: gtk3-devel
BuildRequires: gtk-doc BuildRequires: gtk-doc
BuildRequires: meson BuildRequires: meson
BuildRequires: xmlto BuildRequires: xmlto
@ -36,10 +35,10 @@ This package contains libraries and header files needed for
development of programs using %{name}. development of programs using %{name}.
%prep %prep
%setup -q %autosetup -p1
%build %build
%meson %meson -Dtests=false
%meson_build %meson_build
%install %install
@ -66,6 +65,10 @@ development of programs using %{name}.
%doc %{_docdir}/libnotify/spec/ %doc %{_docdir}/libnotify/spec/
%changelog %changelog
* Tue Dec 14 2021 David King <amigadave@amigadave.com> - 0.7.9-6
- Use pkgconfig for BuildRequires
- Disable building unused tests
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.9-5 * Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.9-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild