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