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