]> git.pld-linux.org Git - packages/roundcubemail.git/blame - roundcubemail.spec
- C: logrotate < 3.7.4 due to archiv -> archive transition
[packages/roundcubemail.git] / roundcubemail.spec
CommitLineData
600b6f8b 1# TODO:
600b6f8b 2# - prepare config for lighttp
600b6f8b 3# - it has PEAR boundled inside - use system ones
32abe254 4# - use pear-deps system?
a87cdb0e 5# - use system js/tiny_mce
32abe254 6# - package: http://blog.ilohamail.org/ and remove boundled classess from it
600b6f8b 7#
074807fb
ER
8%define _svn 583
9#%define _snap 20070521
e0ad2b16 10%define _beta rc1
496e37a6 11%define _rel 0.5
600b6f8b 12Summary: RoundCube Webmail
07c0744d 13Summary(pl.UTF-8): RoundCube Webmail - poczta przez WWW
600b6f8b
PG
14Name: roundcubemail
15Version: 0.1
e0ad2b16
PG
16#Release: 5.%{_svn}.%{_rel}
17Release: 5.%{_beta}.%{_rel}
600b6f8b
PG
18License: GPL v2
19Group: Applications/WWW
e0ad2b16
PG
20Source0: http://dl.sourceforge.net/roundcubemail/%{name}-%{version}-%{_beta}.1.tar.gz
21# Source0-md5: bfb27b1022255306901166bdcbcb7a2c
074807fb 22#Source0: http://dl.sourceforge.net/roundcubemail/%{name}-nightly-%{_snap}.tar.gz
32abe254 23Source1: %{name}.config
e0ad2b16
PG
24Source2: http://dl.sourceforge.net/roundcubemail/roundcube_croatian-%{version}-%{_beta}.tar.gz
25# Source2-md5: d267a221bc918ca7f2fec628daf0f5b6
26Source3: http://dl.sourceforge.net/roundcubemail/roundcube_euskara-%{version}-%{_beta}.tar.gz
27# Source3-md5: 56e3bbb000ebb469239ae30310246fb9
28Source4: http://dl.sourceforge.net/roundcubemail/roundcube_finnish-%{version}-%{_beta}.tar.gz
29# Source4-md5: 22509cafb0148353aa464284be3e9e6a
30Source5: http://dl.sourceforge.net/roundcubemail/roundcube_greek-%{version}-%{_beta}.tar.gz
31# Source5-md5: 8c59c63e4384bbc4ef6fdaeb789eb24e
32Source6: http://dl.sourceforge.net/roundcubemail/roundcube_hungarian-%{version}-%{_beta}.tar.gz
33# Source6-md5: ae06a1a38663f4624e0a2465a7bbfee2
34Source7: http://dl.sourceforge.net/roundcubemail/roundcube_irish-%{version}-%{_beta}.tar.gz
35# Source7-md5: 1ecd874a9d768a044ac06ea742aa6a28
36Source8: http://dl.sourceforge.net/roundcubemail/roundcube_japanese-%{version}-%{_beta}.tar.gz
37# Source8-md5: fc4cc39d7037dc76a949936abaa33d04
38Source9: http://dl.sourceforge.net/roundcubemail/roundcube_macedonian-%{version}-%{_beta}.tar.gz
39# Source9-md5: 1de279925ad0535ed433227978922288
40Source10: http://dl.sourceforge.net/roundcubemail/roundcube_polish-%{version}-%{_beta}.tar.gz
41# Source10-md5: 7eefd644446bb187030160531a34fce4
42Source11: http://dl.sourceforge.net/roundcubemail/roundcube_turkish-%{version}-%{_beta}.tar.gz
43# Source11-md5: 99f02f05d54d8623e226772a316d0a0a
496e37a6 44Source20: %{name}.logrotate
600b6f8b 45Patch0: %{name}-config.patch
74ebebd0 46Patch1: %{name}-faq-page.patch
074807fb 47Patch2: %{name}-tz.patch
600b6f8b
PG
48URL: http://www.roundcube.net/
49BuildRequires: rpmbuild(macros) >= 1.268
a87cdb0e 50BuildRequires: sed >= 4.0
3727377d 51Requires: %{name}-skin
e06157c8 52Requires: php(pcre)
32abe254 53# Some php-database backend. Suggests?
836a6bed 54# php-sockets is required to make spellcheck working
600b6f8b 55Requires: webapps
876c70d3 56Conflicts: logrotate < 3.7.4
600b6f8b
PG
57BuildArch: noarch
58BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
59
60%define _webapps /etc/webapps
5737afb2 61%define _webapp roundcube
600b6f8b
PG
62%define _sysconfdir %{_webapps}/%{_webapp}
63%define _appdir %{_datadir}/%{_webapp}
64%define _appdatadir /var/lib/roundcube
8f3a4fab 65%define _applogdir /var/log/roundcube
e324f8fc 66%define _archivelogdir /var/log/archive/roundcube
600b6f8b
PG
67
68%description
69RoundCube Webmail is a browser-based multilingual IMAP client with an
70application-like user interface. It provides full functionality you
71expect from an e-mail client, including MIME support, address book,
72folder manipulation and message filters. RoundCube Webmail is written
73in PHP and requires the MySQL database. The user interface is fully
74skinnable using XHTML and CSS 2.
75
d9bffeff
JR
76%description -l pl.UTF-8
77RoundCube Webmail to oparty na przeglądarce wielojęzyczny klient PHP z
78interfejsem użytkownika podobnym do aplikacji. Udostępnia pełną
79funkcjonalność jakiej można oczekiwać od klienta pocztowego, w tym
80obsługę MIME, książkę adresową, operacje na folderach i filtry
81wiadomości. RoundCube Webmail jest napisany w PHP i wymaga bazy danych
82MySQL. Interfejs użytkownika można w pełni obudować skórką przy użyciu
5d23c484
JB
83XHTML-a i CSS 2.
84
3727377d
ER
85%package skin-default
86Summary: Default skin for RoundCube Webmail
205b27a0 87Summary(pl.UTF-8): Domyślna skórka dla RoundCube Webmaila
3727377d
ER
88Group: Applications/WWW
89Provides: %{name}-skin
90
91%description skin-default
92Default skin for RoundCube Webmail.
93
205b27a0
JB
94%description skin-default -l pl.UTF-8
95Domyślna skórka dla RoundCube Webmaila.
96
600b6f8b 97%prep
e0ad2b16 98%setup -q -a2 -a3 -a4 -a5 -a6 -a7 -a8 -a9 -a10 -a11 -n %{name}-%{version}-%{_beta}
600b6f8b 99%patch0 -p1
74ebebd0 100%patch1 -p1
074807fb 101%patch2 -p1
600b6f8b 102
e0ad2b16
PG
103cd program/localization/
104tar -zxvf %{SOURCE2}
105tar -zxvf %{SOURCE3}
106tar -zxvf %{SOURCE4}
107tar -zxvf %{SOURCE5}
108tar -zxvf %{SOURCE6}
109tar -zxvf %{SOURCE7}
110tar -zxvf %{SOURCE8}
111tar -zxvf %{SOURCE9}
112tar -zxvf %{SOURCE10}
113tar -zxvf %{SOURCE11}
114cd ../../
115
5737afb2
ER
116find -name .svn | xargs -r rm -rf
117
a87cdb0e 118# undos the source
74ebebd0 119find '(' -name '*.php' -o -name '*.inc' -o -name '*.js' -o -name '*.css' ')' -print0 | xargs -0 sed -i -e 's,\r$,,'
a87cdb0e 120
600b6f8b
PG
121%install
122rm -rf $RPM_BUILD_ROOT
e324f8fc 123install -d $RPM_BUILD_ROOT{%{_appdatadir},%{_applogdir},%{_archivelogdir},%{_sysconfdir}} \
496e37a6 124 $RPM_BUILD_ROOT{%{_appdir}/{bin,config,program,skins},/etc/logrotate.d}
600b6f8b
PG
125
126# Main application part:
59b0d169 127cp -a program/* $RPM_BUILD_ROOT%{_appdir}/program
6af22bc8 128cp -a bin/*.php $RPM_BUILD_ROOT%{_appdir}/bin
59b0d169 129cp -a index.php $RPM_BUILD_ROOT%{_appdir}
600b6f8b 130
3727377d 131# Skins installation
59b0d169 132cp -a skins/* $RPM_BUILD_ROOT%{_appdir}/skins
600b6f8b
PG
133
134## Configuration:
135install config/db.inc.php.dist $RPM_BUILD_ROOT%{_sysconfdir}/db.inc.php
136install config/main.inc.php.dist $RPM_BUILD_ROOT%{_sysconfdir}/main.inc.php
137ln -sf %{_sysconfdir}/db.inc.php $RPM_BUILD_ROOT%{_appdir}/config/db.inc.php
138ln -sf %{_sysconfdir}/main.inc.php $RPM_BUILD_ROOT%{_appdir}/config/main.inc.php
139
32abe254
PG
140install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
141install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
496e37a6 142install %{SOURCE20} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
32abe254 143
5d23c484
JB
144%clean
145rm -rf $RPM_BUILD_ROOT
146
a87cdb0e
ER
147%pretrans
148if [ ! -f %{_sysconfdir}/db.inc.php -o ! -f %{_sysconfdir}/main.inc.php ]; then
149 # import configs from previously manually installed site
150 d=/home/services/httpd/html/config
151 echo >&2 "Importing site configs from $d"
152 mkdir -p %{_sysconfdir}
153 if [ -f $d/db.inc.php ]; then
154 [ -f %{_sysconfdir}/db.inc.php ] && mv -f %{_sysconfdir}/db.inc.php{,.rpmorig}
59b0d169 155 cp -af $d/db.inc.php %{_sysconfdir}/db.inc.php
a87cdb0e
ER
156 fi
157 if [ -f $d/main.inc.php ]; then
158 [ -f %{_sysconfdir}/main.inc.php ] && mv -f %{_sysconfdir}/main.inc.php{,.rpmorig}
59b0d169 159 cp -af $d/main.inc.php %{_sysconfdir}/main.inc.php
a87cdb0e
ER
160 fi
161fi
162
59b0d169
ER
163%post
164if [ "$1" = 0 ]; then
165%banner -e %{name} <<'EOF'
166To customize installed languages set
167 %%_install_langs in /etc/rpm/macros
168
169EOF
170fi
171
4fddc0f8 172%triggerin -- apache1 < 1.3.37-3, apache1-base
600b6f8b
PG
173%webapp_register apache %{_webapp}
174
4fddc0f8 175%triggerun -- apache1 < 1.3.37-3, apache1-base
600b6f8b
PG
176%webapp_unregister apache %{_webapp}
177
178%triggerin -- apache < 2.2.0, apache-base
179%webapp_register httpd %{_webapp}
180
181%triggerun -- apache < 2.2.0, apache-base
182%webapp_unregister httpd %{_webapp}
183
600b6f8b
PG
184%files
185%defattr(644,root,root,755)
186%doc CHANGELOG INSTALL README UPGRADING SQL
187%dir %attr(750,root,http) %{_sysconfdir}
32abe254
PG
188%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
189%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf
600b6f8b 190%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.php
496e37a6 191%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}
600b6f8b 192%dir %{_appdir}
7e88f091 193%{_appdir}/*.php
6af22bc8
ER
194%dir %{_appdir}/bin
195%{_appdir}/bin/*.php
600b6f8b
PG
196%dir %{_appdir}/config
197%{_appdir}/config/*.php
198%dir %{_appdir}/program
59b0d169
ER
199%{_appdir}/program/*.gif
200%{_appdir}/program/include
201%{_appdir}/program/js
202%{_appdir}/program/lib
203%{_appdir}/program/steps
204%dir %{_appdir}/program/localization
205%{_appdir}/program/localization/index.inc
074807fb 206
59b0d169 207%lang(am) %{_appdir}/program/localization/am
59b0d169 208%lang(bg) %{_appdir}/program/localization/bg
59b0d169
ER
209%lang(ca) %{_appdir}/program/localization/ca
210%lang(cz) %{_appdir}/program/localization/cz
211%lang(da) %{_appdir}/program/localization/da
313f268c 212%lang(de) %{_appdir}/program/localization/de_DE
074807fb 213%lang(de_CH) %{_appdir}/program/localization/de_CH
59b0d169 214%lang(el) %{_appdir}/program/localization/el
313f268c 215%lang(en_GB) %{_appdir}/program/localization/en_GB
59b0d169
ER
216%lang(en_US) %{_appdir}/program/localization/en_US
217%lang(es) %{_appdir}/program/localization/es
218%lang(et) %{_appdir}/program/localization/et_EE
219%lang(eu) %{_appdir}/program/localization/eu
220%lang(fi) %{_appdir}/program/localization/fi
221%lang(fr) %{_appdir}/program/localization/fr
e0ad2b16 222%lang(ga) %{_appdir}/program/localization/ga
59b0d169
ER
223%lang(hr) %{_appdir}/program/localization/hr
224%lang(hu) %{_appdir}/program/localization/hu
59b0d169
ER
225%lang(it) %{_appdir}/program/localization/it
226%lang(ja) %{_appdir}/program/localization/ja
227%lang(lt) %{_appdir}/program/localization/lt
228%lang(lv) %{_appdir}/program/localization/lv
e0ad2b16 229%lang(mk) %{_appdir}/program/localization/mk
59b0d169 230%lang(nb) %{_appdir}/program/localization/nb_NO
313f268c 231%lang(nl) %{_appdir}/program/localization/nl_NL
59b0d169 232%lang(pl) %{_appdir}/program/localization/pl
313f268c 233%lang(pt) %{_appdir}/program/localization/pt_PT
074807fb 234%lang(pt_BR) %{_appdir}/program/localization/pt_BR
59b0d169
ER
235%lang(ro) %{_appdir}/program/localization/ro
236%lang(ru) %{_appdir}/program/localization/ru
237%lang(se) %{_appdir}/program/localization/se
238%lang(si) %{_appdir}/program/localization/si
239%lang(sk) %{_appdir}/program/localization/sk
074807fb 240%lang(sl) %{_appdir}/program/localization/sl
59b0d169 241%lang(tr) %{_appdir}/program/localization/tr
074807fb 242%lang(zh_TW) %{_appdir}/program/localization/zh_TW
59b0d169 243
600b6f8b 244%dir %{_appdir}/skins
8f3a4fab 245%dir %attr(770,root,http) %{_applogdir}
e324f8fc 246%dir %attr(751,root,logs) %{_archivelogdir}
600b6f8b 247%dir %attr(770,root,http) %{_appdatadir}
8f3a4fab 248# %ghost logfile
3727377d
ER
249
250%files skin-default
251%defattr(644,root,root,755)
252%{_appdir}/skins/default
This page took 0.11237 seconds and 4 git commands to generate.