]> git.pld-linux.org Git - packages/freeciv.git/blob - freeciv.spec
- updated to 2.0.8
[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:        2.0.8
11 Release:        1
12 License:        GPL
13 Group:          X11/Applications/Games/Strategy
14 Source0:        http://dl.sourceforge.net/freeciv/%{name}-%{version}.tar.bz2
15 # Source0-md5:  9ebd5899c2c78362e0e2c68791673a88
16 Source1:        ftp://ftp.freeciv.org/freeciv/contrib/sounds/sets/stdsounds3.tar.gz
17 # Source1-md5:  77215914712f2f351092918f5e41e39e
18 Source2:        %{name}-client.desktop
19 Source3:        %{name}-server.desktop
20 Source4:        %{name}.png
21 Patch0:         %{name}-link.patch
22 URL:            http://www.freeciv.org/
23 BuildRequires:  SDL_mixer-devel
24 BuildRequires:  autoconf >= 2.52
25 BuildRequires:  automake
26 BuildRequires:  esound-devel
27 %{!?with_gtk2:BuildRequires:    gtk+-devel > 1.2.1}
28 %{?with_gtk2:BuildRequires:     gtk+2-devel}
29 %{!?with_gtk2:BuildRequires:    imlib-devel >= 1.9.2}
30 BuildRequires:  pkgconfig
31 BuildRequires:  readline-devel
32 BuildRequires:  zlib-devel
33 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
35 %description
36 Free clone of Sid Meier's Civilization. Free Civilization clone for
37 unix and X. This is multiplayer strategic game and you can also play
38 against computer-AI players.
39
40 %description -l es
41 Clon del juego Civilization.
42
43 %description -l pl
44 Freeciv jest to niekomercyjny (GPL) klon gry Civilization Sida Meiera.
45 Jest to gra strategiczna dla systemu X Window. Mo¿na graæ w ni± z
46 innymi osobami poprzez sieæ, a tak¿e przeciwko "graczom" zarz±dzanym
47 przez komputer.
48
49 %description -l pt_BR
50 O FreeCiv é uma implementação do Civilization II para o Sistema X
51 Window.
52
53 %package client
54 Summary:        Freeciv game client
55 Summary(pl):    Klient gry Freeciv
56 Group:          X11/Applications/Games/Strategy
57 Requires:       %{name} = %{version}-%{release}
58 Requires:       SDL_mixer
59 Requires:       esound
60 %{!?with_gtk2:Requires: gtk+ > 1.2.1}
61 %{!?with_gtk2:Requires: imlib >= 1.9.2}
62
63 %description client
64 This package contains Freeciv game client.
65
66 %description client -l pl
67 Ten pakiet zawiera klienta gry Freeciv.
68
69 %package server
70 Summary:        Freeciv game server
71 Summary(pl):    Serwer gry Freeciv
72 Group:          X11/Applications/Games/Strategy
73 Requires:       %{name} = %{version}-%{release}
74
75 %description server
76 This package contans Freeciv game server.
77
78 %description server -l pl
79 Ten pakiet zawiera server gry Freeciv.
80
81 %prep
82 %setup -q -a1
83 %patch0 -p1
84
85 %build
86 %{__aclocal}
87 %{__autoconf}
88 %{__autoheader}
89 %{__automake}
90 %configure \
91 %{!?with_gtk2:  --enable-client=gtk} \
92 %{?with_gtk2:   --enable-client=gtk2}
93
94 %{__make}
95
96 %install
97 rm -rf $RPM_BUILD_ROOT
98 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
99
100 %{__make} install \
101         DESTDIR=$RPM_BUILD_ROOT
102
103 install %{SOURCE2} %{SOURCE3} $RPM_BUILD_ROOT%{_desktopdir}
104 install %{SOURCE4} $RPM_BUILD_ROOT%{_pixmapsdir}
105
106 cp -rf data/stdsounds{,.soundspec} $RPM_BUILD_ROOT%{_datadir}/%{name}
107
108 mv -f $RPM_BUILD_ROOT%{_datadir}/locale/he{_IL,}
109 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/no
110
111 %find_lang %{name}
112
113 %clean
114 rm -rf $RPM_BUILD_ROOT
115
116 %files -f %{name}.lang
117 %defattr(644,root,root,755)
118 %doc AUTHORS README ChangeLog NEWS
119 %{_pixmapsdir}/*
120 %dir %{_datadir}/%{name}
121 %{_datadir}/%{name}/helpdata.txt
122
123 %files server
124 %defattr(644,root,root,755)
125 %attr(755,root,root) %{_bindir}/civserver
126 %{_desktopdir}/%{name}-server.desktop
127 %{_datadir}/%{name}/civ1
128 %{_datadir}/%{name}/civ2
129 %{_datadir}/%{name}/default
130 %{_datadir}/%{name}/history
131 %{_datadir}/%{name}/nation
132 %{_datadir}/%{name}/scenario
133 %{_datadir}/%{name}/*.serv
134 %{_mandir}/man6/civserver.6*
135
136 %files client
137 %defattr(644,root,root,755)
138 %attr(755,root,root) %{_bindir}/civclient
139 %attr(755,root,root) %{_bindir}/civmanual
140 %{_desktopdir}/%{name}-client.desktop
141 %{_datadir}/%{name}/freeciv.rc*
142 %{_datadir}/%{name}/isotrident
143 %{_datadir}/%{name}/misc
144 %{_datadir}/%{name}/trident
145 %{_datadir}/%{name}/isophex
146 %{_datadir}/%{name}/flags
147 %{_datadir}/%{name}/*.*spec
148 %{_datadir}/%{name}/stdsounds
149 %{_mandir}/man6/civclient.6*
This page took 0.080883 seconds and 4 git commands to generate.