]> git.pld-linux.org Git - packages/pingus.git/blob - pingus.spec
- target file names added to "install -D"
[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 Name:           pingus
4 Version:        0.5.0pre2
5 Release:        1
6 License:        GPL
7 Group:          X11/Applications/Games
8 Group(de):      X11/Applikationen/Spiele
9 Group(pl):      X11/Aplikacje/Gry
10 Source0:        http://dark.x.dtu.dk/~grumbel/%{name}/%{name}-%{version}.tar.bz2
11 Source1:        %{name}.desktop
12 Source2:        %{name}.png
13 Patch0:         %{name}-datadir.patch
14 URL:            http://pingus.seul.org/
15 BuildRequires:  ClanLib-devel >= 0.5.0
16 BuildRequires:  Hermes-devel
17 BuildRequires:  SDL-devel >= 1.2.0
18 BuildRequires:  SDL_mixer-devel
19 BuildRequires:  XFree86-devel
20 BuildRequires:  autoconf
21 BuildRequires:  automake
22 BuildRequires:  gettext-devel
23 BuildRequires:  gtk+-devel > 1.2.1
24 BuildRequires:  glib-devel
25 BuildRequires:  libstdc++-devel
26 BuildRequires:  libxml-devel
27 BuildRequires:  texinfo
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %define         _prefix         /usr/X11R6
31 %define         _mandir         %{_prefix}/man
32
33 %description
34 A cool lemmings game with penguins instead of lemmings!
35
36 %description -l pl
37 Wspania³a gra typu lemmings z tym, ¿e sterujesz pingwinami!
38
39 %prep
40 %setup -q
41 %patch0 -p1
42
43 %build
44 ./autogen.sh || :
45 install -d  data/images/buttons/
46 touch data/images/buttons/Makefile.in
47 %configure \
48         CPPFLAGS="-I%{_includedir}" \
49         LDFLAGS="-L%{_libdir} %{rpmldflags}"
50 %{__make}
51
52 %install
53 rm -rf $RPM_BUILD_ROOT
54
55 %{__make} install \
56         DESTDIR=$RPM_BUILD_ROOT \
57         bindir=%{_bindir} \
58         pkgdatadir=%{_datadir}/%{name}
59
60 install -D %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Games/%{name}
61 install -D %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.desktop
62
63 gzip -9nf AUTHORS BUGS ChangeLog CREDITS FAQ NEWS TODO THANKS
64
65 %clean
66 rm -rf $RPM_BUILD_ROOT
67
68 %files
69 %defattr(644,root,root,755)
70 %doc *.gz
71 %attr(755,root,root) %{_bindir}/*
72 %{_datadir}/%{name}
73 %{_mandir}/man*/*
74 %{_applnkdir}/Games/*
75 %{_pixmapsdir}/*
This page took 0.071497 seconds and 4 git commands to generate.