Spec file cleanup for recent rpmbuild

This commit is contained in:
Kalev Lember 2013-07-12 23:31:02 +02:00
parent fd439e4982
commit 0bf0b57fc2

View File

@ -7,7 +7,6 @@ Group: Amusements/Games
License: GPLv2+
URL: http://sourceforge.net/projects/mmapper
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}-source.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: cmake
BuildRequires: desktop-file-utils
@ -40,7 +39,6 @@ make %{?_smp_mflags} -C %{_target_platform}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
# It is questionable if one is allowed to redistribute the map.
@ -49,10 +47,6 @@ rm -f $RPM_BUILD_ROOT/%{_datadir}/games/mmapper/arda.mm2
desktop-file-validate $RPM_BUILD_ROOT/%{_datadir}/applications/mmapper.desktop
%clean
rm -rf $RPM_BUILD_ROOT
%post
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
@ -67,7 +61,6 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%files
%defattr(-,root,root,-)
%doc COPYING.txt NEWS.txt doc/*.txt
%{_bindir}/mmapper
%{_datadir}/applications/mmapper.desktop