]>
Commit | Line | Data |
---|---|---|
a8c23ce1 | 1 | # TODO |
e41524ae | 2 | # - separate htdocs and includedirs |
62231483 | 3 | # - list of bundled software (to use pld packages instead): |
a8c23ce1 | 4 | # - everything |
261d6c67 | 5 | |
7c3606f1 | 6 | %define _rel 0.23 |
e559daf9 | 7 | Summary: eGroupWare - a web-based groupware suite written in PHP |
7477a8d4 | 8 | Summary(pl.UTF-8): eGroupWAre - oparte na WWW oprogramowanie do pracy grupowej napisane w PHP |
a8c23ce1 | 9 | Name: egroupware |
55419343 | 10 | Version: 1.2 |
5fb592b1 | 11 | Release: 2.%{_rel} |
a8c23ce1 ER |
12 | License: GPL |
13 | Group: Applications/WWW | |
5fb592b1 ER |
14 | Source0: http://dl.sourceforge.net/egroupware/eGroupWare-%{version}-2.tar.bz2 |
15 | # Source0-md5: 2758792188125086f815e0e412a30904 | |
42f47170 ER |
16 | Source1: http://dl.sourceforge.net/egroupware/eGroupWare-contrib-%{version}-2.tar.bz2 |
17 | # Source1-md5: 574b71590449f7650aecd61cda496aec | |
18 | Source2: %{name}.conf | |
19 | Source3: %{name}.cron | |
9f1ba0fe | 20 | Patch0: %{name}-setup.patch |
e41524ae | 21 | Patch1: %{name}-ttfdir.patch |
a8c23ce1 | 22 | URL: http://www.egroupware.org/ |
b2d21ca9 | 23 | BuildRequires: rpmbuild(macros) >= 1.304 |
249d2949 | 24 | BuildRequires: rpm-pythonprov |
e41524ae | 25 | BuildRequires: sed >= 4.0 |
42f47170 ER |
26 | Requires: %{name}-addressbook = %{version}-%{release} |
27 | Requires: %{name}-bookmarks = %{version}-%{release} | |
28 | Requires: %{name}-calendar = %{version}-%{release} | |
29 | Requires: %{name}-core = %{version}-%{release} | |
30 | Requires: %{name}-developer_tools = %{version}-%{release} | |
31 | Requires: %{name}-emailadmin = %{version}-%{release} | |
32 | Requires: %{name}-felamimail = %{version}-%{release} | |
33 | Requires: %{name}-filemanager = %{version}-%{release} | |
34 | Requires: %{name}-infolog = %{version}-%{release} | |
35 | Requires: %{name}-manual = %{version}-%{release} | |
36 | Requires: %{name}-mydms = %{version}-%{release} | |
37 | Requires: %{name}-news_admin = %{version}-%{release} | |
38 | Requires: %{name}-phpbrain = %{version}-%{release} | |
39 | Requires: %{name}-polls = %{version}-%{release} | |
40 | Requires: %{name}-projectmanager = %{version}-%{release} | |
41 | Requires: %{name}-registration = %{version}-%{release} | |
42 | Requires: %{name}-resources = %{version}-%{release} | |
43 | Requires: %{name}-sambaadmin = %{version}-%{release} | |
44 | Requires: %{name}-sitemgr = %{version}-%{release} | |
45 | Requires: %{name}-syncml = %{version}-%{release} | |
46 | Requires: %{name}-timesheet = %{version}-%{release} | |
47 | Requires: %{name}-wiki = %{version}-%{release} | |
a8c23ce1 ER |
48 | BuildArch: noarch |
49 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
50 | ||
62231483 ER |
51 | %define _webapps /etc/webapps |
52 | %define _webapp %{name} | |
53 | %define _sysconfdir %{_webapps}/%{_webapp} | |
54 | %define _appdir %{_datadir}/%{_webapp} | |
2082bc87 | 55 | %define schemadir /usr/share/openldap/schema |
62231483 | 56 | |
a8c23ce1 ER |
57 | %description |
58 | eGroupWare is a multi-user, web-based groupware suite developed on a | |
42f47170 ER |
59 | custom set of PHP-based APIs. |
60 | ||
61 | This package provides the eGroupWare default applications: | |
62 | ||
e83c2179 ER |
63 | egroupware core with: admin, api, docs, etemplate, preferences, |
64 | addressbook, bookmarks, calendar, translation-tools, emailadmin, | |
65 | felamimail, filemanager, infolog, manual, mydms, news admin, | |
66 | knowledgebase, polls, projectmanager, resources, sambaadmin, sitemgr, | |
67 | syncml, timesheet, wiki, workflow | |
42f47170 ER |
68 | |
69 | It also provides an API for developing additional applications. | |
70 | ||
71 | Further contributed applications are avalible in single packages. | |
a8c23ce1 | 72 | |
055977bd JR |
73 | %description -l pl.UTF-8 |
74 | eGroupWare to wieloużytkownikowe, oparte na WWW oprogramowanie do | |
75 | pracy grupowej stworzone na własnym zestawie API opartych na PHP. | |
76 | Aktualnie dostępne moduły obejmują: pocztę elektroniczną, książkę | |
77 | adresową, kalendarz, infolog (notatki, rzeczy do zrobienia, rozmowy | |
78 | telefoniczne), zarządzanie treścią, forum, zakładki, wiki. | |
e559daf9 | 79 | |
42f47170 ER |
80 | %package core |
81 | Summary: The eGroupWare core package | |
82 | Group: Applications/WWW | |
83 | Requires: %{name}(DB_Driver) = %{version}-%{release} | |
84 | Requires: /usr/bin/php | |
85 | Requires: crondaemon | |
86 | Requires: fonts-TTF-bitstream-vera | |
42f47170 | 87 | Requires: php-cli |
7c3606f1 ER |
88 | Requires: php(gd) |
89 | Requires: php(imap) | |
90 | Requires: php(mbstring) | |
91 | Requires: php(pcre) | |
42f47170 | 92 | Requires: webapps |
7c3606f1 | 93 | Requires: webserver(php) >= 4.3 |
42f47170 ER |
94 | Provides: %{name}-etemplate = %{version}-%{release} |
95 | Provides: %{name}-syncml = %{version}-%{release} | |
96 | ||
97 | %description core | |
98 | This package provides the eGroupWare core applications. | |
99 | ||
100 | %package addressbook | |
101 | Summary: The eGroupWare addressbook application | |
102 | Group: Applications/WWW | |
103 | Requires: %{name}-core = %{version}-%{release} | |
104 | ||
105 | %description addressbook | |
106 | Contact manager with Vcard support. addressbook is the egroupware | |
107 | default contact application. It makes use of the egroupware contacts | |
108 | class to store and retrieve contact information via SQL, LDAP or | |
109 | Active Directory. | |
110 | ||
111 | %package backup | |
112 | Summary: The eGroupWare backup application | |
113 | Group: Applications/WWW | |
114 | Requires: %{name}-core = %{version}-%{release} | |
115 | ||
116 | %description backup | |
117 | An online configurable backup app to store data offline. Can store | |
118 | files in zip, tar.gz and tar.bz2 on the local machine or Remote via | |
119 | FTP, SMBMOUNT or NFS | |
120 | ||
121 | %package browser | |
122 | Summary: The eGroupWare browser application | |
123 | Group: Applications/WWW | |
124 | Requires: %{name}-core = %{version}-%{release} | |
125 | ||
126 | %description browser | |
127 | Intergrated browser to surf the web within eGroupWare. | |
128 | ||
129 | %package bookmarks | |
130 | Summary: The eGroupWare bookmarks application | |
131 | Group: Applications/WWW | |
132 | Requires: %{name}-core = %{version}-%{release} | |
133 | ||
134 | %description bookmarks | |
135 | Manage your bookmarks with eGroupWare. Has Netscape plugin. | |
136 | ||
137 | %package calendar | |
138 | Summary: The eGroupWare calendar application | |
139 | Group: Applications/WWW | |
140 | Requires: %{name}-core = %{version}-%{release} | |
e83c2179 | 141 | Requires: %{name}-etemplate = %{version}-%{release} |
42f47170 ER |
142 | |
143 | %description calendar | |
144 | Powerful calendar with meeting request system, Alarms, ICal and E-Mail | |
145 | support, and ACL security. | |
146 | ||
147 | %package chatty | |
148 | Summary: Instant messenger for eGroupWare | |
149 | Group: Applications/WWW | |
150 | Requires: %{name}-core = %{version}-%{release} | |
151 | ||
152 | %description chatty | |
153 | Instant messenger application using AJAX. | |
154 | ||
155 | %package comic | |
156 | Summary: The eGroupWare comic application | |
157 | Group: Applications/WWW | |
158 | Requires: %{name}-core = %{version}-%{release} | |
159 | ||
160 | %description comic | |
161 | This application display comic strips. | |
162 | ||
163 | %package developer_tools | |
164 | Summary: The eGroupWare developer_tools application | |
165 | Group: Applications/WWW | |
166 | ||
167 | %description developer_tools | |
168 | The TranslationTools allow to create and extend translations-files for | |
169 | eGroupWare. They can search the sources for new / added phrases and | |
170 | show you the ones missing in your language. | |
171 | ||
172 | %package email | |
173 | Summary: The eGroupWare email application | |
174 | Group: Applications/WWW | |
175 | Requires: %{name}-addressbook = %{version}-%{release} | |
176 | Requires: %{name}-core = %{version}-%{release} | |
177 | ||
178 | %description email | |
179 | AngleMail for eGroupWare at www.anglemail.org is an Email reader with | |
180 | multiple accounts and mailbox filtering. Also Anglemail support IMAP, | |
181 | IMAPS, POP3 and POP3S accounts. | |
182 | ||
183 | %package emailadmin | |
184 | Summary: The eGroupWare emailadmin application | |
185 | Group: Applications/WWW | |
186 | Requires: %{name}-core = %{version}-%{release} | |
187 | ||
188 | %description emailadmin | |
189 | EmailAdmin allow to maintain User email accounts | |
190 | ||
191 | %package egwical | |
192 | Summary: The eGroupWare egwical application | |
193 | Group: Applications/WWW | |
194 | Requires: %{name}-core = %{version}-%{release} | |
195 | ||
196 | %description egwical | |
197 | This is the egwical app for eGroupWare. | |
198 | ||
199 | %package felamimail | |
200 | Summary: The eGroupWare felamimail application | |
201 | Group: Applications/WWW | |
202 | Requires: %{name}-core = %{version}-%{release} | |
203 | Requires: %{name}-emailadmin = %{version}-%{release} | |
204 | ||
205 | %description felamimail | |
206 | The felamimail Email Reader is a other Email application for | |
207 | eGroupWare. | |
208 | ||
209 | %package filemanager | |
210 | Summary: The eGroupWare filemanager application | |
211 | Group: Applications/WWW | |
212 | Requires: %{name}-core = %{version}-%{release} | |
213 | ||
214 | %description filemanager | |
215 | This is the filemanager app for eGroupWare. | |
216 | ||
217 | %package filescenter | |
218 | Summary: The eGroupWare filescenter application | |
219 | Group: Applications/WWW | |
220 | Requires: %{name}-core = %{version}-%{release} | |
221 | ||
222 | %description filescenter | |
223 | This is the filescenter app for eGroupWare. | |
224 | ||
225 | %package forum | |
226 | Summary: The eGroupWare forum application | |
227 | Group: Applications/WWW | |
228 | Requires: %{name}-core = %{version}-%{release} | |
229 | ||
230 | %description forum | |
231 | This is the forum app for eGroupWare. | |
232 | ||
233 | %package ftp | |
234 | Summary: The eGroupWare ftp application | |
235 | Group: Applications/WWW | |
236 | Requires: %{name}-core = %{version}-%{release} | |
237 | ||
238 | %description ftp | |
239 | This is the ftp app for eGroupWare. | |
240 | ||
241 | %package fudforum | |
242 | Summary: The eGroupWare fudforum application | |
243 | Group: Applications/WWW | |
244 | Requires: %{name}-core = %{version}-%{release} | |
245 | ||
246 | %description fudforum | |
247 | This is the fudforum app for eGroupWare. | |
248 | ||
249 | %package headlines | |
250 | Summary: The eGroupWare headlines application | |
251 | Group: Applications/WWW | |
252 | Requires: %{name}-core = %{version}-%{release} | |
253 | ||
254 | %description headlines | |
255 | This is the headlines app for eGroupWare. | |
256 | ||
257 | %package icalsrv | |
258 | Summary: The eGroupWare icalsrv application | |
259 | Group: Applications/WWW | |
260 | Requires: %{name}-core = %{version}-%{release} | |
261 | ||
262 | %description icalsrv | |
263 | This is the icalsrv app for eGroupWare. | |
264 | ||
265 | %package infolog | |
266 | Summary: The eGroupWare infolog application | |
267 | Group: Applications/WWW | |
268 | Requires: %{name}-core = %{version}-%{release} | |
269 | Requires: %{name}-etemplate = %{version}-%{release} | |
270 | ||
271 | %description infolog | |
272 | This is the infolog app for eGroupWare (Notes, ToDo, Phonelogs, CRM). | |
273 | ||
274 | %package jinn | |
275 | Summary: The eGroupWare jinn application | |
276 | Group: Applications/WWW | |
277 | Requires: %{name}-core = %{version}-%{release} | |
278 | ||
279 | %description jinn | |
280 | The jinn app is a multi-site, multi-database, multi-user/-group, | |
281 | database driven Content Management System written in and for the | |
282 | eGroupWare Framework. | |
283 | ||
284 | %package manual | |
285 | Summary: The eGroupWare manual application | |
286 | Group: Applications/WWW | |
287 | Requires: %{name}-core = %{version}-%{release} | |
288 | ||
289 | %description manual | |
290 | This is the manual app for eGroupWare: online help system. | |
291 | ||
292 | %package messenger | |
293 | Summary: The eGroupWare messenger application | |
294 | Group: Applications/WWW | |
295 | Requires: %{name}-core = %{version}-%{release} | |
296 | ||
297 | %description messenger | |
298 | This is the messenger app for eGroupWare. | |
299 | ||
300 | %package mydms | |
301 | Summary: The eGroupWare mydms application | |
302 | Group: Applications/WWW | |
303 | Requires: %{name}-core = %{version}-%{release} | |
304 | ||
305 | %description mydms | |
306 | This is a mydms port to eGroupWare. | |
307 | ||
308 | %package news_admin | |
309 | Summary: The eGroupWare news_admin application | |
310 | Group: Applications/WWW | |
311 | Requires: %{name}-core = %{version}-%{release} | |
312 | ||
313 | %description news_admin | |
314 | This is the news_admin app for eGroupWare. | |
315 | ||
316 | %package phpbrain | |
317 | Summary: The eGroupWare phpbrain application | |
318 | Group: Applications/WWW | |
319 | Requires: %{name}-addressbook = %{version}-%{release} | |
320 | Requires: %{name}-core = %{version}-%{release} | |
321 | ||
322 | %description phpbrain | |
323 | This is the phpbrain app for eGroupWare. | |
324 | ||
325 | %package phpldapadmin | |
326 | Summary: The eGroupWare phpldapadmin application | |
327 | Group: Applications/WWW | |
328 | Requires: %{name}-core = %{version}-%{release} | |
329 | ||
330 | %description phpldapadmin | |
331 | This is the cire phpldapadmin of eGroupWare. | |
332 | ||
333 | %package phpsysinfo | |
334 | Summary: The eGroupWare phpsysinfo application | |
335 | Group: Applications/WWW | |
336 | Requires: %{name}-core = %{version}-%{release} | |
337 | ||
338 | %description phpsysinfo | |
339 | This is the phpsysinfo app for eGroupWare. | |
340 | ||
341 | %package polls | |
342 | Summary: The eGroupWare polls application | |
343 | Group: Applications/WWW | |
344 | Requires: %{name}-core = %{version}-%{release} | |
345 | ||
346 | %description polls | |
347 | This is the polls app for eGroupWare. | |
348 | ||
349 | %package projectmanager | |
350 | Summary: The eGroupWare projectmanager application | |
351 | Group: Applications/WWW | |
352 | Requires: %{name}-core = %{version}-%{release} | |
e83c2179 | 353 | Requires: %{name}-etemplate = %{version}-%{release} |
42f47170 ER |
354 | |
355 | %description projectmanager | |
356 | The projectmanager is eGroupWare's new project management application. | |
357 | It's fully integrated into eGroupWare and use the data of InfoLog and | |
358 | Calendar. Plugable datasources allow to support and manage further | |
359 | applications. | |
360 | ||
361 | %package projects | |
362 | Summary: The eGroupWare projects application | |
363 | Group: Applications/WWW | |
364 | Requires: %{name}-core = %{version}-%{release} | |
4f28acaf | 365 | Requires: %{name}-infolog = %{version}-%{release} |
42f47170 ER |
366 | |
367 | %description projects | |
368 | This is the projects app for eGroupWare. | |
369 | ||
370 | %package registration | |
371 | Summary: The eGroupWare registration application | |
372 | Group: Applications/WWW | |
373 | Requires: %{name}-core = %{version}-%{release} | |
374 | ||
375 | %description registration | |
376 | This is the registration app for eGroupWare. | |
377 | ||
378 | %package resources | |
379 | Summary: The eGroupWare resources application | |
380 | Group: Applications/WWW | |
381 | Requires: %{name}-core = %{version}-%{release} | |
e83c2179 | 382 | Requires: %{name}-etemplate = %{version}-%{release} |
42f47170 ER |
383 | |
384 | %description resources | |
385 | resources is a resource booking sysmtem for eGroupWare. Which | |
386 | integrates into the calendar. | |
387 | ||
388 | %package sambaadmin | |
389 | Summary: The eGroupWare sambaadmin application | |
390 | Group: Applications/WWW | |
391 | Requires: %{name}-core = %{version}-%{release} | |
392 | ||
393 | %description sambaadmin | |
394 | Manage LDAP based sambaacounts and workstations. | |
395 | ||
396 | %package sitemgr | |
397 | Summary: The eGroupWare Sitemanager CMS application | |
398 | Group: Applications/WWW | |
399 | Requires: %{name}-core = %{version}-%{release} | |
400 | ||
401 | %description sitemgr | |
402 | This is the Sitemanager CMS app for eGroupWare. | |
403 | ||
404 | %package stocks | |
405 | Summary: The eGroupWare stocks application | |
406 | Group: Applications/WWW | |
407 | Requires: %{name}-core = %{version}-%{release} | |
408 | ||
409 | %description stocks | |
410 | This is the stocks app for eGroupWare. | |
411 | ||
412 | %package timesheet | |
413 | Summary: The eGroupWare timesheet application | |
414 | Group: Applications/WWW | |
415 | Requires: %{name}-core = %{version}-%{release} | |
e83c2179 | 416 | Requires: %{name}-etemplate = %{version}-%{release} |
42f47170 ER |
417 | |
418 | %description timesheet | |
419 | Simple timesheet application, which allow to record and report the | |
420 | times and other expenses. It can be uses as well standalone as | |
421 | together with the ProjectManager application. | |
422 | ||
423 | %package tts | |
424 | Summary: The eGroupWare trouble ticket system application | |
425 | Group: Applications/WWW | |
426 | Requires: %{name}-core = %{version}-%{release} | |
427 | ||
428 | %description tts | |
429 | This is the trouble ticket system} app for eGroupWare. | |
430 | ||
431 | %package wiki | |
432 | Summary: The eGroupWare wiki application | |
433 | Group: Applications/WWW | |
434 | Requires: %{name}-core = %{version}-%{release} | |
435 | ||
436 | %description wiki | |
437 | This is the wiki app for eGroupWare. | |
438 | ||
439 | %package workflow | |
440 | Summary: The eGroupWare workflow application | |
441 | Group: Applications/WWW | |
442 | Requires: %{name}-core = %{version}-%{release} | |
443 | ||
444 | %description workflow | |
445 | This is the workflow app for eGroupWare. | |
446 | ||
9f1ba0fe ER |
447 | %package setup |
448 | Summary: eGroupware setup package | |
7477a8d4 | 449 | Summary(pl.UTF-8): Pakiet do wstępnej konfiguracji eGroupware |
9f1ba0fe | 450 | Group: Applications/WWW |
42f47170 | 451 | Requires: %{name}-core = %{version}-%{release} |
9f1ba0fe ER |
452 | |
453 | %description setup | |
454 | Install this package to configure initial eGroupware installation. You | |
455 | should uninstall this package when you're done, as it considered | |
456 | insecure to keep the setup files in place. | |
457 | ||
055977bd JR |
458 | %description setup -l pl.UTF-8 |
459 | Ten pakiet należy zainstalować w celu wstępnej konfiguracji eGroupware | |
460 | po pierwszej instalacji. Potem należy go odinstalować, jako że | |
461 | pozostawienie plików instalacyjnych mogłoby być niebezpieczne. | |
9f1ba0fe | 462 | |
ea3098b2 ER |
463 | %package db-mysql |
464 | Summary: eGroupware DB Driver for MySQL | |
7477a8d4 | 465 | Summary(pl.UTF-8): Sterownik bazy danych eGroupware dla MySQL-a |
ea3098b2 | 466 | Group: Applications/WWW |
7c3606f1 | 467 | Requires: php(mysql) |
80b99c15 | 468 | Provides: %{name}(DB_Driver) = %{version}-%{release} |
ea3098b2 ER |
469 | |
470 | %description db-mysql | |
471 | This virtual package provides MySQL database backend for eGroupware. | |
472 | ||
42f47170 ER |
473 | You will need MySQL server >= 4.0 to use this driver. |
474 | ||
055977bd | 475 | %description db-mysql -l pl.UTF-8 |
80b99c15 JB |
476 | Ten wirtualny pakiet dostarcza backend bazy danych MySQL dla |
477 | eGroupware. | |
478 | ||
ea3098b2 ER |
479 | %package db-pgsql |
480 | Summary: eGroupware DB Driver for PostgreSQL | |
7477a8d4 | 481 | Summary(pl.UTF-8): Sterownik bazy danych eGroupware dla PostgreSQL-a |
ea3098b2 | 482 | Group: Applications/WWW |
7c3606f1 | 483 | Requires: php(pgsql) |
80b99c15 | 484 | Provides: %{name}(DB_Driver) = %{version}-%{release} |
ea3098b2 ER |
485 | |
486 | %description db-pgsql | |
80b99c15 JB |
487 | This virtual package provides PostgreSQL database backend for |
488 | eGroupware. | |
489 | ||
055977bd | 490 | %description db-pgsql -l pl.UTF-8 |
80b99c15 JB |
491 | Ten wirtualny pakiet dostarcza backend bazy danych PostgreSQL dla |
492 | eGroupware. | |
ea3098b2 ER |
493 | |
494 | %package db-mssql | |
495 | Summary: eGroupware DB Driver for MS SQL | |
7477a8d4 | 496 | Summary(pl.UTF-8): Sterownik bazy danych eGroupware dla MS SQL-a |
ea3098b2 | 497 | Group: Applications/WWW |
7c3606f1 | 498 | Requires: php(mssql) |
80b99c15 | 499 | Provides: %{name}(DB_Driver) = %{version}-%{release} |
ea3098b2 ER |
500 | |
501 | %description db-mssql | |
502 | This virtual package provides MS SQL database backend for eGroupware. | |
503 | ||
055977bd | 504 | %description db-mssql -l pl.UTF-8 |
80b99c15 JB |
505 | Ten wirtualny pakiet dostarcza backend bazy danych MS SQL dla |
506 | eGroupware. | |
507 | ||
2082bc87 ER |
508 | %package -n openldap-schema-egroupware |
509 | Summary: eGroupWare LDAP schemas | |
510 | Group: Networking/Daemons | |
511 | Requires(post,postun): sed >= 4.0 | |
512 | Requires: openldap-servers | |
513 | Requires: sed >= 4.0 | |
514 | ||
515 | %description -n openldap-schema-egroupware | |
7c3606f1 ER |
516 | This package contains phpgwaccount.schema and phpgwcontact.schema for |
517 | openldap. | |
2082bc87 | 518 | |
a8c23ce1 | 519 | %prep |
42f47170 ER |
520 | %setup -q -n %{name} -a1 |
521 | mv %{name}/* . | |
a8c23ce1 | 522 | |
9cc70dc3 ER |
523 | # remove as did upstream |
524 | rm -rf rpc.php | |
525 | rm -rf xmlrpc | |
526 | rm -rf switchuser | |
527 | rm -rf skel | |
528 | rm -rf soap | |
529 | ||
a8c23ce1 | 530 | # remove CVS control files |
5fb592b1 | 531 | find -name .svn -print0 | xargs -0 rm -rf |
e41524ae | 532 | # undos the sources |
55419343 | 533 | find -regex '.*\.\(php\|inc\|html\|txt\|js\)$' -print0 | xargs -0 sed -i -e 's,\r$,,' |
e41524ae | 534 | |
7b375510 ER |
535 | %patch0 -p1 |
536 | %patch1 -p1 | |
a8c23ce1 ER |
537 | |
538 | # GPL | |
55419343 | 539 | rm doc/LICENSE |
a8c23ce1 ER |
540 | |
541 | # no need. | |
55419343 | 542 | rm -r doc/rpm-build |
a8c23ce1 | 543 | |
e41524ae | 544 | # using PLD package |
7b375510 | 545 | rm -r projectmanager/inc/ttf-bitstream-vera-1.10 |
e41524ae | 546 | |
2082bc87 ER |
547 | # support just OpenLDAP |
548 | mv phpgwapi/doc/ldap/phpgw{account,contact}.schema . | |
549 | mv phpgwapi/doc/ldap/README README.ldap | |
550 | rm -rf phpgwapi/doc/ldap | |
551 | ||
a8c23ce1 ER |
552 | %install |
553 | rm -rf $RPM_BUILD_ROOT | |
42f47170 | 554 | install -d $RPM_BUILD_ROOT{%{_appdir},%{_sysconfdir},/var/{lib/%{name}/default/{files,backup},run/%{name}}} |
a8c23ce1 ER |
555 | |
556 | cp -a *.php $RPM_BUILD_ROOT%{_appdir} | |
55419343 | 557 | cp -a */ $RPM_BUILD_ROOT%{_appdir} |
a8c23ce1 | 558 | |
9f1ba0fe ER |
559 | > $RPM_BUILD_ROOT%{_sysconfdir}/header.php |
560 | ln -s %{_sysconfdir}/header.php $RPM_BUILD_ROOT%{_appdir}/header.inc.php | |
b1c3bcfd | 561 | |
42f47170 ER |
562 | install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf |
563 | install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf | |
564 | install -D %{SOURCE3} $RPM_BUILD_ROOT/etc/cron.d/%{name} | |
7d7e2600 | 565 | |
9f1ba0fe ER |
566 | # needed by setup script |
567 | install header.inc.php.template $RPM_BUILD_ROOT%{_appdir} | |
568 | ||
2082bc87 ER |
569 | # LDAP Schemas |
570 | install -d $RPM_BUILD_ROOT%{schemadir} | |
571 | cp -a *.schema $RPM_BUILD_ROOT%{schemadir} | |
572 | ||
62231483 ER |
573 | rm -rf $RPM_BUILD_ROOT%{_appdir}/doc |
574 | ||
a8c23ce1 ER |
575 | %clean |
576 | rm -rf $RPM_BUILD_ROOT | |
577 | ||
87144c1f | 578 | %triggerin core -- apache1 < 1.3.37-3, apache1-base |
62231483 ER |
579 | %webapp_register apache %{_webapp} |
580 | ||
87144c1f | 581 | %triggerun core -- apache1 < 1.3.37-3, apache1-base |
62231483 ER |
582 | %webapp_unregister apache %{_webapp} |
583 | ||
42f47170 | 584 | %triggerin core -- apache < 2.2.0, apache-base |
62231483 ER |
585 | %webapp_register httpd %{_webapp} |
586 | ||
42f47170 | 587 | %triggerun core -- apache < 2.2.0, apache-base |
62231483 ER |
588 | %webapp_unregister httpd %{_webapp} |
589 | ||
2082bc87 ER |
590 | %post -n openldap-schema-egroupware |
591 | %openldap_schema_register %{schemadir}/phpgw{account,contact}.schema | |
592 | %service -q ldap restart | |
593 | ||
594 | %postun -n openldap-schema-egroupware | |
595 | if [ "$1" = "0" ]; then | |
596 | %openldap_schema_unregister %{schemadir}/phpgw{account,contact}.schema | |
597 | %service -q ldap restart | |
598 | fi | |
599 | ||
a8c23ce1 ER |
600 | %files |
601 | %defattr(644,root,root,755) | |
2082bc87 | 602 | %doc doc/* README.ldap |
42f47170 ER |
603 | |
604 | %files core | |
605 | %defattr(644,root,root,755) | |
62231483 | 606 | %dir %attr(750,root,http) %{_sysconfdir} |
7d7e2600 | 607 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf |
62231483 | 608 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf |
9f1ba0fe | 609 | %attr(660,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/header.php |
261d6c67 | 610 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/%{name} |
c18065b5 ER |
611 | %dir %{_appdir} |
612 | %{_appdir}/*.php | |
ebe96eab ER |
613 | |
614 | %dir %{_appdir}/phpgwapi | |
615 | %{_appdir}/phpgwapi/*.php | |
616 | %{_appdir}/phpgwapi/cron | |
617 | %{_appdir}/phpgwapi/doc | |
618 | %{_appdir}/phpgwapi/inc | |
619 | %{_appdir}/phpgwapi/js | |
620 | %{_appdir}/phpgwapi/setup | |
621 | %{_appdir}/phpgwapi/templates | |
622 | %{_appdir}/phpgwapi/themes | |
55419343 | 623 | %{_appdir}/phpgwapi/tests |
ebe96eab ER |
624 | %dir %attr(775,root,http) %{_appdir}/phpgwapi/images |
625 | %{_appdir}/phpgwapi/images/* | |
626 | ||
9cc70dc3 ER |
627 | # maybe separate these apps? |
628 | %{_appdir}/syncml | |
629 | %{_appdir}/admin | |
630 | %{_appdir}/etemplate | |
631 | %{_appdir}/preferences | |
632 | %{_appdir}/home | |
633 | ||
261d6c67 ER |
634 | %dir /var/lib/%{name}/default |
635 | %dir %attr(775,root,http) /var/lib/%{name}/default/backup | |
636 | %dir %attr(775,root,http) /var/lib/%{name}/default/files | |
42f47170 ER |
637 | %dir %attr(775,root,http) /var/run/%{name} |
638 | ||
639 | %files addressbook | |
640 | %defattr(644,root,root,755) | |
641 | %{_appdir}/addressbook | |
642 | ||
643 | %files backup | |
644 | %defattr(644,root,root,755) | |
645 | %{_appdir}/backup | |
646 | ||
647 | %files bookmarks | |
648 | %defattr(644,root,root,755) | |
649 | %{_appdir}/bookmarks | |
650 | ||
651 | %files browser | |
652 | %defattr(644,root,root,755) | |
653 | %{_appdir}/browser | |
654 | ||
655 | %files calendar | |
656 | %defattr(644,root,root,755) | |
657 | %{_appdir}/calendar | |
658 | ||
659 | %files chatty | |
660 | %defattr(644,root,root,755) | |
661 | %{_appdir}/chatty | |
662 | ||
663 | %files comic | |
664 | %defattr(644,root,root,755) | |
665 | %{_appdir}/comic | |
666 | ||
667 | %files developer_tools | |
668 | %defattr(644,root,root,755) | |
669 | %{_appdir}/developer_tools | |
670 | ||
671 | %files email | |
672 | %defattr(644,root,root,755) | |
673 | %{_appdir}/email | |
674 | ||
675 | %files emailadmin | |
676 | %defattr(644,root,root,755) | |
677 | %{_appdir}/emailadmin | |
678 | ||
679 | %files egwical | |
680 | %defattr(644,root,root,755) | |
681 | %{_appdir}/egwical | |
682 | ||
683 | %files felamimail | |
684 | %defattr(644,root,root,755) | |
685 | %{_appdir}/felamimail | |
686 | ||
687 | %files filemanager | |
688 | %defattr(644,root,root,755) | |
689 | %{_appdir}/filemanager | |
690 | ||
691 | %files filescenter | |
692 | %defattr(644,root,root,755) | |
693 | %{_appdir}/filescenter | |
694 | ||
695 | %files forum | |
696 | %defattr(644,root,root,755) | |
697 | %{_appdir}/forum | |
698 | ||
699 | %files ftp | |
700 | %defattr(644,root,root,755) | |
701 | %{_appdir}/ftp | |
702 | ||
703 | %files fudforum | |
704 | %defattr(644,root,root,755) | |
705 | %{_appdir}/fudforum | |
706 | ||
707 | %files headlines | |
708 | %defattr(644,root,root,755) | |
709 | %{_appdir}/headlines | |
710 | ||
711 | %files icalsrv | |
712 | %defattr(644,root,root,755) | |
713 | %{_appdir}/icalsrv | |
714 | ||
715 | %files infolog | |
716 | %defattr(644,root,root,755) | |
717 | %{_appdir}/infolog | |
718 | ||
719 | %files jinn | |
720 | %defattr(644,root,root,755) | |
721 | %{_appdir}/jinn | |
722 | ||
723 | %files manual | |
724 | %defattr(644,root,root,755) | |
725 | %{_appdir}/manual | |
726 | ||
727 | %files messenger | |
728 | %defattr(644,root,root,755) | |
729 | %{_appdir}/messenger | |
730 | ||
731 | %files mydms | |
732 | %defattr(644,root,root,755) | |
733 | %{_appdir}/mydms | |
734 | ||
735 | %files news_admin | |
736 | %defattr(644,root,root,755) | |
737 | %{_appdir}/news_admin | |
738 | ||
739 | %files phpbrain | |
740 | %defattr(644,root,root,755) | |
741 | %{_appdir}/phpbrain | |
742 | ||
743 | %files phpldapadmin | |
744 | %defattr(644,root,root,755) | |
745 | %{_appdir}/phpldapadmin | |
746 | ||
747 | %files phpsysinfo | |
748 | %defattr(644,root,root,755) | |
749 | %{_appdir}/phpsysinfo | |
750 | ||
751 | %files polls | |
752 | %defattr(644,root,root,755) | |
753 | %{_appdir}/polls | |
754 | ||
755 | %files projectmanager | |
756 | %defattr(644,root,root,755) | |
757 | %{_appdir}/projectmanager | |
758 | ||
759 | %files projects | |
760 | %defattr(644,root,root,755) | |
761 | %{_appdir}/projects | |
762 | ||
763 | %files registration | |
764 | %defattr(644,root,root,755) | |
765 | %{_appdir}/registration | |
766 | ||
767 | %files resources | |
768 | %defattr(644,root,root,755) | |
769 | %{_appdir}/resources | |
770 | ||
771 | %files sambaadmin | |
772 | %defattr(644,root,root,755) | |
773 | %{_appdir}/sambaadmin | |
774 | ||
775 | %files sitemgr | |
776 | %defattr(644,root,root,755) | |
777 | %{_appdir}/sitemgr | |
778 | ||
779 | %files stocks | |
780 | %defattr(644,root,root,755) | |
781 | %{_appdir}/stocks | |
782 | ||
783 | %files timesheet | |
784 | %defattr(644,root,root,755) | |
785 | %{_appdir}/timesheet | |
786 | ||
787 | %files tts | |
788 | %defattr(644,root,root,755) | |
789 | %{_appdir}/tts | |
790 | ||
791 | %files wiki | |
792 | %defattr(644,root,root,755) | |
793 | %{_appdir}/wiki | |
794 | ||
795 | %files workflow | |
796 | %defattr(644,root,root,755) | |
797 | %{_appdir}/workflow | |
261d6c67 | 798 | |
9f1ba0fe ER |
799 | %files setup |
800 | %defattr(644,root,root,755) | |
801 | %{_appdir}/header.inc.php.template | |
802 | %{_appdir}/setup | |
803 | ||
ea3098b2 ER |
804 | %files db-mysql |
805 | %defattr(644,root,root,755) | |
806 | ||
807 | %files db-pgsql | |
808 | %defattr(644,root,root,755) | |
809 | ||
810 | %files db-mssql | |
811 | %defattr(644,root,root,755) | |
2082bc87 ER |
812 | |
813 | %files -n openldap-schema-egroupware | |
814 | %defattr(644,root,root,755) | |
815 | %{schemadir}/phpgwaccount.schema | |
816 | %{schemadir}/phpgwcontact.schema |