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