Update htop.spec

I hope this cleanup changes can make spec file more simple and accurate with Fedora packaging guidelines.
epel8
vascom 7 years ago
parent 4c58913ce7
commit 9454e02a36

@ -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 <vascom2@gmail.com> - 2.0.2-5
- Cleanup spec
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild

Loading…
Cancel
Save