From 45112012aa9a2554c99a035a4d8faf7b9dfd2091 Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Mon, 8 Aug 2016 16:11:28 +0200 Subject: [PATCH] Modernize spec file --- sysprof.spec | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/sysprof.spec b/sysprof.spec index 710b13e..4c3b82d 100644 --- a/sysprof.spec +++ b/sysprof.spec @@ -2,13 +2,12 @@ Name: sysprof Version: 3.20.0 Release: 1%{?dist} Summary: A system-wide Linux profiler -Group: Development/System + License: GPLv3+ URL: http://www.sysprof.com Source0: https://download.gnome.org/sources/sysprof/3.20/sysprof-%{version}.tar.xz # Backported from upstream Patch0: 0001-callgraph-Use-U64_TO_POINTER.patch -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: binutils-devel BuildRequires: desktop-file-utils @@ -38,28 +37,24 @@ developing applications that use %{name}. %prep -%setup -q -n sysprof-%{version} +%setup -q %patch0 -p1 %build %configure --disable-static -make %{?_smp_mflags} +%make_build %install -rm -rf ${RPM_BUILD_ROOT} -make install DESTDIR=${RPM_BUILD_ROOT} +%make_install find $RPM_BUILD_ROOT -name '*.la' -delete %find_lang %{name} --all-name --with-gnome -desktop-file-install \ - --dir ${RPM_BUILD_ROOT}%{_datadir}/applications \ - %{SOURCE1} +%check +desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/*.desktop -%clean -rm -rf ${RPM_BUILD_ROOT} %post /sbin/ldconfig @@ -77,8 +72,8 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %files -f %{name}.lang -%defattr(-,root,root,-) -%doc NEWS README COPYING TODO AUTHORS +%license COPYING +%doc NEWS README TODO AUTHORS %{_bindir}/sysprof %{_bindir}/sysprof-cli %{_libdir}/libsysprof-2.so @@ -102,6 +97,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog * Mon Aug 08 2016 Kalev Lember - 3.20.0-1 - Update to 3.20.0 +- Modernize spec file * Fri Feb 05 2016 Fedora Release Engineering - 1.2.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild