[wastesedge] Clean up that old spec file a bit
Mathieu Bridon
bochecha at fedoraproject.org
Fri Sep 21 06:44:58 UTC 2012
commit 75e8dc439fd0e676e9f9c1b9c88a08d701fc474c
Author: Mathieu Bridon <bochecha at fedoraproject.org>
Date: Fri Sep 21 11:22:36 2012 +0800
Clean up that old spec file a bit
wastesedge.spec | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/wastesedge.spec b/wastesedge.spec
index beb05ea..04a9c12 100644
--- a/wastesedge.spec
+++ b/wastesedge.spec
@@ -3,9 +3,9 @@ Version: 0.3.4
Release: 0.18%{?dist}
Summary: Official game package for Adonthell
-Group: Amusements/Games
License: GPL+
URL: http://adonthell.linuxgames.com/
+
## Due to legal issues (RHBZ#477481), upstream sources need to be modified
# Here is how are obtained the sources used in this package:
# $ wget http://savannah.nongnu.org/download/adonthell/%{name}-src-%{version}.tar.gz
@@ -15,13 +15,15 @@ URL: http://adonthell.linuxgames.com/
# $ tar czvf %{name}-src-%{version}-modified.tar.gz %{name}-%{version}/
Source0: %{name}-src-%{version}-modified.tar.gz
Source1: %{name}.desktop
+
Patch0: %{name}-more.patch
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
BuildArch: noarch
BuildRequires: adonthell >= %{version}
BuildRequires: gettext
BuildRequires: desktop-file-utils
+
Requires: adonthell >= %{version}-%{release}
Requires: hicolor-icon-theme
@@ -36,10 +38,13 @@ mistress' high reputation. And you are the only one to avert this ...
%prep
%setup -q
+
# fix wrong file permissions (fixed upstream for future release)
chmod a-x AUTHORS COPYING INSTALL README
+
# install locale files in the right place
sed -i 's|datadir = @gamedatadir@|datadir = ${prefix}/share|' po/Makefile.in.in
+
# patch configure to not use "more" any more
%patch0 -p0
@@ -50,7 +55,6 @@ make %{?_smp_mflags}
%install
-rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
# install images in the correct folders
@@ -62,15 +66,11 @@ mv $RPM_BUILD_ROOT%{_datadir}/pixmaps/%{name}_32x32.xpm $RPM_BUILD_ROOT%{_datadi
desktop-file-install --vendor="" \
--dir=$RPM_BUILD_ROOT%{_datadir}/applications \
%{SOURCE1}
-%find_lang %{name}
-
-%clean
-rm -rf $RPM_BUILD_ROOT
+%find_lang %{name}
%files -f %{name}.lang
-%defattr(-,root,root,-)
%doc AUTHORS COPYING PLAYING README
%{_bindir}/adonthell-%{name}
%{_datadir}/adonthell/games/%{name}/
More information about the scm-commits
mailing list