Modernize packaging

This commit is contained in:
Kalev Lember 2019-01-23 17:46:29 +01:00
parent 430dcf252c
commit 63fa182707

View File

@ -1,22 +1,22 @@
%global enable_debugging 0
Summary: A menu system for the GNOME project
Name: gnome-menus
Version: 3.31.4
Release: 1%{?dist}
Summary: A menu system for the GNOME project
License: LGPLv2+
Group: System Environment/Libraries
URL: http://www.gnome.org/
URL: https://gitlab.gnome.org/GNOME/gnome-menus
Source0: https://download.gnome.org/sources/gnome-menus/3.31/%{name}-%{version}.tar.xz
Source0: http://download.gnome.org/sources/gnome-menus/3.31/%{name}-%{version}.tar.xz
Requires: redhat-menus
BuildRequires: gawk
BuildRequires: gettext
BuildRequires: glib2-devel
BuildRequires: pkgconfig
BuildRequires: gobject-introspection-devel
Requires: redhat-menus
%description
gnome-menus is an implementation of the draft "Desktop
Menu Specification" from freedesktop.org. This package
@ -26,7 +26,6 @@ and a simple menu editor.
%package devel
Summary: Libraries and include files for the GNOME menu system
Group: Development/Libraries
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
@ -45,11 +44,10 @@ writing applications that use the GNOME menu system.
--enable-debug=no
%endif
make %{?_smp_mflags}
%make_build
%install
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
%make_install
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
%find_lang gnome-menus
@ -57,7 +55,8 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
%ldconfig_scriptlets
%files -f gnome-menus.lang
%doc AUTHORS NEWS COPYING.LIB
%license COPYING.LIB
%doc AUTHORS NEWS
%{_sysconfdir}/xdg/menus/gnome-applications.menu
%{_libdir}/lib*.so.*
%{_datadir}/desktop-directories/*