From 9454e02a36fbc36909ae616bc1a8a8aa0b559189 Mon Sep 17 00:00:00 2001 From: vascom Date: Sun, 10 Sep 2017 08:14:38 +0000 Subject: [PATCH] Update htop.spec I hope this cleanup changes can make spec file more simple and accurate with Fedora packaging guidelines. --- htop.spec | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/htop.spec b/htop.spec index 91d01c9..f19f626 100644 --- a/htop.spec +++ b/htop.spec @@ -1,9 +1,8 @@ Name: htop Version: 2.0.2 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Interactive process viewer -Group: Applications/System -License: GPL+ +License: GPLv2+ URL: http://hisham.hm/htop/ Source0: http://hisham.hm/htop/releases/%{version}/%{name}-%{version}.tar.gz @@ -17,7 +16,7 @@ htop is an interactive text-mode process viewer for Linux, similar to top(1). %prep -%setup -q +%autosetup sed -i s#"INSTALL_DATA = @INSTALL_DATA@"#"INSTALL_DATA = @INSTALL_DATA@ -p"# Makefile.in %build @@ -32,11 +31,11 @@ autoreconf -v -f -i --enable-cgroup \ --enable-oom -make %{?_smp_mflags} +%make_build %install rm -rf $RPM_BUILD_ROOT -make install DESTDIR=$RPM_BUILD_ROOT +%make_install #remove empty direcories rm -rf $RPM_BUILD_ROOT%{libdir} @@ -46,13 +45,16 @@ rm -rf $RPM_BUILD_ROOT%{includedir} rm -rf $RPM_BUILD_ROOT%{_datadir}/applications/ %files -%defattr(-,root,root,-) -%doc AUTHORS COPYING ChangeLog README +%doc AUTHORS ChangeLog README +%license COPYING %{_bindir}/htop %{_datadir}/pixmaps/htop.png %{_mandir}/man1/htop.1* %changelog +* Sun Sep 10 2017 Vasiliy N. Glazov - 2.0.2-5 +- Cleanup spec + * Wed Aug 02 2017 Fedora Release Engineering - 2.0.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild