From 63fa1827074927f3a88e7f58751516bf9d2b76f5 Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Wed, 23 Jan 2019 17:46:29 +0100 Subject: [PATCH] Modernize packaging --- gnome-menus.spec | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/gnome-menus.spec b/gnome-menus.spec index 9097fa6..20072d7 100644 --- a/gnome-menus.spec +++ b/gnome-menus.spec @@ -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/*