]> git.pld-linux.org Git - packages/freeciv.git/blob - freeciv.spec
- fix %setup (my fault - sorry)
[packages/freeciv.git] / freeciv.spec
1 #
2 # Conditional build:
3 %bcond_without gtk2             # build gtk1 client, not gtk2
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.1
11 Release:        2
12 License:        GPL
13 Group:          X11/Applications/Games/Strategy
14 Source0:        ftp://ftp.freeciv.org/freeciv/stable/%{name}-%{version}.tar.bz2
15 # Source0-md5:  d328f65e7fca5252f27161f5f9e97a03
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:  SDL_mixer-devel
25 BuildRequires:  esound-devel
26 %{!?with_gtk2:BuildRequires:    gtk+-devel > 1.2.1}
27 %{?with_gtk2:BuildRequires:     gtk+2-devel}
28 %{!?with_gtk2:BuildRequires:    imlib-devel >= 1.9.2}
29 BuildRequires:  readline-devel
30 BuildRequires:  zlib-devel
31 Requires:       SDL_mixer
32 Requires:       esound
33 %{!?with_gtk2:Requires: gtk+ > 1.2.1}
34 %{!?with_gtk2:Requires: imlib >= 1.9.2}
35 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36
37 %description
38 Free clone of Sid Meiers Civilization. Free Civilization clone for
39 unix and X. This is multiplayer strategic game and you can also play
40 against computer-AI players.
41
42 %description -l es
43 Clon del juego Civilization.
44
45 %description -l pl
46 Freeciv jest to niekomercyjny (GPL) klon gry Civilization Sida
47 Meiersa. Jest to gra strategiczna dla systemu X Window. Mo¿na graæ w
48 ni± z innymi osobami poprzez sieæ, a tak¿e przeciwko "graczom"
49 zarz±dzanym przez komputer.
50
51 %description -l pt_BR
52 O FreeCiv é uma implementação do Civilization II para o Sistema X
53 Window.
54
55 %prep
56 %setup -q -a 4 
57
58 %build
59 %configure2_13 \
60 %{!?with_gtk2:  --enable-client=gtk} \
61 %{?with_gtk2:   --enable-client=gtk2}
62
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{%{_desktopdir},%{_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%{_desktopdir}
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 %{_desktopdir}/*
91 %{_pixmapsdir}/*
This page took 0.055452 seconds and 4 git commands to generate.