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