Compare commits
1 commit
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
23cf915a32 |
6 changed files with 173 additions and 1 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
wastesedge-src-0.3.4-modified.tar.gz
|
||||
|
|
@ -1 +0,0 @@
|
|||
Orphaned for 6+ weeks
|
||||
1
sources
Normal file
1
sources
Normal file
|
|
@ -0,0 +1 @@
|
|||
fceb6c6f3a345e2a3dc1b0ea3998b436 wastesedge-src-0.3.4-modified.tar.gz
|
||||
15
wastesedge-more.patch
Normal file
15
wastesedge-more.patch
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
--- configure 2005-04-16 12:57:04.000000000 +0200
|
||||
+++ configure.new 2008-06-28 19:41:53.000000000 +0200
|
||||
@@ -4670,9 +4670,9 @@
|
||||
$adonthell_binary -v &> adonthell.ver
|
||||
|
||||
|
||||
-adonthell_major_ver=`more adonthell.ver | sed 's/\([0-9]*\)\.[0-9]*\.[0-9]*/\1/p; d'`
|
||||
-adonthell_minor_ver=`more adonthell.ver | sed 's/[0-9]*\.\([0-9]*\)\.[0-9]*/\1/p; d'`
|
||||
-adonthell_micro_ver=`more adonthell.ver | sed 's/[0-9]*\.[0-9]*\.\([0-9]*\)/\1/p; d'`
|
||||
+adonthell_major_ver=`sed 's/\([0-9]*\)\.[0-9]*\.[0-9]*/\1/p; d' adonthell.ver `
|
||||
+adonthell_minor_ver=`sed 's/[0-9]*\.\([0-9]*\)\.[0-9]*/\1/p; d' adonthell.ver `
|
||||
+adonthell_micro_ver=`sed 's/[0-9]*\.[0-9]*\.\([0-9]*\)/\1/p; d' adonthell.ver `
|
||||
|
||||
|
||||
rm -f adonthell.ver
|
||||
9
wastesedge.desktop
Normal file
9
wastesedge.desktop
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
[Desktop Entry]
|
||||
Name=Waste's Edge
|
||||
GenericName=Adonthell - Waste's Edge
|
||||
Comment=A 2D graphical RPG
|
||||
Exec=adonthell-wastesedge
|
||||
Icon=wastesedge
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=Game;RolePlaying;
|
||||
147
wastesedge.spec
Normal file
147
wastesedge.spec
Normal file
|
|
@ -0,0 +1,147 @@
|
|||
Name: wastesedge
|
||||
Version: 0.3.4
|
||||
Release: 0.15%{?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
|
||||
# $ tar xzvf %{name}-src-%{version}.tar.gz
|
||||
# $ rm %{name}-%{version}/gfx/window/font/avatar.ttf
|
||||
# $ sed -i 's|avatar.ttf||g' %{name}-%{version}/gfx/window/font/Makefile.in
|
||||
# $ 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
|
||||
|
||||
|
||||
%description
|
||||
As a loyal servant of the elven Lady Silverhair, you arrive at the remote
|
||||
trading post of Waste's Edge, where she is engaged in negotiations with the
|
||||
dwarvish merchant Bjarn Fingolson. But not all is well at Waste's Edge, and
|
||||
soon you are confronted with circumstances that are about to destroy your
|
||||
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
|
||||
|
||||
|
||||
%build
|
||||
%configure
|
||||
make %{?_smp_mflags}
|
||||
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
|
||||
|
||||
# install images in the correct folders
|
||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/{16x16,32x32}/apps
|
||||
mv $RPM_BUILD_ROOT%{_datadir}/pixmaps/%{name}_16x16.xpm $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/16x16/apps/%{name}.xpm
|
||||
mv $RPM_BUILD_ROOT%{_datadir}/pixmaps/%{name}_32x32.xpm $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps/%{name}.xpm
|
||||
|
||||
# install desktop file not provided upstream
|
||||
desktop-file-install --vendor="" \
|
||||
--dir=$RPM_BUILD_ROOT%{_datadir}/applications \
|
||||
%{SOURCE1}
|
||||
%find_lang %{name}
|
||||
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
|
||||
%files -f %{name}.lang
|
||||
%defattr(-,root,root,-)
|
||||
%doc AUTHORS COPYING PLAYING README
|
||||
%{_bindir}/adonthell-%{name}
|
||||
%{_datadir}/adonthell/games/%{name}/
|
||||
%{_datadir}/icons/hicolor/16x16/apps/%{name}.xpm
|
||||
%{_datadir}/icons/hicolor/32x32/apps/%{name}.xpm
|
||||
%{_datadir}/applications/%{name}.desktop
|
||||
|
||||
|
||||
%post
|
||||
touch --no-create %{_datadir}/icons/hicolor
|
||||
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
|
||||
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
|
||||
fi
|
||||
|
||||
|
||||
%postun
|
||||
touch --no-create %{_datadir}/icons/hicolor
|
||||
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
|
||||
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
|
||||
fi
|
||||
|
||||
|
||||
%changelog
|
||||
* Wed Aug 11 2010 David Malcolm <dmalcolm@redhat.com> - 0.3.4-0.15
|
||||
- recompiling .py files against Python 2.7 (rhbz#623416)
|
||||
|
||||
* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.4-0.14
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
||||
|
||||
* Sun Mar 01 2009 Mathieu Bridon <bochecha@fedoraproject.org> - 0.3.4-0.13
|
||||
- deleted the unproperly licensed font in SRPM too - RHBZ#477481
|
||||
|
||||
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.4-0.12
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
||||
|
||||
* Fri Feb 13 2009 Mathieu Bridon <bochecha@fedoraproject.org> - 0.3.4-0.11
|
||||
- added missing Requires: on hicolor-icon-theme
|
||||
- deleted the unproperly licensed font - RHBZ#477481
|
||||
|
||||
* Mon Dec 01 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.3.4-0.10
|
||||
- Rebuild for Python 2.6
|
||||
|
||||
* Sat Jun 28 2008 Mathieu Bridon <bochecha@no-log.org> 0.3.4-0.9
|
||||
- patched configure script so that it doesn't use "more" any more.
|
||||
|
||||
* Tue Jun 03 2008 Mathieu Bridon <bochecha@no-log.org> 0.3.4-0.8
|
||||
- added forgotten call to gtk-update-icon-cache in post and postun sections
|
||||
|
||||
* Sun Jun 01 2008 Mathieu Bridon <bochecha@no-log.org> 0.3.4-0.7
|
||||
- changed licence tag
|
||||
- removed obsolete entries from desktop file
|
||||
- added -p option to make install to preserve timestamps
|
||||
- fixed install location for icons
|
||||
- cleaned up obsolete comments in spec file
|
||||
|
||||
* Sun Jun 01 2008 Mathieu Bridon <bochecha@no-log.org> 0.3.4-0.6
|
||||
- fixed file ownership
|
||||
|
||||
* Thu Feb 21 2008 Mathieu Bridon <bochecha@no-log.org> 0.3.4-0.5
|
||||
- made the locale files install in the right place
|
||||
|
||||
* Thu Feb 21 2008 Mathieu Bridon <bochecha@no-log.org> 0.3.4-0.4
|
||||
- cleaned again the spec file
|
||||
- made the desktop file install
|
||||
|
||||
* Thu Feb 21 2008 Mathieu Bridon <bochecha@no-log.org> 0.3.4-0.3
|
||||
- added desktop file
|
||||
|
||||
* Thu Feb 21 2008 Mathieu Bridon <bochecha@no-log.org> 0.3.4-0.2
|
||||
- cleaned the spec file
|
||||
|
||||
* Mon Feb 18 2008 Mathieu Bridon <bochecha@no-log.org> 0.3.4-0.1
|
||||
- first version of the SPEC file
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue