]> git.pld-linux.org Git - packages/warmux.git/blob - warmux.spec
- unconditional noarch subpackages
[packages/warmux.git] / warmux.spec
1 Summary:        A free (libre) clone of Worms from Team17
2 Summary(de.UTF-8):      Ein kostenloser Team17 Worms-Klon
3 Summary(pl.UTF-8):      WolnodostÄ™pny klon Worms z Team17
4 Name:           warmux
5 Version:        11.04.1
6 Release:        9
7 License:        GPL v2+
8 Group:          X11/Applications/Games
9 Source0:        http://download.gna.org/warmux/%{name}-%{version}.tar.bz2
10 # Source0-md5:  26ff65c43a9bb61a3f0529c98b943e35
11 Patch0:         desktop.patch
12 Patch1:         optflags.patch
13 Patch2:         %{name}-libpng15.patch
14 Patch3:         %{name}-gcc47.patch
15 Patch4:         gcc6.patch
16 URL:            http://www.warmux.org/
17 BuildRequires:  SDL-devel >= 1.2.6
18 BuildRequires:  SDL_gfx-devel >= 2.0.13
19 BuildRequires:  SDL_image-devel
20 BuildRequires:  SDL_mixer-devel
21 BuildRequires:  SDL_net-devel
22 BuildRequires:  SDL_ttf-devel
23 BuildRequires:  autoconf
24 BuildRequires:  automake
25 BuildRequires:  curl-devel >= 7.16.4-2
26 BuildRequires:  gettext-tools
27 BuildRequires:  libpng-devel
28 BuildRequires:  libxml++-devel >= 2.6
29 BuildRequires:  perl-base
30 BuildRequires:  pkgconfig
31 BuildRequires:  sed >= 4.1
32 Requires:       %{name}-data = %{version}-%{release}
33 Suggests:       warmux-bonusmaps
34 Obsoletes:      wormux
35 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36
37 %description
38 A free (libre) clone of Worms from Team17.
39
40 %description -l de.UTF-8
41 Ein kostenloser Team17 Worms-Klon.
42
43 %description -l pl.UTF-8
44 WolnodostÄ™pny klon gry Worms z Team17.
45
46 %package data
47 Summary:        warmux data files
48 Group:          Applications/Games
49 BuildArch:      noarch
50
51 %description data
52 warmux data files
53
54 %prep
55 %setup -q -n %{name}-11.04
56 %patch0 -p1
57 %patch1 -p1
58 %patch2 -p1
59 %patch3 -p1
60 %patch4 -p1
61
62 # disable building unsupported locales
63 %{__sed} -i -e 's|cpf||g;s|ua||g' po/LINGUAS
64
65 # fix jp locale
66 %{__sed} -i -e 's/ja_JP/ja/g' po/LINGUAS
67 mv -f po/ja{_JP,}.po
68
69 %build
70 %{__aclocal} -I build/m4
71 %{__autoconf}
72 %{__automake}
73 %configure \
74         OPTFLAGS="%{rpmcxxflags}" \
75         --with-datadir-name=%{_datadir}/games/%{name}
76 %{__make}
77
78 %install
79 rm -rf $RPM_BUILD_ROOT
80
81 %{__make} install \
82         DESTDIR=$RPM_BUILD_ROOT
83
84 # rename pixmap
85 mv -f $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}_128x128.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
86
87 %find_lang %{name}
88
89 %clean
90 rm -rf $RPM_BUILD_ROOT
91
92 %files -f %{name}.lang
93 %defattr(644,root,root,755)
94 %doc AUTHORS ChangeLog README
95 %attr(755,root,root) %{_bindir}/warmux
96 %attr(755,root,root) %{_bindir}/warmux-list-games
97 %{_mandir}/man6/warmux.6*
98 %{_desktopdir}/%{name}.desktop
99 %{_pixmapsdir}/%{name}.png
100
101 %files data
102 %defattr(644,root,root,755)
103 %{_datadir}/games/%{name}
This page took 0.076764 seconds and 4 git commands to generate.