]> git.pld-linux.org Git - packages/egroupware.git/blob - egroupware.spec
- use system Vera fonts
[packages/egroupware.git] / egroupware.spec
1 # TODO
2 # - subpackages for applications
3 # - separate htdocs and includedirs
4 # - everything
5 Summary:        eGroupWare - a web-based groupware suite written in PHP
6 Summary(pl):    eGroupWAre - oparte na WWW oprogramowanie do pracy grupowej napisane w PHP
7 Name:           egroupware
8 Version:        1.0.0.009
9 Release:        0.17
10 Epoch:          0
11 License:        GPL
12 Group:          Applications/WWW
13 Source0:        http://dl.sourceforge.net/egroupware/eGroupWare-%{version}.tar.bz2
14 # Source0-md5:  2ed2f3041ab4ff235f56ed23dfa7274b
15 Source1:        %{name}.conf
16 Patch0:         %{name}-setup.patch
17 Patch1:         %{name}-ttfdir.patch
18 URL:            http://www.egroupware.org/
19 BuildRequires:  sed >= 4.0
20 Requires:       %{name}(DB_Driver)
21 Requires:       php >= 3:4.1.2
22 Requires:       php-gd
23 Requires:       php-mbstring
24 Requires:       php-pcre
25 Requires:       php-cli
26 Requires:       fonts-TTF-bitstream-vera
27 BuildArch:      noarch
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %define         _appdir %{_datadir}/%{name}
31 %define         _sysconfdir /etc/%{name}
32
33 %description
34 eGroupWare is a multi-user, web-based groupware suite developed on a
35 custom set of PHP-based APIs. Currently available modules include:
36 email, addressbook, calendar, infolog (notes, to-do's, phone calls),
37 content management, forum, bookmarks, wiki.
38
39 %description -l pl
40 eGroupWare to wielou¿ytkownikowe, oparte na WWW oprogramowanie do
41 pracy grupowej stworzone na w³asnym zestawie API opartych na PHP.
42 Aktualnie dostêpne modu³y obejmuj±: pocztê elektroniczn±, ksi±¿kê
43 adresow±, kalendarz, infolog (notatki, rzeczy do zrobienia, rozmowy
44 telefoniczne), zarz±dzanie tre¶ci±, forum, zak³adki, wiki.
45
46 %package setup
47 Summary:        eGroupware setup package
48 Summary(pl):    Pakiet do wstêpnej konfiguracji eGroupware
49 Group:          Applications/WWW
50 PreReq:         %{name} = %{epoch}:%{version}-%{release}
51
52 %description setup
53 Install this package to configure initial eGroupware installation. You
54 should uninstall this package when you're done, as it considered
55 insecure to keep the setup files in place.
56
57 %description setup -l pl
58 Ten pakiet nale¿y zainstalowaæ w celu wstêpnej konfiguracji eGroupware po
59 pierwszej instalacji. Potem nale¿y go odinstalowaæ, jako ¿e
60 pozostawienie plików instalacyjnych mog³oby byæ niebezpieczne.
61
62 %package db-mysql
63 Summary:        eGroupware DB Driver for MySQL
64 Summary(pl):    Sterownik bazy danych eGroupware dla MySQL-a
65 Group:          Applications/WWW
66 Requires:       php-mysql
67 Provides:       %{name}(DB_Driver) = %{version}-%{release}
68
69 %description db-mysql
70 This virtual package provides MySQL database backend for eGroupware.
71
72 %description db-mysql -l pl
73 Ten wirtualny pakiet dostarcza backend bazy danych MySQL dla
74 eGroupware.
75
76 %package db-pgsql
77 Summary:        eGroupware DB Driver for PostgreSQL
78 Summary(pl):    Sterownik bazy danych eGroupware dla PostgreSQL-a
79 Group:          Applications/WWW
80 Requires:       php-pgsql
81 Provides:       %{name}(DB_Driver) = %{version}-%{release}
82
83 %description db-pgsql
84 This virtual package provides PostgreSQL database backend for
85 eGroupware.
86
87 %description db-pgsql -l pl
88 Ten wirtualny pakiet dostarcza backend bazy danych PostgreSQL dla
89 eGroupware.
90
91 %package db-mssql
92 Summary:        eGroupware DB Driver for MS SQL
93 Summary(pl):    Sterownik bazy danych eGroupware dla MS SQL-a
94 Group:          Applications/WWW
95 Requires:       php-mssql
96 Provides:       %{name}(DB_Driver) = %{version}-%{release}
97
98 %description db-mssql
99 This virtual package provides MS SQL database backend for eGroupware.
100
101 %description db-mssql -l pl
102 Ten wirtualny pakiet dostarcza backend bazy danych MS SQL dla
103 eGroupware.
104
105 %prep
106 %setup -q -n %{name}
107
108 # remove CVS control files
109 find -name CVS -print0 | xargs -0 rm -rf
110 # undos the sources
111 find -regex '.*\.\(php\|inc\|html\|txt\|js\)$' -print0 | xargs -0 sed -i -e 's,
112 $,,'
113
114 %patch0 -p1
115 %patch1 -p1
116
117 # GPL
118 rm -f doc/LICENSE
119
120 # no need.
121 rm -rf doc/rpm-build
122
123 # using PLD package
124 rm -rf projects/ttf-bitstream-vera-1.10
125
126 %install
127 rm -rf $RPM_BUILD_ROOT
128 install -d $RPM_BUILD_ROOT{%{_appdir},%{_sysconfdir}}
129
130 cp -a *.php $RPM_BUILD_ROOT%{_appdir}
131 cp -a addressbook admin backup bookmarks calendar comic developer_tools \
132 email emailadmin etemplate felamimail filemanager forum ftp fudforum headlines \
133 infolog jinn manual messenger news_admin phpbrain phpgwapi phpldapadmin \
134 phpsysinfo polls preferences projects registration setup sitemgr stocks tts \
135 wiki $RPM_BUILD_ROOT%{_appdir}
136
137 > $RPM_BUILD_ROOT%{_sysconfdir}/header.php
138 ln -s %{_sysconfdir}/header.php $RPM_BUILD_ROOT%{_appdir}/header.inc.php
139
140 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
141
142 # needed by setup script
143 install header.inc.php.template $RPM_BUILD_ROOT%{_appdir}
144
145 %clean
146 rm -rf $RPM_BUILD_ROOT
147
148 %triggerin -- apache1 >= 1.3.33-2
149 %apache_config_install -v 1 -c %{_sysconfdir}/apache.conf
150
151 %triggerun -- apache1 >= 1.3.33-2
152 %apache_config_uninstall -v 1
153
154 %triggerin -- apache >= 2.0.0
155 %apache_config_install -v 2 -c %{_sysconfdir}/apache.conf
156
157 %triggerun -- apache >= 2.0.0
158 %apache_config_uninstall -v 2
159
160 %files
161 %defattr(644,root,root,755)
162 %attr(710,root,http) %dir %{_sysconfdir}
163 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
164 %attr(660,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/header.php
165 %doc doc/*
166 %dir %{_appdir}
167 %{_appdir}/*.php
168 %{_appdir}/addressbook
169 %{_appdir}/admin
170 %{_appdir}/backup
171 %{_appdir}/bookmarks
172 %{_appdir}/calendar
173 %{_appdir}/comic
174 %{_appdir}/developer_tools
175 %{_appdir}/email
176 %{_appdir}/emailadmin
177 %{_appdir}/etemplate
178 %{_appdir}/felamimail
179 %{_appdir}/filemanager
180 %{_appdir}/forum
181 %{_appdir}/ftp
182 %{_appdir}/headlines
183 %{_appdir}/infolog
184 %{_appdir}/jinn
185 %{_appdir}/manual
186 %{_appdir}/messenger
187 %{_appdir}/news_admin
188 %{_appdir}/phpbrain
189 %{_appdir}/phpldapadmin
190 %{_appdir}/phpsysinfo
191 %{_appdir}/polls
192 %{_appdir}/preferences
193 %{_appdir}/projects
194 %{_appdir}/registration
195 %{_appdir}/sitemgr
196 %{_appdir}/stocks
197 %{_appdir}/tts
198 %{_appdir}/wiki
199
200 %dir %{_appdir}/phpgwapi
201 %{_appdir}/phpgwapi/*.php
202 %{_appdir}/phpgwapi/cron
203 %{_appdir}/phpgwapi/doc
204 %{_appdir}/phpgwapi/inc
205 %{_appdir}/phpgwapi/js
206 %{_appdir}/phpgwapi/setup
207 %{_appdir}/phpgwapi/templates
208 %{_appdir}/phpgwapi/themes
209 %dir %attr(775,root,http) %{_appdir}/phpgwapi/images
210 %{_appdir}/phpgwapi/images/*
211
212 %dir %attr(775,root,http) %{_appdir}/fudforum
213 %{_appdir}/fudforum/*.php
214 %{_appdir}/fudforum/inc
215 %{_appdir}/fudforum/setup
216 %{_appdir}/fudforum/templates
217
218 %files setup
219 %defattr(644,root,root,755)
220 %{_appdir}/header.inc.php.template
221 %{_appdir}/setup
222
223 %files db-mysql
224 %defattr(644,root,root,755)
225
226 %files db-pgsql
227 %defattr(644,root,root,755)
228
229 %files db-mssql
230 %defattr(644,root,root,755)
This page took 0.136065 seconds and 3 git commands to generate.