[adonthell] Modernize the spec file

Mathieu Bridon bochecha at fedoraproject.org
Mon Dec 9 09:17:55 UTC 2013


commit 136abd805593b66f1462cd3d1da02ae0a338b81c
Author: Mathieu Bridon <bochecha at fedoraproject.org>
Date:   Wed Dec 4 12:26:06 2013 +0800

    Modernize the spec file
    
    This removes a lot of old stuff which is not necessary any more in newer
    versions of Fedora.

 adonthell.spec |   15 +--------------
 1 files changed, 1 insertions(+), 14 deletions(-)
---
diff --git a/adonthell.spec b/adonthell.spec
index 607e4a1..4dad445 100644
--- a/adonthell.spec
+++ b/adonthell.spec
@@ -1,11 +1,7 @@
-%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
-
 Name:           adonthell
+Summary:        A 2D graphical RPG game
 Version:        0.3.5
 Release:        0.16%{?dist}
-Summary:        A 2D graphical RPG game
-
-Group:          Amusements/Games
 License:        GPLv2+
 URL:            http://adonthell.nongnu.org/
 Source0:        http://savannah.nongnu.org/download/%{name}/%{name}-src-%{version}.tar.gz
@@ -18,8 +14,6 @@ Patch0:         %{name}-0.3.5-fix-build-with-gcc-4.4.patch
 #     cvs diff -u -r 1.5 -r 1.6 adonthell-0.3/src/win_event.cc
 Patch1:         %{name}-0.3.5-fix-build-with-gcc-4.6.patch
 
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
 BuildRequires:  python-devel
 BuildRequires:  freetype-devel
 BuildRequires:  libxml2-devel
@@ -69,23 +63,16 @@ make %{?_smp_mflags}
 
 
 %install
-rm -rf $RPM_BUILD_ROOT
 make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
 
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-
 %files
-%defattr(-,root,root,-)
 %doc AUTHORS COPYING FULLSCREEN.howto NEWBIE NEWS README
 %{_bindir}/%{name}
 %{_bindir}/%{name}-0.3
 %{_datadir}/%{name}/
 
 %files doc
-%defattr(-,root,root,-)
 %doc doc/devel/html
 
 


More information about the scm-commits mailing list