]> git.pld-linux.org Git - packages/freeciv.git/blob - freeciv.spec
- _applnkdir -> _desktopdir; rel. 1.%%{beta}.1
[packages/freeciv.git] / freeciv.spec
1 #
2 # Conditional build:
3 %bcond_without gtk2             # build gtk1 client, not gtk2
4 #
5
6 %define         beta    beta4
7
8 Summary:        FREE CIVilization clone
9 Summary(es):    Clon del juego Civilization
10 Summary(pl):    Niekomercyjny klon CIVilization
11 Summary(pt_BR): Clone do jogo Civilization
12 Name:           freeciv
13 Version:        1.14.1
14 Release:        1.%{beta}.1
15 License:        GPL
16 Group:          X11/Applications/Games/Strategy
17 Source0:        ftp://ftp.freeciv.org/freeciv/beta/%{name}-%{version}-%{beta}.tar.bz2
18 # Source0-md5:  55188bafed83501255d6fed62dea4517
19 Source1:        %{name}-client.desktop
20 Source2:        %{name}-server.desktop
21 Source3:        %{name}.png
22 Source4:        ftp://ftp.freeciv.org/freeciv/contrib/sounds/sets/stdsounds1.tar.gz
23 # Source4-md5:  28a54fbe3ddb67a9b8fe85b8332415e1
24 Source5:        ftp://ftp.freeciv.org/freeciv/contrib/sounds/sets/stdsounds.spec
25 # Source5-md5:  6e3e2bc551eb49ca87c4f0085991db15
26 URL:            http://www.freeciv.org/
27 BuildRequires:  SDL_mixer-devel
28 BuildRequires:  esound-devel
29 %{!?with_gtk2:BuildRequires:    gtk+-devel > 1.2.1}
30 %{?with_gtk2:BuildRequires:     gtk+2-devel}
31 %{!?with_gtk2:BuildRequires:    imlib-devel >= 1.9.2}
32 BuildRequires:  readline-devel
33 BuildRequires:  zlib-devel
34 Requires:       SDL_mixer
35 Requires:       esound
36 %{!?with_gtk2:Requires: gtk+ > 1.2.1}
37 %{!?with_gtk2:Requires: imlib >= 1.9.2}
38 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39
40 %description
41 Free clone of Sid Meiers Civilization. Free Civilization clone for
42 unix and X. This is multiplayer strategic game and you can also play
43 against computer-AI players.
44
45 %description -l es
46 Clon del juego Civilization.
47
48 %description -l pl
49 Freeciv jest to niekomercyjny (GPL) klon gry Civilization Sida
50 Meiersa. Jest to gra strategiczna dla systemu X Window. Mo¿na graæ w
51 ni± z innymi osobami poprzez sieæ, a tak¿e przeciwko "graczom"
52 zarz±dzanym przez komputer.
53
54 %description -l pt_BR
55 O FreeCiv é uma implementação do Civilization II para o Sistema X
56 Window.
57
58 %prep
59 %setup -q -a 4 -n %{name}-%{version}-%{beta}
60
61 %build
62 %configure2_13 \
63 %{!?with_gtk2:  --enable-client=gtk} \
64 %{?with_gtk2:   --enable-client=gtk2}
65
66 %{__make}
67
68 %install
69 rm -rf $RPM_BUILD_ROOT
70 install -d $RPM_BUILD_ROOT%{_libdir}/X11/app-defaults \
71         $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
72
73 %{__make} install \
74         DESTDIR=$RPM_BUILD_ROOT
75
76 rm $RPM_BUILD_ROOT%{_datadir}/freeciv/Freeciv
77
78 install %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}
79 install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
80 install %{SOURCE5} $RPM_BUILD_ROOT%{_datadir}/freeciv/stdsounds.soundspec
81 cp -ar stdsounds $RPM_BUILD_ROOT%{_datadir}/freeciv
82
83 %find_lang %{name}
84
85 %clean
86 rm -rf $RPM_BUILD_ROOT
87
88 %files -f %{name}.lang
89 %defattr(644,root,root,755)
90 %doc AUTHORS README ChangeLog NEWS
91 %attr(755,root,root) %{_bindir}/*
92 %{_datadir}/freeciv
93 %{_desktopdir}/*
94 %{_pixmapsdir}/*
This page took 0.037262 seconds and 4 git commands to generate.