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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 188735 by dams, Thu Dec 29 18:08:51 2011 UTC revision 188741 by guillomovitch, Thu Dec 29 18:26:38 2011 UTC
# Line 21  License:       GPLv3 Line 21  License:       GPLv3
21  # - AdamW 2007/07  # - AdamW 2007/07
22  URL:            http://www.roundcube.net/  URL:            http://www.roundcube.net/
23  Source0:        http://downloads.sourceforge.net/roundcubemail/%{distname}  Source0:        http://downloads.sourceforge.net/roundcubemail/%{distname}
 Source1:        README.urpmi  
24  Epoch:          1  Epoch:          1
25  #BuildRequires: apache-devel pcre-devel rpm-helper  #BuildRequires: apache-devel pcre-devel rpm-helper
26  Requires:       apache-mod_php  Requires:       apache-mod_php
# Line 83  mkdir -p %{buildroot}%{_datadir}/%{name} Line 82  mkdir -p %{buildroot}%{_datadir}/%{name}
82  mkdir -p %{buildroot}%{_sysconfdir}/%{name}  mkdir -p %{buildroot}%{_sysconfdir}/%{name}
83  mkdir -p %{buildroot}%{_logdir}/%{name}  mkdir -p %{buildroot}%{_logdir}/%{name}
84  cp -a config/db.inc.php.dist %{buildroot}%{_sysconfdir}/%{name}/db.inc.php  cp -a config/db.inc.php.dist %{buildroot}%{_sysconfdir}/%{name}/db.inc.php
 cp -a config/db.inc.php.dist %{buildroot}%{_sysconfdir}/%{name}/db.inc.php.dist  
85  cp -a config/main.inc.php.dist %{buildroot}%{_sysconfdir}/%{name}/main.inc.php  cp -a config/main.inc.php.dist %{buildroot}%{_sysconfdir}/%{name}/main.inc.php
 cp -a config/main.inc.php.dist %{buildroot}%{_sysconfdir}/%{name}/main.inc.php.dist  
86  rm -rf config  rm -rf config
87  rm -rf temp  rm -rf temp
88  rm -rf logs  rm -rf logs
# Line 95  pushd %{buildroot}%{_datadir}/%{name} Line 92  pushd %{buildroot}%{_datadir}/%{name}
92  rm -f CHANGELOG INSTALL UPGRADING LICENSE README  rm -f CHANGELOG INSTALL UPGRADING LICENSE README
93  popd  popd
94    
 mkdir -p %{buildroot}%{_defaultdocdir}/%{name}  
 install -p %{SOURCE1} %{buildroot}%{_defaultdocdir}/%{name}/README.urpmi  
   
95  mkdir -p %{buildroot}%{_webappconfdir}  mkdir -p %{buildroot}%{_webappconfdir}
96  cat > %{buildroot}%{_webappconfdir}/%{name}.conf <<EOF  cat > %{buildroot}%{_webappconfdir}/%{name}.conf <<EOF
97  Alias /%{name} %{_datadir}/%{name}  Alias /%{name} %{_datadir}/%{name}
# Line 115  Alias /%{name} %{_datadir}/%{name} Line 109  Alias /%{name} %{_datadir}/%{name}
109  php_value suhosin.session.encrypt Off  php_value suhosin.session.encrypt Off
110  EOF  EOF
111    
112    cat > README.urpmi <<EOF
113    Mageia RPM specific notes
114    
115    setup
116    -----
117    The setup used here differs from a standard installation in the following
118    ways:
119    * Logs are stored to /var/log/roundcubemail
120    * Temporary files are placed in /tmp
121    * Configuration files (main.inc.php and db.inc.php) are placed in
122      %{_sysconfdir}/roundcubemail
123    
124    upgrade
125    -------
126    Use the GUI to do the configuration/upgrade:
127    RoundCube provides an installer which can help you to do all
128    the installation/upgrade. The feature is disabled by default for
129    security reasons but you can enable it in 'main.inc.php' by
130    setting the 'enable_installer' variable to 'true'.
131    Once done, browse http://server/roundcubemail/installer
132    
133    Use the CLI to do the configuration/upgrade:
134    You will need to edit %{_sysconfdir}/roundcubemail/main.inc.php and
135    %{_sysconfdir}/roundcubemail/db.inc.php appropriately for your site before you
136    can use Roundcube. You must at least configure an appropriate mail
137    server and port in main.inc.php, and change the
138    $rcmail_config['des_key'] setting. In db.inc.php you must configure
139    an appropriate database location and user; in the most simple
140    configuration, you would create a new user and database both named
141    'roundcubemail' on a MySQL server running on the same machine, give
142    the roundcubemail user full read/write access to the roundcubemail
143    database, and set db.inc.php appropriately.
144    
145    Information:
146    - you can drop all of the tables and use the '*.initial.sql' file
147    to fully recreate the database.
148    - If any database change is needed, go to %{_datadir}/roundcubemail/SQL
149    and use '*.update.sql' where '*' is your database backend type.
150    EOF
151    
152  %files  %files
153  %doc CHANGELOG README UPGRADING  %doc CHANGELOG README UPGRADING
154  %{_datadir}/%{name}  %{_datadir}/%{name}
155  %dir %{_sysconfdir}/%{name}  %dir %{_sysconfdir}/%{name}
156  %{_logdir}/%{name}  %{_logdir}/%{name}
157  # these store the default values, the installer refers to them  %attr(640,root,apache) %config(noreplace) %{_sysconfdir}/%{name}/db.inc.php
 # no need to edit them so they're not tagged config - AdamW 2011/01  
 %{_sysconfdir}/%{name}/db.inc.php.dist  
 %{_sysconfdir}/%{name}/main.inc.php.dist  
 %config(noreplace) %{_sysconfdir}/%{name}/db.inc.php  
158  %config(noreplace) %{_sysconfdir}/%{name}/main.inc.php  %config(noreplace) %{_sysconfdir}/%{name}/main.inc.php
159  %config(noreplace) %{_webappconfdir}/%{name}.conf  %config(noreplace) %{_webappconfdir}/%{name}.conf

Legend:
Removed from v.188735  
changed lines
  Added in v.188741

  ViewVC Help
Powered by ViewVC 1.1.30