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