1Name: 		@PACKAGE_NAME@
2Summary: 	Playable implementation of the Settlers of Catan
3Version: 	@VERSION@
4Release: 	1
5Group: 		Amusements/Games
6License: 	GPL
7Url: 		http://pio.sourceforge.net/
8Packager: 	The Pioneers developers <pio-develop@lists.sourceforge.net>
9Source: 	http://downloads.sourceforge.net/pio/@PACKAGE_TARNAME@-@VERSION@.tar.gz
10BuildRoot: 	%{_tmppath}/%{name}-%{version}-%{release}-root
11BuildRequires:  libgnome-devel, scrollkeeper
12BuildRequires:	gtk2-devel >= @GTK_REQUIRED_VERSION@
13BuildRequires:	glib2-devel >= @GLIB_REQUIRED_VERSION@
14Requires(post):	scrollkeeper
15
16%description
17Pioneers is a computerized version of a well known strategy board game. The
18goal of the game is to colonize an island. The players play the first
19colonists, hence the name Pioneers.
20
21This is the client software to play the game.
22
23%package 	ai
24Summary:	Pioneers AI Player
25Group:		Amusements/Games
26
27%description 	ai
28Pioneers is a computerized version of a well known strategy board game. The
29goal of the game is to colonize an island. The players play the first
30colonists, hence the name Pioneers.
31
32This package contains a computer player that can take part in Pioneers games.
33
34%package 	server-console
35Summary:	Pioneers Console Server
36Group:		Amusements/Games
37Requires:	pioneers-server-data
38
39%description 	server-console
40Pioneers is a computerized version of a well known strategy board game. The
41goal of the game is to colonize an island. The players play the first
42colonists, hence the name Pioneers.
43
44The packages contains the server.
45
46%package 	server-gtk
47Summary:	Pioneers GTK Server
48Group:		Amusements/Games
49Requires:	pioneers, pioneers-server-data
50
51%description 	server-gtk
52Pioneers is a computerized version of a well known strategy board game. The
53goal of the game is to colonize an island. The players play the first
54colonists, hence the name Pioneers.
55
56The server has a user interface in which you can customise the game
57parameters.  Once you are happy with the game parameters, press the Start
58Server button, and the server will start listening for client connections.
59
60%package 	server-data
61Summary: 	Pioneers Data
62Group: 		Amusements/Games
63
64%description 	server-data
65Pioneers is a computerized version of a well known strategy board game. The
66goal of the game is to colonize an island. The players play the first
67colonists, hence the name Pioneers.
68
69This package contains the data files for a game server.
70
71%package 	metaserver
72Summary:	Pioneers Metaserver
73Group:		Amusements/Games
74
75%description 	metaserver
76Pioneers is a computerized version of a well known strategy board game. The
77goal of the game is to colonize an island. The players play the first
78colonists, hence the name Pioneers.
79
80The metaserver registers available game servers and offers them to new
81players. It can also create new servers on client request.
82
83%package	editor
84Summary:	Pioneers Game Editor
85Group:		Amusements/Games
86Requires:	pioneers, pioneers-server-data
87
88%description	editor
89Pioneers is a computerized version of a well known strategy board game. The
90goal of the game is to colonize an island. The players play the first
91colonists, hence the name Pioneers.
92
93The game editor allows maps and game descriptions to be created and edited
94graphically.
95
96%prep
97%setup -q
98
99%build
100%configure
101make
102
103%install
104make install DESTDIR="%buildroot"
105rm -rf %{buildroot}%{localstatedir}/scrollkeeper/
106%find_lang %{name}
107
108%clean
109rm -rf %{buildroot}
110
111%files -f %name.lang
112%defattr(-,root,root)
113%doc AUTHORS COPYING ChangeLog INSTALL README NEWS
114%doc %_mandir/man6/pioneers.6.gz
115%{_bindir}/pioneers
116%{_datadir}/applications/pioneers.desktop
117%{_datadir}/pixmaps/pioneers.png
118%{_datadir}/pixmaps/pioneers/*
119%{_datadir}/games/pioneers/themes/*
120%{_datadir}/gnome/help/pioneers/C/*.xml
121%{_datadir}/gnome/help/pioneers/C/images/*
122%{_datadir}/omf/pioneers/pioneers-C.omf
123
124%post
125scrollkeeper-update -q -o %{_datadir}/omf/pioneers
126
127%postun
128scrollkeeper-update -q
129
130%files ai
131%defattr(-,root,root)
132%doc AUTHORS COPYING ChangeLog INSTALL README NEWS
133%doc %_mandir/man6/pioneersai.6.gz
134%{_bindir}/pioneersai
135%{_datadir}/games/pioneers/computer_names
136
137%files server-console
138%defattr(-,root,root)
139%doc AUTHORS COPYING ChangeLog INSTALL README NEWS
140%doc %_mandir/man6/pioneers-server-console.6.gz
141%{_bindir}/pioneers-server-console
142
143%files server-gtk
144%defattr(-,root,root)
145%doc AUTHORS COPYING ChangeLog INSTALL README NEWS
146%doc %_mandir/man6/pioneers-server-gtk.6.gz
147%{_bindir}/pioneers-server-gtk
148%{_datadir}/pixmaps/pioneers-server.png
149%{_datadir}/applications/pioneers-server.desktop
150
151%files server-data
152%defattr(-,root,root)
153%doc AUTHORS COPYING ChangeLog INSTALL README NEWS
154%{_datadir}/games/pioneers/*.game
155
156%files metaserver
157%defattr(-,root,root)
158%doc %_mandir/man6/pioneers-metaserver.6.gz
159%doc AUTHORS COPYING ChangeLog INSTALL README NEWS
160%{_bindir}/pioneers-metaserver
161
162%files editor
163%defattr(-,root,root)
164%doc AUTHORS COPYING ChangeLog INSTALL README NEWS
165%{_bindir}/pioneers-editor
166%{_datadir}/pixmaps/pioneers-editor.png
167%{_datadir}/applications/pioneers-editor.desktop
168
169