Projects
Kolab:3.4:Updates
kolab-syncroton
kolab-syncroton.spec
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File kolab-syncroton.spec of Package kolab-syncroton (Revision 45)
Currently displaying revision
45
,
Show latest
# Needed for opensuse build system %if 0%{?opensuse_bs} #!BuildIgnore: boa #!BuildIgnore: cherokee #!BuildIgnore: nginx #!BuildIgnore: httpd-itk #!BuildIgnore: lighttpd #!BuildIgnore: thttpd #!BuildIgnore: php-mysqlnd %endif %{!?php_inidir: %global php_inidir %{_sysconfdir}/php.d} %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 _ap_sysconfdir %{_sysconfdir}/%{httpd_name} Name: kolab-syncroton Version: 2.2.4 Release: 3%{?dist} Summary: ActiveSync for Kolab Groupware Group: Applications/Internet License: LGPLv2 URL: http://www.syncroton.org Source0: http://mirror.kolabsys.com/pub/releases/%{name}-%{version}.tar.gz Source1: kolab-syncroton.logrotate Patch1: kolab-syncroton-2.2.4-fix-from-header-displayname.patch Patch2: kolab-syncroton-2.2.4-dont-omit-junk-folder.patch BuildArch: noarch # Use this build requirement to make sure we are using # up to date vendorized copies of the plugins. BuildRequires: roundcubemail-plugins-kolab %if 0%{?suse_version} BuildRequires: roundcubemail Requires: php %else Requires: php-common >= 5.3 %endif Requires: logrotate Requires: roundcubemail Requires: roundcubemail-plugins-kolab Requires: php-kolabformat Requires: php-pear-Auth-SASL Requires: php-pear-MDB2 Requires: php-pear-MDB2-Driver-mysqli Requires: php-pear-Net-IDNA2 Requires: php-pear-Net-SMTP Requires: php-pear-Net-Socket Requires: php-ZendFramework %description Kolab Groupware provides ActiveSync for Calendars, Address Books and Tasks though this package - based on Syncroton technology. %prep %setup -q -n %{name}-%{version} %patch1 -p1 %patch2 -p1 rm -rf \ lib/ext/Auth/ \ lib/ext/MDB2/ \ lib/ext/MDB2.php \ lib/ext/Net/IDNA2/ \ lib/ext/Net/IDNA2.php \ lib/ext/Net/SMTP.php \ lib/ext/Net/Socket.php \ lib/ext/Roundcube/ \ lib/ext/Zend/ \ lib/plugins/ %build %install mkdir -p \ %{buildroot}/%{_datadir}/%{name} \ %{buildroot}/%{_ap_sysconfdir}/conf.d/ \ %{buildroot}/%{_sysconfdir}/%{name} \ %{buildroot}/%{_var}/log/%{name} mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d cp -pr %SOURCE1 %{buildroot}%{_sysconfdir}/logrotate.d/kolab-syncroton cp -a lib %{buildroot}/%{_datadir}/%{name}/. cp -a index.php %{buildroot}/%{_datadir}/%{name}/. pushd %{buildroot}/%{_datadir}/%{name} ln -s ../../..%{_sysconfdir}/roundcubemail config ln -s ../../..%{_var}/log/%{name} logs pushd lib/ext ln -s ../../../roundcubemail/program/lib/Roundcube popd for plugin in kolab_auth kolab_folders libkolab; do mkdir -p lib/plugins/$plugin pushd lib/plugins/$plugin if [ -d "/usr/share/roundcubemail/plugins/" ]; then find /usr/share/roundcubemail/plugins/$plugin/ -mindepth 1 -maxdepth 1 ! -name "config.inc.php" | while read link_target; do ln -sv "$(echo ${link_target} | sed -e 's|/usr/share/roundcubemail/|../../../../roundcubemail/|g')" done else find ../../../../roundcubemail/plugins/$plugin/ -mindepth 1 -maxdepth 1 ! -name "config.inc.php" -exec ln -sv {} \; fi popd done popd # Kolab Authentication plugin pushd %{buildroot}/%{_datadir}/%{name}/lib/plugins/kolab_auth rm -rf config.inc.php.dist ln -s ../../../../../..%{_sysconfdir}/roundcubemail/kolab_auth.inc.php config.inc.php popd # Kolab Folders plugin pushd %{buildroot}/%{_datadir}/%{name}/lib/plugins/kolab_folders rm -rf config.inc.php.dist ln -s ../../../../../..%{_sysconfdir}/roundcubemail/kolab_folders.inc.php config.inc.php popd # Libkolab plugin pushd %{buildroot}/%{_datadir}/%{name}/lib/plugins/libkolab rm -rf config.inc.php.dist ln -s ../../../../../..%{_sysconfdir}/roundcubemail/libkolab.inc.php config.inc.php popd cp -a docs/kolab-syncroton.conf %{buildroot}/%{_ap_sysconfdir}/conf.d/ find %{buildroot}/%{_datadir}/%{name}/ -type f -name "*.orig" -delete # Fix anything executable that does not have a shebang for file in `find %{buildroot}/%{_datadir}/%{name}/ -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}/%{_datadir}/%{name}/ -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}/%{_datadir}/%{name}/ -type f -perm /g+wx -exec chmod -v g-w {} \; # Find files that are not readable find %{buildroot}/%{_datadir}/%{name}/ -type f ! -perm /go+r -exec chmod -v go+r {} \; %pre if [ -d "/usr/share/kolab-syncroton/lib/ext/Roundcube" -a ! -L "/usr/share/kolab-syncroton/lib/ext/Roundcube" ]; then rm -rf "/usr/share/kolab-syncroton/lib/ext/Roundcube" fi if [ -d "/usr/share/kolab-syncroton/lib/plugins/" ]; then find /usr/share/kolab-syncroton/lib/plugins/ -mindepth 2 -maxdepth 2 | while read file; do if [ ! -L "${file}" ]; then rm -rf "${file}" fi done fi %post if [ -f "%{php_inidir}/apc.ini" ]; then if [ ! -z "`grep ^apc.enabled=1 %{php_inidir}/apc.ini`" ]; then %if 0%{?fedora} > 15 /bin/systemctl condrestart %{httpd_name}.service %else /sbin/service %{httpd_name} condrestart %endif fi fi /usr/share/roundcubemail/bin/updatedb.sh \ --dir /usr/share/doc/kolab-syncroton-%{version}/SQL/ \ --package syncroton \ >/dev/null 2>&1 || : exit 0 %files %doc docs/* %if 0%{?suse_version} %dir %{_ap_sysconfdir}/ %dir %{_ap_sysconfdir}/conf.d/ %endif %config(noreplace) %{_ap_sysconfdir}/conf.d/kolab-syncroton.conf %config(noreplace) %{_sysconfdir}/logrotate.d/%{name} %{_datadir}/%{name} %attr(0770,%{httpd_user},%{httpd_group}) %{_var}/log/%{name} %changelog * Thu Feb 6 2014 Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> - 2.2.4-3 - Refresh Junk folder patch * Wed Jan 29 2014 Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> - 2.2.4-2 - Fix From: header on iPad/iPhone activesync clients not having a displayName. Set 'activesync_fix_from' - Fix Junk folders being omitted for synchronization * Tue Jan 28 2014 Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> - 2.2.4-1 - New upstream release * Tue Nov 12 2013 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 2.2.3-2 - Fix a trailing slash issue - New upstream release - Fixes: 2385 - Do not depend on kolab_cache behavior 2386 - Improve performance by skipping IMAP SEARCH when checking mail folder for changes ???? - Skip SELECT/DELETE ... WHERE id = NULL queries 2383 - Enable alarms synchronization by default 2431 - Fix event attendees synchronization from server to the device * Mon Nov 11 2013 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 2.2.2-3 - Make sure we use the readily available plugins and libraries * Fri Oct 18 2013 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 2.2.2-1 - New upstream version in sync with cache refactoring * Mon Oct 14 2013 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 2.2.1-1 - New upstream version 2.2.1 * Sun Sep 8 2013 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 2.2.0-1 - Release version 2.2.0 * Wed Sep 3 2013 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 2.1.0-1 - Bug fixes for #1658, and attachment sending * Tue Mar 12 2013 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 2.1-0.2.rc2 - New upstream release * Tue Feb 12 2013 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 2.1-0.1.rc1 - Check in new release 2.1-rc1 * Sun Dec 9 2012 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 2.0.0-0.2 - Pull in the required configuration * Tue Nov 27 2012 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 2.0.0-0.1 - New snapshot that fixes SMTP Auth (#1380) * Thu Sep 27 2012 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 1.0.1-2 - Apply fix for authentication failing * Fri Sep 21 2012 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 1.0.1-1 - New upstream release * Wed Sep 19 2012 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 1.0-0.1 - On the road to version 1.0, distribute a snapshot * Wed Aug 1 2012 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 0.1-0.2 - New git master snapshot * Wed Jul 25 2012 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 0.1-0.1 - This is a package, too
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
.