]>
Commit | Line | Data |
---|---|---|
b3cc19a9 | 1 | Summary: A simple personal server for the WorldForge project |
666b2b6b | 2 | Summary(pl.UTF-8): Prosty osobisty serwer dla projektu WorldForge |
b3cc19a9 MP |
3 | Name: cyphesis |
4 | Version: 0.5.6 | |
5 | Release: 0.1 | |
6 | License: GPL | |
af5d31de | 7 | Group: Applications/Games |
b3cc19a9 MP |
8 | Source0: %{name}-%{version}.tar.bz2 |
9 | Source1: %{name}.init | |
10 | Source2: cyclient.init | |
11 | Source3: %{name}.sysconfig | |
af5d31de | 12 | URL: http://www.worldforge.org/dev/eng/servers/cyphesis |
b3cc19a9 | 13 | BuildRequires: Atlas-C++-devel >= 0.6.0 |
af5d31de JB |
14 | BuildRequires: howl-devel |
15 | BuildRequires: libgcrypt-devel >= 1.2.0 | |
b3cc19a9 | 16 | BuildRequires: mercator-devel >= 0.2.0 |
b3cc19a9 | 17 | BuildRequires: openssl-devel |
af5d31de | 18 | BuildRequires: postgresql-devel >= 7.1 |
b3cc19a9 | 19 | BuildRequires: python-devel >= 2.0.0 |
af5d31de JB |
20 | BuildRequires: readline-devel |
21 | BuildRequires: skstream-devel >= 0.3.2 | |
22 | BuildRequires: varconf-devel >= 0.6.2 | |
23 | Requires(pre): /usr/sbin/useradd | |
24 | Requires(post,preun): /sbin/chkconfig | |
25 | Requires: rc-scripts | |
b3cc19a9 MP |
26 | Obsoletes: cyphesis-service |
27 | Obsoletes: cyphesis-mason | |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
29 | ||
30 | %description | |
af5d31de JB |
31 | Cyphesis is a very simple world simulator. NPCs that do things |
32 | according to rules. They have minds with simple input and output. They | |
33 | can use/move/make things and have simple discussion. They can deduce | |
b3cc19a9 MP |
34 | simple things (like where I can get these things and where I should |
35 | be). They have simple memory and use it too. They can have goals (like | |
36 | build home for me or go to dinner). | |
af5d31de | 37 | |
b3cc19a9 MP |
38 | This package includes the rules data, scripts and map data required for the |
39 | Mason game. Use this package if you intend to run an Mason server. | |
40 | ||
db865721 JR |
41 | %description -l pl.UTF-8 |
42 | Cyphesis to bardzo prosty symulator świata. NPC wykonujące swoje | |
43 | czynności zgodnie z regułami. Mają mózgi z prostym wejściem i | |
44 | wyjściem. Mogą używać/przenosić/robić rzeczy i prowadzić proste | |
45 | dyskusje. Mogą wydedukować proste rzeczy (np. skąd pozyskać dane | |
46 | przedmioty i gdzie powinny być). Mają prostą pamięć i jej używają. | |
47 | Mogą mieć swoje cele (np. zbudować dom lub pójść na obiad). | |
af5d31de | 48 | |
db865721 JR |
49 | Ten pakiet zawiera dane reguł, skrypty i dane map wymagane przez grę |
50 | Mason. Należy użyć tego pakietu przy uruchamianiu serwera Masona. | |
af5d31de | 51 | |
b3cc19a9 | 52 | #%package acorn |
af5d31de JB |
53 | #Summary: Game data for running the Acorn game in Cyphesis |
54 | #Summary(pl): Dane gry do uruchamiania gry Acorn w Cyphesis | |
55 | #Group: Applications/Games | |
56 | #Requires: %{name} = %{version}-%{release} | |
b3cc19a9 MP |
57 | |
58 | #%description acorn | |
59 | #This is the rules data, scripts and map data required for the Acorn | |
60 | #game. Install this package if you intend to run an Acorn server. | |
61 | #Acorn is deprecated. See README for details. | |
62 | ||
af5d31de | 63 | #%description acorn -l pl |
db865721 JR |
64 | #Ten pakiet zawiera dane reguł, skrypty i dane map wymagane przez grę |
65 | #Acorn. Należy użyć tego pakietu przy uruchamianiu serwera Acorna. | |
66 | #Acorn jest przestarzały. Szczegóły w pliku README. | |
af5d31de | 67 | |
b3cc19a9 | 68 | #%package werewolf |
af5d31de JB |
69 | #Summary: Game data for running the Werewolf game in Cyphesis |
70 | #Summary(pl): Dane gry do uruchamiania gry Werewolf w Cyphesis | |
71 | #Group: Applications/Games | |
72 | #Requires: %{name}-acorn = %{version}-%{release} | |
b3cc19a9 MP |
73 | |
74 | #%description werewolf | |
75 | #This is the rules data, scripts and map data required for the Werewolf | |
76 | #game. Install this package if you intend to run an Werewolf server. | |
77 | #Werewolf is not yet functional. | |
78 | ||
af5d31de | 79 | #%description werewolf |
db865721 JR |
80 | #Ten pakiet zawiera dane reguł, skrypty i dane map wymagane przez grę |
81 | #Werewolf. Należy użyć tego pakietu przy uruchamianiu serwera | |
82 | #Werewolfa. Werewolf jeszcze nie działa. | |
af5d31de | 83 | |
b3cc19a9 MP |
84 | %prep |
85 | %setup -q | |
86 | ||
87 | %build | |
af5d31de | 88 | %configure |
b3cc19a9 MP |
89 | |
90 | %{__make} | |
91 | ||
92 | %install | |
93 | rm -rf $RPM_BUILD_ROOT | |
af5d31de | 94 | |
b3cc19a9 MP |
95 | %{__make} install \ |
96 | DESTDIR=$RPM_BUILD_ROOT | |
97 | #if [ -d /etc/rc.d/init.d ] | |
98 | #then | |
99 | # install -d $RPM_BUILD_ROOT/etc/rc.d/init.d | |
100 | # install -m 755 %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/cyphesis | |
101 | # install -m 755 %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/cyclient | |
102 | # echo /etc/rc.d/init.d/cyphesis >> service.lst | |
103 | # echo /etc/rc.d/init.d/cyclient >> service.lst | |
104 | #fi | |
105 | #if [ -d /etc/sysconfig ] | |
106 | #then | |
107 | # install -d $RPM_BUILD_ROOT/etc/sysconfig | |
108 | # install -m 644 %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/cyphesis | |
109 | # echo %config\(noreplace\) /etc/sysconfig/cyphesis >> service.lst | |
110 | #fi | |
111 | ||
112 | #%pre | |
113 | #useradd -M -n -r -s /bin/bash -c "Cyphesis user" cyphesis >/dev/null 2>&1 || : | |
114 | ||
115 | #%post | |
116 | #chkconfig --add cyphesis | |
117 | #chkconfig --add cyclient | |
118 | ||
119 | # If we obsolete cyphesis-service, then it will delete its service entries | |
120 | # and account after our %pre and %post have run. We need to ensure they | |
121 | # are re-added. | |
122 | #%triggerpostun -- cyphesis-service | |
123 | #useradd -M -n -r -s /bin/bash -c "Cyphesis user" cyphesis >/dev/null 2>&1 || : | |
124 | #chkconfig --add cyphesis | |
125 | #chkconfig --add cyclient | |
126 | ||
127 | #%preun | |
128 | #if [ $1 = 0 ] ; then | |
129 | # chkconfig --del cyphesis | |
130 | # chkconfig --del cyclient | |
131 | #fi | |
132 | ||
133 | #%postun | |
134 | #if [ $1 -ge 1 ]; then | |
135 | # %service cyphesis condrestart >/dev/null 2>&1 | |
136 | #fi | |
137 | #if [ $1 = 0 ] ; then | |
138 | # userdel cyphesis >/dev/null 2>&1 || : | |
139 | #fi | |
140 | ||
141 | %clean | |
142 | rm -rf $RPM_BUILD_ROOT | |
143 | ||
144 | %files -f service.lst | |
145 | %defattr(644,root,root,755) | |
af5d31de JB |
146 | %doc README COPYING AUTHORS THANKS NEWS |
147 | %dir %{_sysconfdir}/cyphesis | |
148 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cyphesis/cyphesis.vconf | |
149 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cyphesis/basic.xml | |
150 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cyphesis/acorn.xml | |
151 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cyphesis/mason.xml | |
152 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cyphesis/werewolf.xml | |
b3cc19a9 | 153 | %attr(755,root,root) %{_bindir}/cy* |
af5d31de JB |
154 | %dir %{_datadir}/cyphesis |
155 | %dir %{_datadir}/cyphesis/rulesets | |
b3cc19a9 MP |
156 | %{_datadir}/cyphesis/rulesets/basic |
157 | %{_datadir}/cyphesis/rulesets/mason | |
158 | %{_mandir}/man1/*.1* | |
b3cc19a9 MP |
159 | |
160 | #%files acorn | |
161 | #%defattr(-,root,root) | |
162 | #%config %{_sysconfdir}/cyphesis/acorn.xml | |
163 | #%{_datadir}/cyphesis/rulesets/acorn | |
164 | ||
165 | #%files werewolf | |
166 | #%defattr(-,root,root) | |
167 | #%config %{_sysconfdir}/cyphesis/werewolf.xml | |
168 | #%{_datadir}/cyphesis/rulesets/werewolf |