/[packages]/cauldron/roundcubemail/current/SPECS/roundcubemail.spec
ViewVC logotype

Contents of /cauldron/roundcubemail/current/SPECS/roundcubemail.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 291171 - (show annotations) (download)
Sun Sep 9 15:36:12 2012 UTC (11 years, 6 months ago) by dams
File size: 4716 byte(s)
- new version 0.8.1
- add a patch from fedora to fix php settings
- clean and update specfile

1 %define oname %{name}-%{version}-dep
2
3 Name: roundcubemail
4 Version: 0.8.1
5 Release: %mkrel 1
6 Summary: A PHP-based webmail server
7 Group: System/Servers
8 License: GPLv3
9 # Use the -dep tarballs. These use system copies of the PHP stuff
10 # rather than including them, which is better for our purposes.
11 # - AdamW 2007/07
12 URL: http://www.roundcube.net/
13 Source0: http://downloads.sourceforge.net/%{name}/%{oname}.tar.gz
14 Patch0: roundcubemail-0.8.1-strict.patch
15 Epoch: 1
16 #BuildRequires: apache-devel pcre-devel rpm-helper
17 Requires: apache-mod_php
18 Requires: php-gd
19 Requires: php-gettext
20 Requires: php-iconv
21 Requires: php-mbstring
22 Requires: php-mcrypt
23 Requires: php-openssl
24 Requires: php-session
25 Requires: php-pear-Auth_SASL
26 Requires: php-pear-Mail_Mime
27 Requires: php-pear-Net_SMTP
28 Requires: php-pear-Net_LDAP2
29 Requires: php-pear-MDB2
30 Requires: php-pear-Net_IDNA2
31 # The installer suggests the use of these, but they're not
32 # required - AdamW 2011/01
33 Suggests: php-fileinfo
34 Suggests: php-intl
35 # Most people will probably use mysql, but you can use sqlite or
36 # pgsql, so not a hard require - AdamW 2008/10
37 Suggests: php-pear-MDB2_Driver_mysql
38 BuildArch: noarch
39
40 %description
41 RoundCube Webmail is a browser-based multilingual IMAP client with an
42 application-like user interface. It provides full functionality you
43 expect from an e-mail client, including MIME support, address book,
44 folder manipulation, message searching and spell checking. RoundCube
45 Webmail is written in PHP and requires a MySQL or PostgreSQL database.
46 The user interface is fully skinnable using XHTML and CSS 2.
47
48 %prep
49 %setup -q -n %{oname}
50 %apply_patches
51
52 %build
53
54 %install
55 # tell it that we're moving the configuration files
56 for i in installer/index.php program/include/iniset.php; do \
57 sed -i \
58 -e "s,INSTALL_PATH . 'config','%{_sysconfdir}/%{name}',g" \
59 $i; \
60 done
61 # use systemwide log dir and temp dir
62 sed -i \
63 -e 's,logs/,%{_logdir}/%{name}/,g' \
64 -e 's,temp/,/tmp/,g' \
65 config/main.inc.php.dist
66 mkdir -p %{buildroot}%{_datadir}/%{name}
67 mkdir -p %{buildroot}%{_sysconfdir}/%{name}
68 mkdir -p %{buildroot}%{_logdir}/%{name}
69 cp -a config/db.inc.php.dist %{buildroot}%{_sysconfdir}/%{name}/db.inc.php
70 cp -a config/main.inc.php.dist %{buildroot}%{_sysconfdir}/%{name}/main.inc.php
71 rm -rf config
72 rm -rf temp
73 rm -rf logs
74 cp -a * %{buildroot}%{_datadir}/%{name}
75
76 pushd %{buildroot}%{_datadir}/%{name}
77 rm -f CHANGELOG INSTALL UPGRADING LICENSE README
78 popd
79
80 mkdir -p %{buildroot}%{_webappconfdir}
81 cat > %{buildroot}%{_webappconfdir}/%{name}.conf <<EOF
82 Alias /%{name} %{_datadir}/%{name}
83
84 <Directory %{_datadir}/%{name}>
85 Order allow,deny
86 Allow from all
87 </Directory>
88
89 <Directory %{_datadir}/%{name}/SQL>
90 Order deny,allow
91 Deny from all
92 </Directory>
93
94 php_value suhosin.session.encrypt Off
95 EOF
96
97 cat > README.urpmi <<EOF
98 Mageia RPM specific notes
99
100 setup
101 -----
102 The setup used here differs from a standard installation in the following
103 ways:
104 * Logs are stored to /var/log/roundcubemail
105 * Temporary files are placed in /tmp
106 * Configuration files (main.inc.php and db.inc.php) are placed in
107 %{_sysconfdir}/roundcubemail
108
109 configuration/upgrade
110 -------
111 Use the GUI to do the configuration/upgrade:
112 RoundCube provides an installer which can help you to do all
113 the installation/upgrade. The feature is disabled by default for
114 security reasons but you can enable it in 'main.inc.php' by
115 setting the 'enable_installer' variable to 'true'.
116 Once done, browse http://server/roundcubemail/installer
117
118 Use the CLI to do the configuration/upgrade:
119 You will need to edit %{_sysconfdir}/roundcubemail/main.inc.php and
120 %{_sysconfdir}/roundcubemail/db.inc.php appropriately for your site before you
121 can use Roundcube. You must at least configure an appropriate mail
122 server and port in main.inc.php, and change the
123 $rcmail_config['des_key'] setting. In db.inc.php you must configure
124 an appropriate database location and user; in the most simple
125 configuration, you would create a new user and database both named
126 'roundcubemail' on a MySQL server running on the same machine, give
127 the roundcubemail user full read/write access to the roundcubemail
128 database, and set db.inc.php appropriately.
129
130 Information:
131 - you can drop all of the tables and use the '*.initial.sql' file
132 to fully recreate the database.
133 - If any database change is needed, go to %{_datadir}/roundcubemail/SQL
134 and use '*.update.sql' where '*' is your database backend type.
135 EOF
136
137 %files
138 %doc CHANGELOG LICENSE README.md SQL UPGRADING
139 %{_datadir}/%{name}
140 %dir %{_sysconfdir}/%{name}
141 %{_logdir}/%{name}
142 %attr(640,root,apache) %config(noreplace) %{_sysconfdir}/%{name}/db.inc.php
143 %config(noreplace) %{_sysconfdir}/%{name}/main.inc.php
144 %config(noreplace) %{_webappconfdir}/%{name}.conf

  ViewVC Help
Powered by ViewVC 1.1.30