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 Name: htop
Version: 2.0.2 Version: 2.0.2
Release: 4%{?dist} Release: 5%{?dist}
Summary: Interactive process viewer Summary: Interactive process viewer
Group: Applications/System License: GPLv2+
License: GPL+
URL: http://hisham.hm/htop/ URL: http://hisham.hm/htop/
Source0: http://hisham.hm/htop/releases/%{version}/%{name}-%{version}.tar.gz 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). top(1).
%prep %prep
%setup -q %autosetup
sed -i s#"INSTALL_DATA = @INSTALL_DATA@"#"INSTALL_DATA = @INSTALL_DATA@ -p"# Makefile.in sed -i s#"INSTALL_DATA = @INSTALL_DATA@"#"INSTALL_DATA = @INSTALL_DATA@ -p"# Makefile.in
%build %build
@ -32,11 +31,11 @@ autoreconf -v -f -i
--enable-cgroup \ --enable-cgroup \
--enable-oom --enable-oom
make %{?_smp_mflags} %make_build
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT %make_install
#remove empty direcories #remove empty direcories
rm -rf $RPM_BUILD_ROOT%{libdir} rm -rf $RPM_BUILD_ROOT%{libdir}
@ -46,13 +45,16 @@ rm -rf $RPM_BUILD_ROOT%{includedir}
rm -rf $RPM_BUILD_ROOT%{_datadir}/applications/ rm -rf $RPM_BUILD_ROOT%{_datadir}/applications/
%files %files
%defattr(-,root,root,-) %doc AUTHORS ChangeLog README
%doc AUTHORS COPYING ChangeLog README %license COPYING
%{_bindir}/htop %{_bindir}/htop
%{_datadir}/pixmaps/htop.png %{_datadir}/pixmaps/htop.png
%{_mandir}/man1/htop.1* %{_mandir}/man1/htop.1*
%changelog %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 * 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 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild

Loading…
Cancel
Save