]> git.pld-linux.org Git - packages/frogatto.git/blame - frogatto.spec
- unconditional noarch subpackages
[packages/frogatto.git] / frogatto.spec
CommitLineData
c926e8b5 1Summary: An open-source "platformer" game
85fd7d6c 2Name: frogatto
3Version: 1.1.1
01567f41 4Release: 21
85fd7d6c 5License: GPL v3+
6Group: X11/Applications/Games
7Source0: http://www.frogatto.com/files/%{name}-%{version}.tar.bz2
8# Source0-md5: bf5a2ee4c3254a424766895ff250758b
9Patch0: %{name}-makefile.patch
10Patch1: %{name}-assertion.patch
ae67ef64 11Patch2: %{name}-libpng15.patch
85fd7d6c 12URL: http://www.frogatto.com/
13BuildRequires: OpenGL-GLU-devel
14BuildRequires: OpenGL-devel
15BuildRequires: SDL-devel >= 1.2.7
16BuildRequires: SDL_image-devel >= 1.2.0
17BuildRequires: SDL_mixer-devel >= 1.2.0
18BuildRequires: SDL_ttf-devel >= 2.0.8
19BuildRequires: boost-devel >= 1.35.0
20BuildRequires: ccache
21BuildRequires: glew-devel
22BuildRequires: sed >= 4.0
23BuildRequires: zlib-devel
e2618074 24Requires: %{name}-data = %{version}-%{release}
85fd7d6c 25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27%description
c926e8b5 28Frogatto is an open-source "platformer" game, which means you're given
85fd7d6c 29a cross-section view into the world, and you help a small green fellow
30named Frogatto walk and jump between solid footholds whilst you lead
c926e8b5 31him through his story. There's a long history to the genre, so just by
85fd7d6c 32being in it we inevitably have a lot in common with other games,
c926e8b5 33however, we're not trying to clone any specific game.
85fd7d6c 34
e2618074
ER
35%package data
36Summary: data for frogatto
37Group: X11/Applications/Games
e2618074 38BuildArch: noarch
e2618074
ER
39
40%description data
41data for frogatto.
42
85fd7d6c 43%prep
44%setup -q
45%patch0 -p1
46%patch1 -p1
ae67ef64 47%patch2 -p1
85fd7d6c 48
49# fix linking with our boost libs
50%{__sed} -i 's,-mt,,g' Makefile
51
52# set proper paths
53%{__sed} -i 's,data/,%{_datadir}/frogatto/data/,g' `find -name "*.[ch]pp" -o -name "*.po*" -o -name "*.cfg"`
54%{__sed} -i 's,./images/,%{_datadir}/frogatto/images/,g' `find -name "*.cpp"`
e2618074 55%{__sed} -i 's,./locale/,%{_localedir}/,g' src/i18n.cpp
be5425bc 56%{__sed} -i 's,music/,%{_datadir}/frogatto/music/,g' src/sound.cpp
57%{__sed} -i 's,sounds/,%{_datadir}/frogatto/sounds/,g' src/sound.cpp
85fd7d6c 58
59%build
60%{__make} \
61 CXX="%{__cxx}" \
62 OPT="%{rpmcxxflags}" \
63 LDFLAGS="%{rpmldflags}"
64
65%install
66rm -rf $RPM_BUILD_ROOT
e2618074 67install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/frogatto,%{_localedir}}
85fd7d6c 68
69cp -a game $RPM_BUILD_ROOT%{_bindir}/frogatto
70cp -a data $RPM_BUILD_ROOT%{_datadir}/frogatto
71cp -a images $RPM_BUILD_ROOT%{_datadir}/frogatto
e2618074 72cp -a locale/* $RPM_BUILD_ROOT%{_localedir}
be5425bc 73cp -a music $RPM_BUILD_ROOT%{_datadir}/frogatto
74cp -a sounds $RPM_BUILD_ROOT%{_datadir}/frogatto
85fd7d6c 75
76%find_lang %{name} --all-name
77
78%clean
79rm -rf $RPM_BUILD_ROOT
80
81%files -f %{name}.lang
82%defattr(644,root,root,755)
83%doc CHANGELOG
84%attr(755,root,root) %{_bindir}/frogatto
e2618074
ER
85
86%files data
87%defattr(644,root,root,755)
85fd7d6c 88%{_datadir}/frogatto
This page took 0.070969 seconds and 4 git commands to generate.