Compare commits
7 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5d71e06a31 | ||
|
|
14c5da11a4 | ||
|
|
e5c782dee2 | ||
|
|
fee5943ebb | ||
|
|
d99904df45 | ||
|
|
bcc5021720 | ||
| c572e6e1e0 |
7 changed files with 161 additions and 21 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
wastesedge-src-0.3.4-modified.tar.gz
|
||||
21
Makefile
21
Makefile
|
|
@ -1,21 +0,0 @@
|
|||
# Makefile for source rpm: wastesedge
|
||||
# $Id$
|
||||
NAME := wastesedge
|
||||
SPECFILE = $(firstword $(wildcard *.spec))
|
||||
|
||||
define find-makefile-common
|
||||
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
||||
|
||||
ifeq ($(MAKEFILE_COMMON),)
|
||||
# attept a checkout
|
||||
define checkout-makefile-common
|
||||
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
||||
endif
|
||||
|
||||
include $(MAKEFILE_COMMON)
|
||||
1
sources
1
sources
|
|
@ -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;
|
||||
135
wastesedge.spec
Normal file
135
wastesedge.spec
Normal file
|
|
@ -0,0 +1,135 @@
|
|||
Name: wastesedge
|
||||
Version: 0.3.4
|
||||
Release: 0.12%{?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
|
||||
* Sun Mar 01 2009 Mathieu Bridon <bochecha@fedoraproject.org> - 0.3.4-0.12
|
||||
- deleted the unproperly licensed font in SRPM too - RHBZ#477481
|
||||
|
||||
* 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
|
||||
|
||||
* 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