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