Mathieu Bridon e850781
Name:           wastesedge
Mathieu Bridon e850781
Version:        0.3.4
23cf915
Release:        0.15%{?dist}
Mathieu Bridon e850781
Summary:        Official game package for Adonthell
Mathieu Bridon e850781
Mathieu Bridon e850781
Group:          Amusements/Games
Mathieu Bridon e850781
License:        GPL+
Mathieu Bridon e850781
URL:            http://adonthell.linuxgames.com/
Mathieu Bridon 4ced19b
## Due to legal issues (RHBZ#477481), upstream sources need to be modified
Mathieu Bridon 4ced19b
# Here is how are obtained the sources used in this package:
Mathieu Bridon 4ced19b
# $ wget http://savannah.nongnu.org/download/adonthell/%{name}-src-%{version}.tar.gz
Mathieu Bridon 4ced19b
# $ tar xzvf %{name}-src-%{version}.tar.gz
Mathieu Bridon 4ced19b
# $ rm %{name}-%{version}/gfx/window/font/avatar.ttf
Mathieu Bridon 4ced19b
# $ sed -i 's|avatar.ttf||g' %{name}-%{version}/gfx/window/font/Makefile.in
Mathieu Bridon 4ced19b
# $ tar czvf %{name}-src-%{version}-modified.tar.gz %{name}-%{version}/
Mathieu Bridon 4ced19b
Source0:        %{name}-src-%{version}-modified.tar.gz
Mathieu Bridon e850781
Source1:        %{name}.desktop
Mathieu Bridon 9e482ad
Patch0:         %{name}-more.patch
Mathieu Bridon e850781
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Mathieu Bridon e850781
BuildArch:      noarch
Mathieu Bridon e850781
Mathieu Bridon e850781
BuildRequires:  adonthell >= %{version}
Mathieu Bridon e850781
BuildRequires:  gettext
Mathieu Bridon e850781
BuildRequires:  desktop-file-utils
Mathieu Bridon e850781
Requires:       adonthell >= %{version}-%{release}
Mathieu Bridon 9e482ad
Requires:       hicolor-icon-theme
Mathieu Bridon e850781
Mathieu Bridon e850781
Mathieu Bridon e850781
%description
Mathieu Bridon e850781
As a loyal servant of the elven Lady Silverhair, you arrive at the remote
Mathieu Bridon e850781
trading post of Waste's Edge, where she is engaged in negotiations with the
Mathieu Bridon e850781
dwarvish merchant Bjarn Fingolson. But not all is well at Waste's Edge, and
Mathieu Bridon e850781
soon you are confronted with circumstances that are about to destroy your
Mathieu Bridon e850781
mistress' high reputation. And you are the only one to avert this ...
Mathieu Bridon e850781
Mathieu Bridon e850781
Mathieu Bridon e850781
%prep
Mathieu Bridon e850781
%setup -q
Mathieu Bridon e850781
# fix wrong file permissions (fixed upstream for future release)
Mathieu Bridon e850781
chmod a-x AUTHORS COPYING INSTALL README
Mathieu Bridon e850781
# install locale files in the right place
Mathieu Bridon e850781
sed -i 's|datadir = @gamedatadir@|datadir = ${prefix}/share|' po/Makefile.in.in
Mathieu Bridon c941e91
# patch configure to not use "more" any more
Mathieu Bridon c941e91
%patch0 -p0
Mathieu Bridon 9e482ad
Mathieu Bridon e850781
Mathieu Bridon e850781
%build
Mathieu Bridon e850781
%configure
Mathieu Bridon e850781
make %{?_smp_mflags}
Mathieu Bridon e850781
Mathieu Bridon e850781
Mathieu Bridon e850781
%install
Mathieu Bridon e850781
rm -rf $RPM_BUILD_ROOT
Mathieu Bridon e850781
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
Mathieu Bridon 9e482ad
Mathieu Bridon 9e482ad
# install images in the correct folders
Mathieu Bridon e850781
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/{16x16,32x32}/apps
Mathieu Bridon e850781
mv $RPM_BUILD_ROOT%{_datadir}/pixmaps/%{name}_16x16.xpm $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/16x16/apps/%{name}.xpm
Mathieu Bridon e850781
mv $RPM_BUILD_ROOT%{_datadir}/pixmaps/%{name}_32x32.xpm $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps/%{name}.xpm
Mathieu Bridon 9e482ad
Mathieu Bridon 9e482ad
# install desktop file not provided upstream
Mathieu Bridon e850781
desktop-file-install --vendor=""                      \
Mathieu Bridon e850781
        --dir=$RPM_BUILD_ROOT%{_datadir}/applications \
Mathieu Bridon e850781
        %{SOURCE1}
Mathieu Bridon e850781
%find_lang %{name}
Mathieu Bridon e850781
Mathieu Bridon e850781
Mathieu Bridon e850781
%clean
Mathieu Bridon e850781
rm -rf $RPM_BUILD_ROOT
Mathieu Bridon e850781
Mathieu Bridon e850781
Mathieu Bridon e850781
%files -f %{name}.lang
Mathieu Bridon e850781
%defattr(-,root,root,-)
Mathieu Bridon e850781
%doc AUTHORS COPYING PLAYING README
Mathieu Bridon e850781
%{_bindir}/adonthell-%{name}
Mathieu Bridon e850781
%{_datadir}/adonthell/games/%{name}/
Mathieu Bridon e850781
%{_datadir}/icons/hicolor/16x16/apps/%{name}.xpm
Mathieu Bridon e850781
%{_datadir}/icons/hicolor/32x32/apps/%{name}.xpm
Mathieu Bridon e850781
%{_datadir}/applications/%{name}.desktop
Mathieu Bridon e850781
Mathieu Bridon e850781
Mathieu Bridon e850781
%post
Mathieu Bridon e850781
touch --no-create %{_datadir}/icons/hicolor
Mathieu Bridon e850781
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
Mathieu Bridon e850781
    %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
Mathieu Bridon e850781
fi
Mathieu Bridon e850781
Mathieu Bridon e850781
Mathieu Bridon e850781
%postun
Mathieu Bridon e850781
touch --no-create %{_datadir}/icons/hicolor
Mathieu Bridon e850781
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
Mathieu Bridon e850781
    %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
Mathieu Bridon e850781
fi
Mathieu Bridon e850781
Mathieu Bridon e850781
Mathieu Bridon e850781
%changelog
23cf915
* Wed Aug 11 2010 David Malcolm <dmalcolm@redhat.com> - 0.3.4-0.15
23cf915
- recompiling .py files against Python 2.7 (rhbz#623416)
23cf915
d7a7801
* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.4-0.14
d7a7801
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
d7a7801
Mathieu Bridon 4ced19b
* Sun Mar 01 2009 Mathieu Bridon <bochecha@fedoraproject.org> - 0.3.4-0.13
Mathieu Bridon 4ced19b
- deleted the unproperly licensed font in SRPM too - RHBZ#477481
Mathieu Bridon 4ced19b
a7677e1
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.4-0.12
a7677e1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
a7677e1
Mathieu Bridon 9e482ad
* Fri Feb 13 2009 Mathieu Bridon <bochecha@fedoraproject.org> - 0.3.4-0.11
Mathieu Bridon 9e482ad
- added missing Requires: on hicolor-icon-theme
Mathieu Bridon 4ced19b
- deleted the unproperly licensed font - RHBZ#477481
Mathieu Bridon 9e482ad
b47c4bd
* Mon Dec 01 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.3.4-0.10
b47c4bd
- Rebuild for Python 2.6
b47c4bd
Mathieu Bridon c941e91
* Sat Jun 28 2008 Mathieu Bridon <bochecha@no-log.org> 0.3.4-0.9
Mathieu Bridon c941e91
- patched configure script so that it doesn't use "more" any more.
Mathieu Bridon c941e91
Mathieu Bridon e850781
* Tue Jun 03 2008 Mathieu Bridon <bochecha@no-log.org> 0.3.4-0.8
Mathieu Bridon e850781
- added forgotten call to gtk-update-icon-cache in post and postun sections
Mathieu Bridon e850781
Mathieu Bridon e850781
* Sun Jun 01 2008 Mathieu Bridon <bochecha@no-log.org> 0.3.4-0.7
Mathieu Bridon e850781
- changed licence tag
Mathieu Bridon e850781
- removed obsolete entries from desktop file
Mathieu Bridon e850781
- added -p option to make install to preserve timestamps
Mathieu Bridon e850781
- fixed install location for icons
Mathieu Bridon e850781
- cleaned up obsolete comments in spec file
Mathieu Bridon e850781
Mathieu Bridon e850781
* Sun Jun 01 2008 Mathieu Bridon <bochecha@no-log.org> 0.3.4-0.6
Mathieu Bridon e850781
- fixed file ownership
Mathieu Bridon e850781
Mathieu Bridon e850781
* Thu Feb 21 2008 Mathieu Bridon <bochecha@no-log.org> 0.3.4-0.5
Mathieu Bridon e850781
- made the locale files install in the right place
Mathieu Bridon e850781
Mathieu Bridon e850781
* Thu Feb 21 2008 Mathieu Bridon <bochecha@no-log.org> 0.3.4-0.4
Mathieu Bridon e850781
- cleaned again the spec file
Mathieu Bridon e850781
- made the desktop file install
Mathieu Bridon e850781
Mathieu Bridon e850781
* Thu Feb 21 2008 Mathieu Bridon <bochecha@no-log.org> 0.3.4-0.3
Mathieu Bridon e850781
- added desktop file
Mathieu Bridon e850781
Mathieu Bridon e850781
* Thu Feb 21 2008 Mathieu Bridon <bochecha@no-log.org> 0.3.4-0.2
Mathieu Bridon e850781
- cleaned the spec file
Mathieu Bridon e850781
Mathieu Bridon e850781
* Mon Feb 18 2008 Mathieu Bridon <bochecha@no-log.org> 0.3.4-0.1
Mathieu Bridon e850781
- first version of the SPEC file
Mathieu Bridon e850781