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 62)
Currently displaying revision
62
,
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 plugindir %{roundcube}/plugins %global confdir %{_sysconfdir}/roundcubemail %global roundcube_log %{_var}/log/roundcubemail %global tmpdir %{_var}/lib/roundcubemail Name: roundcubemail-plugins-kolab Version: 3.2 Release: 0.8.dev20140821.git41929675%{?dist} Summary: Kolab Groupware plugins for Roundcube Webmail Group: Applications/Internet License: AGPLv3+ and GPLv3+ URL: http://www.kolab.org # From git 419296757aad4da3499763a775d42688c3fced70 Source0: http://git.kolab.org/%{name}/snapshot/%{name}-%{version}.tar.gz Source1: kolab_logo.png Patch1: 0001-update-translations.patch Patch2: 0002-update-locales.patch Patch3: 0003-update-locales.patch 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 %patch1 -p1 %patch2 -p1 %patch3 -p1 %build %install rm -rf %{buildroot} %{__install} -d \ %{buildroot}%{confdir} \ %{buildroot}%{plugindir} cp -a plugins/* %{buildroot}%{plugindir} rm -rf %{buildroot}%{plugindir}/kolab_zpush # Calendar mv %{buildroot}%{plugindir}/calendar/config.inc.php.dist %{buildroot}%{confdir}/calendar.inc.php rm -rf %{buildroot}%{plugindir}/calendar/config.inc.php pushd %{buildroot}%{plugindir}/calendar/ ln -s ../../../../..%{confdir}/calendar.inc.php config.inc.php popd # Kolab address book plugin mv %{buildroot}%{plugindir}/kolab_addressbook/config.inc.php.dist %{buildroot}%{confdir}/kolab_addressbook.inc.php pushd %{buildroot}%{plugindir}/kolab_addressbook/ ln -s ../../../../..%{confdir}/kolab_addressbook.inc.php config.inc.php popd # Kolab auth plugin mv %{buildroot}%{plugindir}/kolab_auth/config.inc.php.dist %{buildroot}%{confdir}/kolab_auth.inc.php pushd %{buildroot}%{plugindir}/kolab_auth/ ln -s ../../../../..%{confdir}/kolab_auth.inc.php config.inc.php popd # Kolab delegation plugin mv %{buildroot}%{plugindir}/kolab_delegation/config.inc.php.dist %{buildroot}%{confdir}/kolab_delegation.inc.php pushd %{buildroot}%{plugindir}/kolab_delegation/ ln -s ../../../../..%{confdir}/kolab_delegation.inc.php config.inc.php popd # Kolab files plugin mv %{buildroot}%{plugindir}/kolab_files/config.inc.php.dist %{buildroot}%{confdir}/kolab_files.inc.php pushd %{buildroot}%{plugindir}/kolab_files/ ln -s ../../../../..%{confdir}/kolab_files.inc.php config.inc.php popd # Kolab folders plugin mv %{buildroot}%{plugindir}/kolab_folders/config.inc.php.dist %{buildroot}%{confdir}/kolab_folders.inc.php pushd %{buildroot}%{plugindir}/kolab_folders/ ln -s ../../../../..%{confdir}/kolab_folders.inc.php config.inc.php popd # libkolab plugin mv %{buildroot}%{plugindir}/libkolab/config.inc.php.dist %{buildroot}%{confdir}/libkolab.inc.php pushd %{buildroot}%{plugindir}/libkolab/ ln -s ../../../../..%{confdir}/libkolab.inc.php config.inc.php popd # LDAP Authentication plugin mv %{buildroot}%{plugindir}/ldap_authentication/config.inc.php.dist %{buildroot}%{confdir}/ldap_authentication.inc.php pushd %{buildroot}%{plugindir}/ldap_authentication/ ln -s ../../../../..%{confdir}/ldap_authentication.inc.php config.inc.php popd # Logon page plugin mv %{buildroot}%{plugindir}/logon_page/logon_page.html %{buildroot}%{confdir}/logon_page.html pushd %{buildroot}%{plugindir}/logon_page/ ln -s ../../../../..%{confdir}/logon_page.html logon_page.html popd # odfviewer plugin mkdir -p %{buildroot}%{tmpdir}/plugins/odfviewer pushd %{buildroot}%{plugindir}/odfviewer/ rm -rf files ln -s ../../../../..%{tmpdir}/plugins/odfviewer files popd # owncloud plugin mv %{buildroot}%{plugindir}/owncloud/config.inc.php.dist %{buildroot}%{confdir}/owncloud.inc.php pushd %{buildroot}%{plugindir}/owncloud/ ln -s ../../../../..%{confdir}/owncloud.inc.php config.inc.php popd # Piwik Analytics plugin mv %{buildroot}%{plugindir}/piwik_analytics/config.inc.php.dist %{buildroot}%{confdir}/piwik_analytics.inc.php pushd %{buildroot}%{plugindir}/piwik_analytics/ ln -s ../../../../..%{confdir}/piwik_analytics.inc.php config.inc.php popd # Tasklist plugin mv %{buildroot}%{plugindir}/tasklist/config.inc.php.dist %{buildroot}%{confdir}/tasklist.inc.php pushd %{buildroot}%{plugindir}/tasklist/ ln -s ../../../../..%{confdir}/tasklist.inc.php config.inc.php popd asset_path="%{buildroot}%{roundcube}/public_html/assets" mkdir -p ${asset_path} mkdir -p $asset_path/skins/kolab/images install -pm 644 %{SOURCE1} $asset_path/skins/kolab/images/kolab_logo.png orig_dir="%{buildroot}%{roundcube}/plugins/" asset_dir="$asset_path/plugins/" # Compress the CSS for file in `find $orig_dir -type f -name "*.css"`; do asset_loc=$(dirname $(echo ${file} | %{__sed} -e "s|$orig_dir|$asset_dir|g")) %{__mkdir_p} ${asset_loc} cat ${file} | %{_bindir}/python-cssmin > ${asset_loc}/$(basename ${file}) && \ %{__rm} -rf ${file} || \ %{__mv} -v ${file} ${asset_loc}/$(basename ${file}) done # Compress the JS, but not the already minified for file in `find $orig_dir -type f -name "*.js" ! -name "*.min.js"`; do asset_loc=$(dirname $(echo ${file} | %{__sed} -e "s|$orig_dir|$asset_dir|g")) %{__mkdir_p} ${asset_loc} uglifyjs ${file} > ${asset_loc}/$(basename ${file}) && \ %{__rm} -rf ${file} || \ %{__mv} -v ${file} ${asset_loc}/$(basename ${file}) done # The already minified JS can just be copied over to the assets location for file in `find $orig_dir -type f -name "*.min.js"`; do asset_loc=$(dirname $(echo ${file} | %{__sed} -e "s|$orig_dir|$asset_dir|g")) %{__mkdir_p} ${asset_loc} %{__mv} -v ${file} ${asset_loc}/$(basename ${file}) done # Other assets for file in $(find $orig_dir -type f \ -name "*.eot" -o \ -name "*.gif" -o \ -name "*.ico" -o \ -name "*.jpg" -o \ -name "*.png" -o \ -name "*.svg" -o \ -name "*.swf" -o \ -name "*.tif" -o \ -name "*.ttf" -o \ -name "*.woff" ); do asset_loc=$(dirname $(echo ${file} | %{__sed} -e "s|$orig_dir|$asset_dir|g")) %{__mkdir_p} ${asset_loc} %{__mv} -vf ${file} ${asset_loc}/$(basename $file) done %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 %{confdir} %dir %{roundcube} %dir %{plugindir} %endif %attr(0640,root,%{httpd_group}) %config(noreplace) %{confdir}/*.php %attr(0640,root,%{httpd_group}) %config(noreplace) %{confdir}/logon_page.html %dir %{roundcube}/public_html/assets/skins/ %dir %{roundcube}/public_html/assets/skins/kolab/ %dir %{roundcube}/public_html/assets/skins/kolab/images/ %{roundcube}/public_html/assets/skins/kolab/images/kolab_logo.png %{plugindir}/calendar %{plugindir}/kolab_activesync %{plugindir}/kolab_addressbook %{plugindir}/kolab_auth %{plugindir}/kolab_config %{plugindir}/kolab_delegation %{plugindir}/kolab_files %{plugindir}/kolab_folders %{plugindir}/kolab_notes %{plugindir}/kolab_tags %{plugindir}/ldap_authentication %{plugindir}/libkolab %{plugindir}/libcalendaring %{plugindir}/logon_page %{plugindir}/odfviewer %{plugindir}/owncloud %{plugindir}/pdfviewer %{plugindir}/piwik_analytics %{plugindir}/tasklist %{plugindir}/tinymce_config %{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/ %if 0%{?suse_version} %dir %{roundcube}/public_html/ %dir %{roundcube}/public_html/assets/ %dir %{roundcube}/public_html/assets/plugins/ %attr(0770,root,%{httpd_group}) %dir /var/lib/roundcubemail %attr(0770,root,%{httpd_group}) %dir /var/lib/roundcubemail/plugins %endif %attr(0770,root,%{httpd_group}) %{tmpdir}/plugins/odfviewer %changelog * Thu Aug 29 2014 Daniel Hoffend <dh@dotlan.net> - 3.2-0.8.git - Update translations * 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
.