]> git.pld-linux.org Git - packages/freeciv.git/blob - freeciv.spec
- %datdir/%name owned by freeciv
[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.2
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:  280770591c8f87ac542dcd50702da205
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 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
70 %package server
71 Summary:        Freeciv game server
72 Summary(pl):    Serwer gry Freeciv
73 Group:          X11/Applications/Games/Strategy
74 Requires:       %{name} = %{version}-%{release}
75
76 %description server
77 This package contans Freeciv game server.
78
79 %description server -l pl
80 Ten pakiet zawiera server gry Freeciv.
81
82 %prep
83 %setup -q -a 4
84 %patch0 -p1
85
86 mv -f po/{no,nb}.po
87
88 %build
89 cp -f %{_datadir}/automake/config.sub .
90 %configure2_13 \
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%{_libdir}/X11/app-defaults \
99         $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
100
101 %{__make} install \
102         DESTDIR=$RPM_BUILD_ROOT
103
104 rm $RPM_BUILD_ROOT%{_datadir}/freeciv/Freeciv
105
106 install %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}
107 install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
108 install %{SOURCE5} $RPM_BUILD_ROOT%{_datadir}/freeciv/stdsounds.soundspec
109 cp -ar stdsounds $RPM_BUILD_ROOT%{_datadir}/freeciv
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
135 %files client
136 %defattr(644,root,root,755)
137 %attr(755,root,root) %{_bindir}/civclient
138 %{_desktopdir}/%{name}-client.desktop
139 %{_datadir}/%{name}/freeciv.rc*
140 %{_datadir}/%{name}/isotrident
141 %{_datadir}/%{name}/misc
142 %{_datadir}/%{name}/stdsounds
143 %{_datadir}/%{name}/trident
144 %{_datadir}/%{name}/*.*spec
This page took 0.037363 seconds and 4 git commands to generate.