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