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