]> git.pld-linux.org Git - packages/frogatto.git/blobdiff - frogatto.spec
- unconditional noarch subpackages
[packages/frogatto.git] / frogatto.spec
index 9b4a23e9f46b3a0fb7eeaadc4e72d2044c742247..324203dbdd0b2ca41babe0ec412021eaf076b690 100644 (file)
@@ -1,13 +1,14 @@
 Summary:       An open-source "platformer" game
 Name:          frogatto
 Version:       1.1.1
-Release:       4
+Release:       21
 License:       GPL v3+
 Group:         X11/Applications/Games
 Source0:       http://www.frogatto.com/files/%{name}-%{version}.tar.bz2
 # Source0-md5: bf5a2ee4c3254a424766895ff250758b
 Patch0:                %{name}-makefile.patch
 Patch1:                %{name}-assertion.patch
+Patch2:                %{name}-libpng15.patch
 URL:           http://www.frogatto.com/
 BuildRequires: OpenGL-GLU-devel
 BuildRequires: OpenGL-devel
@@ -20,6 +21,7 @@ BuildRequires:        ccache
 BuildRequires: glew-devel
 BuildRequires: sed >= 4.0
 BuildRequires: zlib-devel
+Requires:      %{name}-data = %{version}-%{release}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -30,10 +32,19 @@ him through his story. There's a long history to the genre, so just by
 being in it we inevitably have a lot in common with other games,
 however, we're not trying to clone any specific game.
 
+%package data
+Summary:       data for frogatto
+Group:         X11/Applications/Games
+BuildArch:     noarch
+
+%description data
+data for frogatto.
+
 %prep
 %setup -q
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 # fix linking with our boost libs
 %{__sed} -i 's,-mt,,g' Makefile
@@ -41,7 +52,7 @@ however, we're not trying to clone any specific game.
 # set proper paths
 %{__sed} -i 's,data/,%{_datadir}/frogatto/data/,g' `find -name "*.[ch]pp" -o -name "*.po*" -o -name "*.cfg"`
 %{__sed} -i 's,./images/,%{_datadir}/frogatto/images/,g' `find -name "*.cpp"`
-%{__sed} -i 's,./locale/,%{_datadir}/locale/,g' src/i18n.cpp
+%{__sed} -i 's,./locale/,%{_localedir}/,g' src/i18n.cpp
 %{__sed} -i 's,music/,%{_datadir}/frogatto/music/,g' src/sound.cpp
 %{__sed} -i 's,sounds/,%{_datadir}/frogatto/sounds/,g' src/sound.cpp
 
@@ -53,12 +64,12 @@ however, we're not trying to clone any specific game.
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/frogatto,%{_datadir}/locale}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/frogatto,%{_localedir}}
 
 cp -a game $RPM_BUILD_ROOT%{_bindir}/frogatto
 cp -a data $RPM_BUILD_ROOT%{_datadir}/frogatto
 cp -a images $RPM_BUILD_ROOT%{_datadir}/frogatto
-cp -a locale/* $RPM_BUILD_ROOT%{_datadir}/locale
+cp -a locale/* $RPM_BUILD_ROOT%{_localedir}
 cp -a music $RPM_BUILD_ROOT%{_datadir}/frogatto
 cp -a sounds $RPM_BUILD_ROOT%{_datadir}/frogatto
 
@@ -71,4 +82,7 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc CHANGELOG
 %attr(755,root,root) %{_bindir}/frogatto
+
+%files data
+%defattr(644,root,root,755)
 %{_datadir}/frogatto
This page took 0.067613 seconds and 4 git commands to generate.