]> git.pld-linux.org Git - packages/pingus.git/blob - pingus.spec
- added types patch, release 4
[packages/pingus.git] / pingus.spec
1 Summary:        Pingus, a lemmings style game with penguins
2 Summary(pl):    Gra typu lemmingi z pingwinami w roli g³ównej
3 Summary(pt_BR): Um clone de lemmings com pingüins
4 Name:           pingus
5 Version:        0.6.0
6 Release:        4
7 License:        GPL
8 Group:          X11/Applications/Games
9 Source0:        http://pingus.seul.org/files/%{name}-%{version}.tar.bz2
10 # Source0-md5:  9cd678272b97dbdb53f42324be31eacd
11 Source1:        %{name}.desktop
12 Source2:        %{name}.png
13 Patch0:         %{name}-datadir.patch
14 Patch1:         %{name}-assert.patch
15 Patch2:         %{name}-locale_names.patch
16 Patch3:         %{name}-types.patch
17 URL:            http://pingus.seul.org/
18 BuildRequires:  ClanLib-MikMod-devel
19 BuildRequires:  ClanLib-Vorbis-devel
20 BuildRequires:  ClanLib-devel >= 0.6.5
21 BuildRequires:  ClanLib-devel < 0.7.0
22 BuildRequires:  Hermes-devel
23 BuildRequires:  SDL-devel >= 1.2.0
24 BuildRequires:  SDL_mixer-devel
25 BuildRequires:  XFree86-devel
26 BuildRequires:  autoconf
27 BuildRequires:  automake
28 BuildRequires:  gettext-devel
29 BuildRequires:  libpng-devel
30 BuildRequires:  libstdc++-devel
31 BuildRequires:  libtool
32 BuildRequires:  libxml2-devel
33 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
35 %description
36 A cool lemmings game with penguins instead of lemmings!
37
38 %description -l pl
39 Wspania³a gra typu lemmingi z tym, ¿e steruje siê pingwinami!
40
41 %description -l pt_BR
42 Pingus é um clone do jogo Lemmings, com a diferença de que você guia 
43 pingüins.
44
45 %prep
46 %setup -q
47 %patch0 -p1
48 %patch1 -p1
49 %patch2 -p1
50 %patch3 -p1
51
52 mv -f po/sr{,@Latn}.po
53
54 %build
55 rm -f missing
56 %{__libtoolize}
57 %{__gettextize}
58 %{__aclocal}
59 %{__autoconf}
60 %{__automake}
61 CPPFLAGS="-I/usr/X11R6/include"
62 %configure \
63         --with-clanGL
64 %{__make}
65
66 %install
67 rm -rf $RPM_BUILD_ROOT
68 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
69
70 %{__make} install \
71         DESTDIR=$RPM_BUILD_ROOT \
72         bindir=%{_bindir}
73
74 mv -f $RPM_BUILD_ROOT%{_datadir}/games/pingus $RPM_BUILD_ROOT%{_datadir}/pingus
75
76 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
77 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
78
79 %find_lang %{name}
80
81 %clean
82 rm -rf $RPM_BUILD_ROOT
83
84 %post
85 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
86
87 %postun
88 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
89
90 %files -f %{name}.lang
91 %defattr(644,root,root,755)
92 %doc AUTHORS ChangeLog NEWS TODO
93 %attr(755,root,root) %{_bindir}/*
94 %{_datadir}/%{name}
95 %{_mandir}/man*/*
96 %{_desktopdir}/%{name}.desktop
97 %{_pixmapsdir}/%{name}.png
This page took 0.345569 seconds and 4 git commands to generate.