eb50d39
Name:		vodovod
3fe0d99
Version:	1.10r22
ff72413
Release:	11%{?dist}
eb50d39
Summary:	A pipe connecting game
eb50d39
eb50d39
Group:		Amusements/Games
eb50d39
License:	GPLv2+
eb50d39
URL:		http://home.gna.org/vodovod/
86b94f9
#Source:	http://download.gna.org/vodovod/%%{name}-%%{version}-src.tar.gz
3fe0d99
# svn export -r 22 svn://svn.gna.org/svn/vodovod/trunk vodovod
3fe0d99
# tar czvf vodovod-1.10r22-src.tar.gz vodovod
82e84bb
Source:		%{name}-%{version}-src.tar.gz
3fe0d99
Patch0:		vodovod-1.10r22-locales.patch
3fe0d99
Patch1:		vodovod-1.10r22-format-string.patch
eb50d39
eb50d39
BuildRequires:	desktop-file-utils SDL-devel SDL_image-devel SDL_mixer-devel
82e84bb
BuildRequires:	SDL_ttf-devel gettext ImageMagick
82e84bb
11a6b84
Requires:	dejavu-sans-mono-fonts
82e84bb
Requires(post): coreutils
82e84bb
Requires(postun): coreutils
eb50d39
eb50d39
%description
eb50d39
A free cross-platform pipe connecting game. You get a limited number
eb50d39
of pipes on each level and need to combine them to lead the water from
eb50d39
the house at the top of the screen to the storage tank at the bottom.
eb50d39
82e84bb
%description -l cs_CZ.UTF-8
82e84bb
Svobodná, multiplatformní logická hra založená na propojování potrubí.
82e84bb
Každá úroveň začíná s omezeným množstvím trubek, které je potřeba umístit
82e84bb
tak, aby svedly vodu z domku na vrchu obrazovky do nádrže dole.
82e84bb
3fe0d99
%description -l sk_SK.UTF-8
3fe0d99
Slobodná, multiplatformná logická hra založená na spojovaní potrubia.
3fe0d99
Každá úroveň začína s obmedzeným množstvom trubiek, ktoré musíte umiestniť tak,
3fe0d99
aby viedli vodu z domčeka v hornej časti obrazovky do nádrže v dolnej časti.
3fe0d99
eb50d39
eb50d39
%prep
86b94f9
#%%setup -q -n %%{name}-%%{version}-src
82e84bb
%setup -q -n %{name}
3fe0d99
# update locales
3fe0d99
%patch0 -p1
3fe0d99
# fix bug #1037377
3fe0d99
%patch1 -p1
a438d26
# replace the bundled font usage with the one provided by font package
a438d26
rm data/font1.ttf
a438d26
sed -i -e "s|data/font1.ttf|../fonts/dejavu/DejaVuSansMono.ttf|" \
a438d26
	allmenus.cpp main.cpp game.cpp
eb50d39
eb50d39
eb50d39
%build
82e84bb
make PREFIX=%{_prefix} HIGHSCOREDIR=%{_localstatedir}/games \
5e9460f
	%{?_smp_mflags} CXX="%{__cxx}" CXXFLAGS="%{optflags}"
eb50d39
# .desktop file 
eb50d39
cat <<EOF > %{name}.desktop
eb50d39
[Desktop Entry]
eb50d39
Name=Vodovod
eb50d39
GenericName=Logic Game
82e84bb
GenericName[cs]=Logická hra
3fe0d99
GenericName[sk]=Logická hra
eb50d39
Comment=A pipe connecting game
82e84bb
Comment[cs]=Propojování potrubí
3fe0d99
Comment[sk]=Spojovanie potrubia
82e84bb
Exec=vodovod
eb50d39
Icon=vodovod
eb50d39
Terminal=false
eb50d39
Type=Application
eb50d39
Categories=Game;LogicGame;
eb50d39
EOF
eb50d39
eb50d39
eb50d39
%install
82e84bb
make PREFIX=%{_prefix} DESTDIR=%{buildroot} install
82e84bb
# since the game sources do not come with the hiscore file, we have to create it
82e84bb
# this will result in empty hiscore table, but it is not such a big deal
82e84bb
mkdir -p %{buildroot}%{_localstatedir}/games
82e84bb
touch %{buildroot}%{_localstatedir}/games/%{name}.sco
5e9460f
# add icon and .desktop file
eb50d39
mkdir -p -m 0755 %{buildroot}%{_datadir}/icons/hicolor/32x32/apps
eb50d39
convert data/abicon.bmp %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/vodovod.xpm
Parag Nemade 5a78240
desktop-file-install  \
eb50d39
	--dir=%{buildroot}%{_datadir}/applications %{name}.desktop
82e84bb
%find_lang %{name}
eb50d39
eb50d39
eb50d39
%post
eb50d39
touch --no-create %{_datadir}/icons/hicolor
eb50d39
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
eb50d39
	%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
eb50d39
fi
eb50d39
eb50d39
  
eb50d39
%postun
eb50d39
touch --no-create %{_datadir}/icons/hicolor
eb50d39
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
eb50d39
	%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
eb50d39
fi
eb50d39
eb50d39
82e84bb
%files -f %{name}.lang
eb50d39
%doc CHANGES COPYING html
82e84bb
%attr(2755,root,games) %{_bindir}/%{name}
eb50d39
%{_datadir}/%{name}/
Parag Nemade 5a78240
%{_datadir}/applications/%{name}.desktop
eb50d39
%{_datadir}/icons/hicolor/32x32/apps/%{name}.xpm
82e84bb
%config(noreplace) %attr (0664,root,games) %{_localstatedir}/games/%{name}.sco
eb50d39
eb50d39
eb50d39
%changelog
ff72413
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.10r22-11
ff72413
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
ff72413
09f0fe6
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.10r22-10
09f0fe6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
09f0fe6
65000ee
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.10r22-9
65000ee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
65000ee
71813fd
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.10r22-8
71813fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
71813fd
7642243
* Tue Feb 09 2016 Karel Volný <kvolny@redhat.com> 1.10r22-7
86b94f9
- Fixed rpmlint warnings about macros
86b94f9
- For rpmlint errors, see bug #1305794
86b94f9
d4f6462
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.10r22-6
d4f6462
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
d4f6462
1989edd
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10r22-5
1989edd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
1989edd
d891df1
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 1.10r22-4
d891df1
- Rebuilt for GCC 5 C++11 ABI change
d891df1
84f2b34
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10r22-3
84f2b34
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
84f2b34
0f09dfe
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10r22-2
0f09dfe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
0f09dfe
3fe0d99
* Mon Feb 03 2014 Karel Volný <kvolny@redhat.com> 1.10r22-1
3fe0d99
- New development snapshot
3fe0d99
- Adds Chinese, Serbian and Swedish translations
3fe0d99
- Added patch to update Czech and to add Slovak translations
3fe0d99
- Added Slovak %%description
3fe0d99
- Added patch for bug #1037377
3fe0d99
de36ebe
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10r19-12
de36ebe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
de36ebe
Parag Nemade 5a78240
* Sat Feb 09 2013 Parag Nemade <paragn AT fedoraproject DOT org> - 1.10r19-11
Parag Nemade 5a78240
- Remove vendor tag from desktop file as per https://fedorahosted.org/fesco/ticket/1077
Parag Nemade 5a78240
- Cleanup spec as per recently changed packaging guidelines
Parag Nemade 5a78240
61b85ab
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10r19-10
61b85ab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
61b85ab
8d3d090
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10r19-9
8d3d090
- Rebuilt for c++ ABI breakage
8d3d090
a5e2f13
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10r19-8
a5e2f13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
a5e2f13
be49630
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10r19-7
be49630
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
be49630
955cd6e
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10r19-6
955cd6e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
955cd6e
5e9460f
* Thu May  7 2009 Ville Skyttä <ville.skytta at iki.fi> - 1.10r19-5
5e9460f
- Build with $RPM_OPT_FLAGS.
5e9460f
51a42e0
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10r19-4
51a42e0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
51a42e0
11a6b84
* Mon Jan 19 2009 Karel Volny <kvolny@redhat.com> 1.10r19-3
11a6b84
- Required font package got renamed to dejavu-sans-mono-fonts (bug #480478)
11a6b84
a438d26
* Thu Jan 15 2009 Karel Volny <kvolny@redhat.com> 1.10r19-2
a438d26
- Use dejavu-fonts-sans-mono instead of bundling the font file (bug #477480)
a438d26
82e84bb
* Thu Dec 11 2008 Karel Volny <kvolny@redhat.com> 1.10r19-1
82e84bb
- Added coreutils to post(un) (fixes bug #475921)
82e84bb
- New version requires SDL_ttf-devel
82e84bb
82e84bb
* Wed Mar 05 2008 Karel Volny <kvolny@redhat.com> 1.10r13-1
82e84bb
- development version
82e84bb
- Removed gcc43 patch (fixed upstream)
82e84bb
- Removed wrapper stuff and harcoded paths, upstream now uses variables
82e84bb
- Use hiscore file %%{_localstatedir}/games/%%{name}.sco
82e84bb
- Added language files handling
82e84bb
- Added Czech localisation
82e84bb
eb50d39
* Mon Feb 04 2008 Karel Volny <kvolny@redhat.com> 1.10-2
eb50d39
- Some fixes as per bug #428973:
eb50d39
- Fixed summary
eb50d39
- Added gtk-update-icon-cache
eb50d39
- Added patch to compile with gcc 4.3
eb50d39
- Modified compiler flags
eb50d39
eb50d39
* Wed Jan 16 2008 Karel Volny <kvolny@redhat.com> 1.10-1
eb50d39
- Initial release