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