cf08c5c
Name:           seahorse-adventures
225fa1f
Version:        1.1
8e46b62
Release:        2%{?dist}
cf08c5c
Summary:        Help barbie the seahorse float on bubbles to the moon
e2713b5
License:        GPL+
cf08c5c
URL:            http://www.imitationpickles.org/barbie/
225fa1f
Source0:        http://www.imitationpickles.org/barbie/files/barbie-%{version}.tgz
cf08c5c
Source1:        %{name}.desktop
225fa1f
Source2:        %{name}.appdata.xml
cf08c5c
Patch0:         seahorse-adventures-1.0-symlink.patch
ae4c332
Patch1:         seahorse-adventures-1.0-build.patch
225fa1f
BuildRequires:  desktop-file-utils libappstream-glib
cf08c5c
BuildArch:      noarch
225fa1f
Requires:       hicolor-icon-theme python2-pygame dejavu-sans-fonts
cf08c5c
cf08c5c
%description
cf08c5c
Help barbie the seahorse float on bubbles to the moon. This is a retro-side
cf08c5c
scroller game. It won the teams category in pyweek 4. Includes original
cf08c5c
soundtrack, graphics, and 15 levels!
cf08c5c
cf08c5c
cf08c5c
%prep
225fa1f
%autosetup -p1 -n barbie-%{version}
225fa1f
sed -i 's:/usr/bin/python:/usr/bin/python2:' leveledit.py tileedit.py
225fa1f
sed -i 's:/usr/bin/env python:/usr/bin/python2:' run_game.py
e71de11
rm data/themes/*/Vera.ttf
cf08c5c
cf08c5c
cf08c5c
%build
cf08c5c
# nothing to build, pure python code only
cf08c5c
cf08c5c
cf08c5c
%install
cf08c5c
mkdir -p $RPM_BUILD_ROOT%{_bindir}
cf08c5c
mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}
cf08c5c
cp -a data lib leveledit.py run_game.py tileedit.py \
cf08c5c
  $RPM_BUILD_ROOT%{_datadir}/%{name}
e71de11
ln -s ../../../../fonts/dejavu/DejaVuSans.ttf \
e71de11
  $RPM_BUILD_ROOT%{_datadir}/%{name}/data/themes/default/Vera.ttf
e71de11
ln -s ../../../../fonts/dejavu/DejaVuSans.ttf \
e71de11
  $RPM_BUILD_ROOT%{_datadir}/%{name}/data/themes/gray/Vera.ttf
e71de11
cf08c5c
chmod +x $RPM_BUILD_ROOT%{_datadir}/%{name}/run_game.py
cf08c5c
ln -s ../share/%{name}/run_game.py $RPM_BUILD_ROOT%{_bindir}/%{name}
cf08c5c
cf08c5c
# below is the desktop file and icon stuff.
cf08c5c
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
225fa1f
desktop-file-install --dir $RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE1}
cf08c5c
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps
225fa1f
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/64x64/apps
225fa1f
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/128x128/apps
225fa1f
install -p -m 644 icon32.png \
cf08c5c
  $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
225fa1f
install -p -m 644 icon64.png \
225fa1f
  $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/64x64/apps/%{name}.png
225fa1f
install -p -m 644 icon128.png \
225fa1f
  $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/128x128/apps/%{name}.png
225fa1f
mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
225fa1f
install -p -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/appdata
225fa1f
appstream-util validate-relax --nonet \
225fa1f
  $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml
cf08c5c
cf08c5c
cf08c5c
%files
225fa1f
%doc CHANGES.txt LEVELS.txt NOTES.txt README.txt TODO.txt
225fa1f
%license LICENSE.txt
cf08c5c
%{_bindir}/%{name}
cf08c5c
%{_datadir}/%{name}
225fa1f
%{_datadir}/appdata/%{name}.appdata.xml
487e428
%{_datadir}/applications/%{name}.desktop
225fa1f
%{_datadir}/icons/hicolor/*/apps/%{name}.png
cf08c5c
cf08c5c
cf08c5c
%changelog
8e46b62
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-2
8e46b62
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
8e46b62
225fa1f
* Sat Feb 23 2019 Hans de Goede <hdegoede@redhat.com> 1.1-1
225fa1f
- New upstream release 1.1 (rhbz#1510103)
225fa1f
- Fix FTBFS (rhbz#1675983)
225fa1f
- Add appdata
225fa1f
4d5f458
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-22
4d5f458
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
4d5f458
7899404
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-21
7899404
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
7899404
37a881e
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-20
37a881e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
37a881e
fabacda
* Thu Jan 18 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.0-19
fabacda
- Remove obsolete scriptlets
fabacda
c591d2a
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-18
c591d2a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
c591d2a
e19ec67
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-17
e19ec67
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
e19ec67
b9e0b81
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-16
b9e0b81
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
b9e0b81
4fc211c
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-15
4fc211c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
4fc211c
f803d40
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-14
f803d40
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
f803d40
afb70d0
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-13
afb70d0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
afb70d0
487e428
* Mon Feb 25 2013 Toshio Kuratomi <toshio@fedoraproject.org> - 1.0-12
487e428
- Remove --vendor from desktop-file-install in F19+ https://fedorahosted.org/fesco/ticket/1077
487e428
d0dd73c
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-11
d0dd73c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
d0dd73c
a0b27bd
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-10
a0b27bd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
a0b27bd
b562ec3
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-9
b562ec3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
b562ec3
81128f7
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-8
81128f7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
81128f7
ae4c332
* Thu Sep  9 2010 Hans de Goede <hdegoede@redhat.com> 1.0-7
ae4c332
- Fix FTBFS (#631296)
ae4c332
17e8a70
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-6
17e8a70
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
17e8a70
be7629c
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-5
be7629c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
be7629c
037c93e
* Tue Jan 20 2009 Hans de Goede <hdegoede@redhat.com> 1.0-4
037c93e
- Adjust font requires for font rename (rh 480472)
037c93e
e71de11
* Sat Dec 27 2008 Hans de Goede <hdegoede@redhat.com> 1.0-3
e71de11
- Replace included vera font copies with symlinks to dejavu (rh 477456)
e71de11
e2713b5
* Wed Aug 15 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 1.0-2
e2713b5
- Update License tag for new Licensing Guidelines compliance
e2713b5
cf08c5c
* Wed Apr 25 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 1.0-1
cf08c5c
- Initial Fedora Extras package