[openttd] update to 1.1.2 drop definition of buildroot, defattr and clean stage

Felix Kaechele heffer at fedoraproject.org
Wed Aug 31 05:58:36 UTC 2011


commit 157ccd2aced5d5e4a2f3624f19269eb510eb7815
Author: Felix Kaechele <heffer at fedoraproject.org>
Date:   Wed Aug 31 07:57:56 2011 +0200

    update to 1.1.2
    drop definition of buildroot, defattr and clean stage

 openttd.spec |   20 ++++++--------------
 1 files changed, 6 insertions(+), 14 deletions(-)
---
diff --git a/openttd.spec b/openttd.spec
index 6515451..5fbf6d6 100644
--- a/openttd.spec
+++ b/openttd.spec
@@ -1,8 +1,8 @@
 # If we have a prerelease version we can define it here
-#define prever RC1
+#global prever RC1
 
 Name:           openttd
-Version:        1.1.1
+Version:        1.1.2
 Release:        1%{?prever}%{?dist}
 Summary:        Transport system simulation game
 
@@ -10,7 +10,6 @@ Group:          Amusements/Games
 License:        GPLv2
 URL:            http://www.openttd.org
 Source0:        http://binaries.openttd.org/releases/%{version}%{?prever:-%{prever}}/%{name}-%{version}%{?prever:-%{prever}}-source.tar.xz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  desktop-file-utils, SDL-devel, libpng-devel, unzip, zlib-devel
 BuildRequires:  fontconfig-devel, libtimidity-devel, libicu-devel, lzo-devel
@@ -36,7 +35,6 @@ the AI.
 %prep
 %setup -q -n %{name}-%{version}%{?prever:-%{prever}}
 
-
 %build
 export CFLAGS="$RPM_OPT_FLAGS"
 export CXXFLAGS="$RPM_OPT_FLAGS"
@@ -63,7 +61,6 @@ doxygen
 
 
 %install
-rm -rf $RPM_BUILD_ROOT
 make install VERBOSE=1
 
 # Remove the installed docs - we will install subset of those
@@ -79,11 +76,6 @@ desktop-file-install --dir=$RPM_BUILD_ROOT%{_datadir}/applications \
         --add-category=StrategyGame \
         media/openttd.desktop
 
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-
 %post
 touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
 
@@ -96,9 +88,7 @@ fi
 %posttrans
 gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 
-
 %files
-%defattr(-,root,root,-)
 %doc COPYING changelog.txt known-bugs.txt readme.txt
 %{_bindir}/%{name}
 %{_datadir}/applications/%{name}.desktop
@@ -109,13 +99,15 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 %exclude %{_datadir}/%{name}/docs
 
 %files docs
-%defattr(-,root,root,-)
 # These are really devel docs, but as we don't have -devel subpackage, we put it here
 # Could be useful for people making graphics, AI scripts or translations
 %{_datadir}/%{name}/docs/
 
-
 %changelog
+* Mon Aug 29 2011 Rahul Sundaram <sundaram at fedoraproject.org> - 1.1.2-1
+- update to 1.1.2
+- drop definition of buildroot, defattr and clean stage
+
 * Sun Jun 12 2011 Felix Kaechele <heffer at fedoraproject.org> - 1.1.1-1
 - update to 1.1.1
 


More information about the scm-commits mailing list