Projects
Kolab:3.4
roundcubemail-plugins-kolab
roundcubemail-plugins-kolab.spec
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File roundcubemail-plugins-kolab.spec of Package roundcubemail-plugins-kolab (Revision 52)
Currently displaying revision
52
,
Show latest
%{!?php_inidir: %global php_inidir %{_sysconfdir}/php.d} %if 0%{?suse_version} < 1 && 0%{?fedora} < 1 && 0%{?rhel} < 7 %global with_systemd 0 %else %global with_systemd 1 %endif %if 0%{?suse_version} %global httpd_group www %global httpd_name apache2 %global httpd_user wwwrun %else %global httpd_group apache %global httpd_name httpd %global httpd_user apache %endif %global roundcube %{_datadir}/roundcubemail %global roundcube_plugins %{roundcube}/plugins %global roundcube_conf %{_sysconfdir}/roundcubemail %global roundcube_log %{_var}/log/roundcubemail %global roundcube_lib %{_var}/lib/roundcubemail Name: roundcubemail-plugins-kolab Version: 3.2 Release: 0.5.dev20140812.gitf75cc4757%{?dist} Summary: Kolab Groupware plugins for Roundcube Webmail Group: Applications/Internet License: AGPLv3+ and GPLv3+ URL: http://www.kolab.org # From git f75cc4757d3759da158cf60c32e0a9a9217592a7 Source0: http://git.kolab.org/%{name}/snapshot/%{name}-%{version}.tar.gz Source1: kolab_logo.png BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildArch: noarch %if 0%{?suse_version} < 0 BuildRequires: python-cssmin BuildRequires: uglify-js %endif Requires: php-kolabformat >= 1.0 Requires: php-kolab >= 0.5 Requires: php-pear(HTTP_Request2) Requires: php-pear(Net_LDAP3) Requires: roundcubemail >= 1.1 Obsoletes: roundcubemail-kolab < %{version}-%{release} Provides: roundcubemail-kolab = %{version}-%{release} %description A collection of Kolab Groupware plugins for Roundcube Webmail %prep %setup -q %build %install rm -rf %{buildroot} mkdir -p \ %{buildroot}%{roundcube_conf} \ %{buildroot}%{roundcube_plugins} cp -a plugins/* %{buildroot}%{roundcube_plugins} rm -rf %{buildroot}%{roundcube_plugins}/kolab_zpush rm -rf %{buildroot}%{roundcube_plugins}/kolab_zpush mkdir -p %{buildroot}%{roundcube}/skins/kolab/images install -pm 644 %{SOURCE1} %{buildroot}%{roundcube}/skins/kolab/images/kolab_logo.png # Calendar mv %{buildroot}%{roundcube_plugins}/calendar/config.inc.php.dist %{buildroot}%{roundcube_conf}/calendar.inc.php rm -rf %{buildroot}%{roundcube_plugins}/calendar/config.inc.php pushd %{buildroot}%{roundcube_plugins}/calendar/ ln -s ../../../../..%{roundcube_conf}/calendar.inc.php config.inc.php popd # Kolab address book plugin mv %{buildroot}%{roundcube_plugins}/kolab_addressbook/config.inc.php.dist %{buildroot}%{roundcube_conf}/kolab_addressbook.inc.php pushd %{buildroot}%{roundcube_plugins}/kolab_addressbook/ ln -s ../../../../..%{roundcube_conf}/kolab_addressbook.inc.php config.inc.php popd # Kolab auth plugin mv %{buildroot}%{roundcube_plugins}/kolab_auth/config.inc.php.dist %{buildroot}%{roundcube_conf}/kolab_auth.inc.php pushd %{buildroot}%{roundcube_plugins}/kolab_auth/ ln -s ../../../../..%{roundcube_conf}/kolab_auth.inc.php config.inc.php popd # Kolab delegation plugin mv %{buildroot}%{roundcube_plugins}/kolab_delegation/config.inc.php.dist %{buildroot}%{roundcube_conf}/kolab_delegation.inc.php pushd %{buildroot}%{roundcube_plugins}/kolab_delegation/ ln -s ../../../../..%{roundcube_conf}/kolab_delegation.inc.php config.inc.php popd # Kolab files plugin mv %{buildroot}%{roundcube_plugins}/kolab_files/config.inc.php.dist %{buildroot}%{roundcube_conf}/kolab_files.inc.php pushd %{buildroot}%{roundcube_plugins}/kolab_files/ ln -s ../../../../..%{roundcube_conf}/kolab_files.inc.php config.inc.php popd # Kolab folders plugin mv %{buildroot}%{roundcube_plugins}/kolab_folders/config.inc.php.dist %{buildroot}%{roundcube_conf}/kolab_folders.inc.php pushd %{buildroot}%{roundcube_plugins}/kolab_folders/ ln -s ../../../../..%{roundcube_conf}/kolab_folders.inc.php config.inc.php popd # libkolab plugin mv %{buildroot}%{roundcube_plugins}/libkolab/config.inc.php.dist %{buildroot}%{roundcube_conf}/libkolab.inc.php pushd %{buildroot}%{roundcube_plugins}/libkolab/ ln -s ../../../../..%{roundcube_conf}/libkolab.inc.php config.inc.php popd # LDAP Authentication plugin mv %{buildroot}%{roundcube_plugins}/ldap_authentication/config.inc.php.dist %{buildroot}%{roundcube_conf}/ldap_authentication.inc.php pushd %{buildroot}%{roundcube_plugins}/ldap_authentication/ ln -s ../../../../..%{roundcube_conf}/ldap_authentication.inc.php config.inc.php popd # Logon page plugin mv %{buildroot}%{roundcube_plugins}/logon_page/logon_page.html %{buildroot}%{roundcube_conf}/logon_page.html pushd %{buildroot}%{roundcube_plugins}/logon_page/ ln -s ../../../../..%{roundcube_conf}/logon_page.html logon_page.html popd # odfviewer plugin mkdir -p %{buildroot}%{roundcube_lib}/plugins/odfviewer pushd %{buildroot}%{roundcube_plugins}/odfviewer/ rm -rf files ln -s ../../../../..%{roundcube_lib}/plugins/odfviewer files popd # owncloud plugin mv %{buildroot}%{roundcube_plugins}/owncloud/config.inc.php.dist %{buildroot}%{roundcube_conf}/owncloud.inc.php pushd %{buildroot}%{roundcube_plugins}/owncloud/ ln -s ../../../../..%{roundcube_conf}/owncloud.inc.php config.inc.php popd # Piwik Analytics plugin mv %{buildroot}%{roundcube_plugins}/piwik_analytics/config.inc.php.dist %{buildroot}%{roundcube_conf}/piwik_analytics.inc.php pushd %{buildroot}%{roundcube_plugins}/piwik_analytics/ ln -s ../../../../..%{roundcube_conf}/piwik_analytics.inc.php config.inc.php popd # Tasklist plugin mv %{buildroot}%{roundcube_plugins}/tasklist/config.inc.php.dist %{buildroot}%{roundcube_conf}/tasklist.inc.php pushd %{buildroot}%{roundcube_plugins}/tasklist/ ln -s ../../../../..%{roundcube_conf}/tasklist.inc.php config.inc.php popd asset_path="%{buildroot}%{roundcube}/public_html/assets" mkdir -p ${asset_path} # Compress the CSS for file in `find %{buildroot}/%{roundcube} -type f -name "*.css"`; do asset_loc=$(dirname $(echo ${file} | sed -e "s|%{buildroot}/%{roundcube}|${asset_path}|g")) mkdir -p ${asset_loc} cat ${file} | %{_bindir}/python-cssmin > ${asset_loc}/$(basename ${file}).min && \ mv -vf ${asset_loc}/$(basename ${file}).min ${asset_loc}/$(basename ${file}) || \ cp -av ${file} ${asset_loc}/$(basename ${file}) done # Compress the JS for file in `find %{buildroot}/%{roundcube} -type f -name "*.js"`; do asset_loc=$(dirname $(echo ${file} | sed -e "s|%{buildroot}/%{roundcube}|${asset_path}|g")) mkdir -p ${asset_loc} uglifyjs ${file} > ${asset_loc}/$(basename ${file}).min && \ mv -vf ${asset_loc}/$(basename ${file}).min ${asset_loc}/$(basename ${file}) || \ cp -av ${file} ${asset_loc}/$(basename ${file}) done # Fix anything executable that does not have a shebang for file in `find %{buildroot}/%{roundcube} -type f -perm /a+x`; do [ -z "`head -n 1 $file | grep \"^#!/\"`" ] && chmod -v 644 $file done # Find files with a shebang that do not have executable permissions for file in `find %{buildroot}/%{roundcube} -type f ! -perm /a+x`; do [ ! -z "`head -n 1 $file | grep \"^#!/\"`" ] && chmod -v 755 $file done # Find files that have non-standard-executable-perm find %{buildroot}/%{roundcube} -type f -perm /g+wx -exec chmod -v g-w {} \; # Find files that are not readable find %{buildroot}/%{roundcube} -type f ! -perm /go+r -exec chmod -v go+r {} \; %post if [ -f "%{php_inidir}/apc.ini" ]; then if [ ! -z "`grep apc.enabled=1 %{php_inidir}/apc.ini`" ]; then %if 0%{?with_systemd} /bin/systemctl condrestart %{httpd_name}.service %else /sbin/service %{httpd_name} condrestart %endif fi fi for plugin in calendar kolab_activesync kolab_addressbook \ kolab_auth kolab_config kolab_delegation kolab_files \ kolab_folders kolab_notes libkolab libcalendaring odfviewer \ owncloud piwik_analytics tasklist; do for dir in `find /usr/share/roundcubemail/plugins/${plugin}/ -type d -name "SQL"`; do # Skip plugins with multiple drivers and no kolab driver if [ ! -z "$(echo $dir | grep driver)" ]; then if [ -z "$(echo $dir | grep kolab)" ]; then continue fi fi /usr/share/roundcubemail/bin/updatedb.sh \ --dir $dir \ --package ${plugin} \ >/dev/null 2>&1 || : done done exit 0 %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %if 0%{?suse_version} %dir %{roundcube_conf} %dir %{roundcube} %dir %{roundcube_plugins} %endif %attr(0640,root,%{httpd_group}) %config(noreplace) %{roundcube_conf}/*.php %attr(0640,root,%{httpd_group}) %config(noreplace) %{roundcube_conf}/logon_page.html %dir %{roundcube}/skins/ %dir %{roundcube}/skins/kolab/ %dir %{roundcube}/skins/kolab/images/ %{roundcube}/skins/kolab/images/kolab_logo.png %{roundcube_plugins}/calendar %{roundcube_plugins}/kolab_activesync %{roundcube_plugins}/kolab_addressbook %{roundcube_plugins}/kolab_auth %{roundcube_plugins}/kolab_config %{roundcube_plugins}/kolab_delegation %{roundcube_plugins}/kolab_files %{roundcube_plugins}/kolab_folders %{roundcube_plugins}/kolab_notes %{roundcube_plugins}/kolab_tags %{roundcube_plugins}/ldap_authentication %{roundcube_plugins}/libkolab %{roundcube_plugins}/libcalendaring %{roundcube_plugins}/logon_page %{roundcube_plugins}/odfviewer %{roundcube_plugins}/owncloud %{roundcube_plugins}/pdfviewer %{roundcube_plugins}/piwik_analytics %{roundcube_plugins}/tasklist %{roundcube_plugins}/tinymce_config %dir %{roundcube}/public_html/assets/ %dir %{roundcube}/public_html/assets/plugins/ %{roundcube}/public_html/assets/plugins/calendar/ %{roundcube}/public_html/assets/plugins/kolab_activesync/ %{roundcube}/public_html/assets/plugins/kolab_addressbook/ %{roundcube}/public_html/assets/plugins/kolab_delegation/ %{roundcube}/public_html/assets/plugins/kolab_files/ %{roundcube}/public_html/assets/plugins/kolab_folders/ %{roundcube}/public_html/assets/plugins/kolab_notes/ %{roundcube}/public_html/assets/plugins/kolab_tags/ %{roundcube}/public_html/assets/plugins/libcalendaring/ %{roundcube}/public_html/assets/plugins/libkolab/ %{roundcube}/public_html/assets/plugins/odfviewer/ %{roundcube}/public_html/assets/plugins/owncloud/ %{roundcube}/public_html/assets/plugins/pdfviewer/ %{roundcube}/public_html/assets/plugins/tasklist/ %attr(0770,root,%{httpd_group}) %dir /var/lib/roundcubemail %attr(0770,root,%{httpd_group}) %dir /var/lib/roundcubemail/plugins %attr(0770,root,%{httpd_group}) %{roundcube_lib}/plugins/odfviewer %changelog * Tue Aug 12 2014 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 3.2-0.5.git - New git master head snapshot * Tue Jun 24 2014 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 3.2-0.4.git - New git master head snapshot * Fri Apr 4 2014 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 3.2-0.3.git - New git master head snapshot * Tue Feb 25 2014 Daniel Hoffend <dh@dotlan.net> - 3.2-0.2.git - Apply patch for #2867 oudated mysql initial - Apply patch for #2863 kolab_storage_cache::save() * Fri Feb 14 2014 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 3.2-0.1.git - Upstream snapshot with birthday calendar for Kolab 3.2 * Tue Feb 11 2014 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 3.1.12-1 - New upstream version - Fix memory issues with very large result sets (#2828) * Tue Jan 28 2014 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 3.1.11-1 - New upstream version * Thu Jan 9 2014 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 3.1.10-1 - New upstream version * Thu Dec 26 2013 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 3.1.9-1 - New upstream version * Mon Nov 25 2013 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 3.1.8-1 - New upstream version * Mon Nov 11 2013 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 3.1.7-1 - Extend xml column for photo and crypt keys - Fix SQL syntax when purging a folder - Set _mailbox property when saving (#2474) - Fix memory leaks for recurring event (exceptions) * Fri Nov 1 2013 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 3.1.6-4 - Fix replacement of alarm values - Also apply patch for #2463 - all day events displayed on wrong date - Also apply patch for #2353 - ICS import efficiency - Also apply patch for task enhancements - New upstream version * Fri Oct 18 2013 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 3.1.5-1 - New upstream release, with major caching improvements * Thu Sep 19 2013 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 3.1.3-1 - New upstream release, resolves: 2191 Restrict email addresses for identity creation/editing to what is registered in LDAP 2197 Invitation Mail aren't send 2209 not all location is displayed 2214 PHP Fatal error in libvcalendar 2241 Remove LDAP connection in load_user_role_plugins_and_settings() for better performance * Wed Sep 11 2013 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 3.1.2-1 - Release 3.1.2 with bugfixes * Sun Aug 25 2013 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 3.1.1-1 - Release 3.1.1 with bugfixes * Thu Aug 8 2013 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 3.1.0-1 - Release 3.1.0 after initial round of bug fixing * Fri Jul 12 2013 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 3.1-0.6 - A new snapshot with enhanced domain discoery for kolab_auth * Wed May 8 2013 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 3.1-0.5 - Correct kolab_files configuration - Ship new snapshot - Fix apc.ini grep problem * Wed Oct 17 2012 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 3.0-0.24.git20121017.7a8916c2 - New snapshot (0.24) - New snapshot (0.23) - New snapshot (0.22) - Ship activesync plugin (0.19) - Require php-pear(HTTP_Request2) (0.19) - Ship Kolab logo (0.17) - Latest snapshot from git master HEAD (0.17) - Add odfviewer files/ directory (0.17) - Ship correct snapshot sources and indicate where the sources come from (0.14) - Fix some packaging issues (#835617) (0.14) - Actually require Roundcube core to be of version 0.9 or later as well (0.8) - Require php-pear(HTTP_Request) (0.8) - Another snapshot release (0.8) - Add requirement for libkolabxml and php-kolabformat (0.2) - Pre-release of Kolab 3.0 (0.1) * Thu Apr 19 2012 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 0.7.1-2 - Rebuild * Sat Apr 14 2012 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 0.7.1-1 - First package
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.