Clean up spec to match current guidelines

Drop desktop file. Resolves rhbz#689028
epel8
Rahul 14 years ago
parent c429489ba8
commit c0cd99ad56

@ -1,6 +1,6 @@
Name: htop Name: htop
Version: 0.9 Version: 0.9
Release: 1%{?dist} Release: 2%{?dist}
Summary: Interactive process viewer Summary: Interactive process viewer
Group: Applications/System Group: Applications/System
@ -9,9 +9,7 @@ URL: http://htop.sourceforge.net/
Source0: http://download.sourceforge.net/htop/%{name}-%{version}.tar.gz Source0: http://download.sourceforge.net/htop/%{name}-%{version}.tar.gz
# Use system plpa # Use system plpa
Patch3: htop-0.9-system-plpa.patch Patch3: htop-0.9-system-plpa.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: desktop-file-utils
BuildRequires: ncurses-devel, python, libtool, plpa-devel BuildRequires: ncurses-devel, python, libtool, plpa-devel
%description %description
@ -31,35 +29,30 @@ autoreconf -i
%configure %configure
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT
desktop-file-install \
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
--vendor fedora \
--delete-original \
$RPM_BUILD_ROOT%{_datadir}/applications/htop.desktop
#remove empty direcories #remove empty direcories
rm -rf $RPM_BUILD_ROOT%{libdir} rm -rf $RPM_BUILD_ROOT%{libdir}
rm -rf $RPM_BUILD_ROOT%{includedir} rm -rf $RPM_BUILD_ROOT%{includedir}
%clean # remove desktop file
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT%{_datadir}/applications/
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc AUTHORS COPYING ChangeLog README TODO %doc AUTHORS COPYING ChangeLog README TODO
%{_bindir}/htop %{_bindir}/htop
%{_datadir}/applications/fedora-htop.desktop
%{_datadir}/pixmaps/htop.png %{_datadir}/pixmaps/htop.png
%{_mandir}/man1/htop.1* %{_mandir}/man1/htop.1*
%changelog %changelog
* Sat Mar 19 2011 Rahul Sundaram <sundaram@fedoraproject.org> - 0.9-2
- Clean up spec to match current guidelines
- Drop desktop file. Resolves rhbz#689028
* Sat Mar 05 2011 Miloš Jakubíček <xjakub@fi.muni.cz> - 0.9-1 * Sat Mar 05 2011 Miloš Jakubíček <xjakub@fi.muni.cz> - 0.9-1
- Update to 0.9 - Update to 0.9
- Clean specfile, remove Polish translations, unused patches - Clean specfile, remove Polish translations, unused patches

Loading…
Cancel
Save