Projects
Kolab:3.4
kolab-webadmin
kolab-webadmin.spec
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File kolab-webadmin.spec of Package kolab-webadmin (Revision 21)
Currently displaying revision
21
,
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 _ap_sysconfdir %{_sysconfdir}/%{httpd_name} %global kolab_user kolab %global kolab_user_id 412 %global kolab_group kolab %global kolab_group_id 412 %global kolabn_user kolab-n %global kolabn_user_id 413 %global kolabn_group kolab-n %global kolabn_group_id 413 %global kolabr_user kolab-r %global kolabr_user_id 414 %global kolabr_group kolab-r %global kolabr_group_id 414 Name: kolab-webadmin Version: 3.1.2 Release: 1%{?dist} Summary: Kolab Groupware Server Web Administration Interface License: AGPLv3+ Group: Productivity/Office/Organizers Url: http://www.kolab.org Source0: http://mirror.kolabsys.com/pub/releases/kolab-webadmin-%{version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} Requires: http_daemon Requires: php >= 5.3 %else Requires: webserver Requires: php-common >= 5.3 %endif Requires: mozldap-tools Requires: php-Smarty >= 3.1.7 Requires: php-pear(Net_Socket) Requires: php-pear(Net_LDAP2) Requires: php-gettext Requires: php-ldap Requires: php-mysql %description Web based admin - and user interface for the Kolab Groupware Server %prep %setup -q for file in `find . -type f -name "*.enterprise"`; do if [ 0%{?kolab_enterprise} -gt 0 ]; then mv -v $file $(echo $file | sed -e 's/.enterprise$//g') else rm -rvf $file fi done %build %install mkdir -p \ %{buildroot}/%{_datadir}/%{name}/ \ %{buildroot}/%{_ap_sysconfdir}/conf.d/ \ %{buildroot}/%{_var}/log/%{name} \ %{buildroot}/%{_var}/cache/%{name} cp -a lib/ public_html/ hosted/ %{buildroot}/%{_datadir}/%{name}/. cp -a doc/kolab-webadmin.conf %{buildroot}/%{_ap_sysconfdir}/conf.d/ cp -a doc/hosted-kolab.conf %{buildroot}/%{_ap_sysconfdir}/conf.d/ pushd %{buildroot}/%{_datadir}/%{name}/ ln -s ../../..%{_var}/cache/%{name} cache ln -s ../../..%{_var}/log/%{name} logs pushd hosted/skins/kolabsys ln -sf ../../../public_html/skins/default/style.css style.css ln -sf ../../../public_html/skins/default/ui.js ui.js rm -rf images ln -sf ../../../public_html/skins/default/images images popd popd %clean %__rm -rf %{buildroot} %pre # Add the kolab user and group accounts getent group %{kolab_group} >/dev/null 2>&1 || groupadd -r %{kolab_group} -g %{kolab_group_id} >/dev/null 2>&1 || : getent passwd %{kolab_user} >/dev/null 2>&1 || \ useradd -r -u %{kolab_user_id} -g %{kolab_group} -d %{_localstatedir}/lib/%{kolab_user} -s /sbin/nologin \ -c "Kolab System Account" %{kolab_user} >/dev/null 2>&1 || : gpasswd -a %{httpd_user} kolab >/dev/null 2>&1 || : # Previous versions of kolab-webadmin installed separate directories for public_html/ and hosted/*, # that are now merged in to public_html/. For the sake of being able to serve up hosted/ and not # public_html/ though, these are to be / become symbolic links. if [ $1 -gt 1 ]; then if [ ! -L "/usr/share/kolab-webadmin/hosted/js" -a -d "/usr/share/kolab-webadmin/hosted/js" ]; then rm -rf /usr/share/kolab-webadmin/hosted/js >/dev/null 2>&1 || : fi if [ ! -L "/usr/share/kolab-webadmin/hosted/skins" -a -d "/usr/share/kolab-webadmin/hosted/skins" ]; then rm -rf /usr/share/kolab-webadmin/hosted/skins >/dev/null 2>&1 || : fi if [ ! -L "/usr/share/kolab-webadmin/public_html/skins/minimal/images" -a -d "/usr/share/kolab-webadmin/public_html/skins/minimal/images" ]; then rm -rf /usr/share/kolab-webadmin/public_html/skins/minimal/images >/dev/null 2>&1 || : fi fi %post if [ -f "%{php_inidir}/apc.ini" ]; then if [ ! -z "`grep ^apc.enabled=1 %{php_inidir}/apc.ini`" ]; then %if 0%{?with_systemd} /sbin/systemctl condrestart %{httpd_name}.service %else /sbin/service %{httpd_name} condrestart %endif fi fi %files %defattr(-, root, root) %doc doc/* INSTALL LICENSE %if 0%{?suse_version} %dir %{_ap_sysconfdir} %dir %{_ap_sysconfdir}/conf.d %endif %config(noreplace) %{_ap_sysconfdir}/conf.d/%{name}.conf %config(noreplace) %{_ap_sysconfdir}/conf.d/hosted-kolab.conf %{_datadir}/%{name} %attr(0770,%{httpd_user},%{httpd_group}) %{_var}/cache/%{name} %attr(0770,%{httpd_user},%{httpd_group}) %{_var}/log/%{name} %changelog * Fri Nov 15 2013 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 3.1.2-1 - New upstream release - Rebase initial sql file for object types - Include enterprise considerations (logos, templates) * Tue Oct 29 2013 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 3.1.1-2 - Do not require httpd nor php directly * Thu Oct 24 2013 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 3.1.1-1 - New upstream release * Fri Sep 13 2013 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 3.1.0-1 - New upstream release * Fri Jul 12 2013 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 3.1-0.1 - Check in today's development snapshot - Make sure replicas and replication agreements are created when adding new domains * Tue Mar 12 2013 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 3.0.4-2 - Correct packaging provided feedback in rhbz #812526 * Tue Jan 15 2013 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 3.0.4-1 - New upstream release * Thu Dec 20 2012 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 3.0.3-6 * Thu Nov 29 2012 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 3.0.3-5 - Ship fix for not being able to add a domain - Attempt to correct the removal of directories that are now symbolic links * Mon Nov 26 2012 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 3.0.3-3 - Fix replacing directory by symbolic link (Fix typo) - New upstream version * Tue Sep 18 2012 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 3.0.2-3 - Allow a setting to control whether hosted domain aliases are shown - Fix symbolic links introduced by patch - New upstream release * Tue Sep 4 2012 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 3.0.1-1 - New upstream release * Sun Aug 12 2012 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 3.0.0-1 - New upstream release * Mon Jul 30 2012 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 3.0-0.3 - Add apache user to kolab group for read permissions on configuration * Wed Jul 11 2012 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 3.0-0.2 - Development snapshot version for Kolab 3.0 * Fri May 18 2012 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 2.4.2-1 - New upstream release * Fri May 11 2012 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 2.4.1-1 - New upstream release * Tue May 8 2012 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 2.4.0-5 - Also require php-pear(Net_LDAP2) * Thu May 3 2012 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 2.4.0-4 - Ship some very nice patches * Thu Apr 12 2012 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 2.4.0-3 - Re-packaged sources - Require mozldap-tools * Thu Apr 12 2012 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 2.4.0-2 - Re-packaged sources - First release of the new Kolab Web Admin
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
.