Projects
Kolab:16:Testing
guam
guam.spec
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File guam.spec of Package guam (Revision 8)
Currently displaying revision
8
,
Show latest
%if 0%{?opensuse_bs} #!BuildIgnore: ghostscript-x11 %endif %global debug_package %{nil} %global realname kolab_guam %global guam_user guam %global guam_group guam %if 0%{?suse_version} < 1 && 0%{?fedora} < 1 && 0%{?rhel} < 7 %global with_systemd 0 %else %global with_systemd 1 %endif %{!?_unitdir: %global _unitdir /usr/lib/systemd/system} Name: guam Version: 0.8 Release: 0.20160219.git%{?dist} Summary: A Smart Reverse IMAP Proxy Group: System Environment/Daemons License: GPLv3+ URL: https://kolab.org/about/guam # From 3e4a3da61124e9c79b7f7f49516e6e86aa072051 Source0: guam-0.8.tar.gz Patch9991: guam-0.8-T1312-set-HOME-environment-variable-in-sysvinit-script.patch Patch0001: 0001-introduce-net_iface-for-listeners.patch Patch0002: 0002-lets-start-keeping-a-changelog.patch Patch0003: 0003-enable-ipv6-by-default.patch Patch0004: 0004-update-this-function-for-the-data-structure-change-i.patch Patch0005: 0005-correct-version-of-eimap-though-this-is-like-to-bump.patch Patch0006: 0006-fix-typo.patch Patch0007: 0007-Correct-the-actual-version-back-to-0.8.patch Patch0008: 0008-Relax-dependency-on-lager.patch Patch0009: 0001-make-add_starttls_to_capabilities-work-also-on-the-f.patch Patch0010: 0006-correct-response-for-mplicit_tls-listeners.patch Patch0011: 0007-do-a-full-OK-CAPABILITY-banner-for-all-correct_hello.patch Patch0012: 0008-remove-AUTH-entries-put-LOGINDISABLED-if-we-put-up-a.patch Patch0013: 0011-switch-to-triggering-on-any-list-where-the-last-two-.patch BuildRequires: erlang >= 17.4 BuildRequires: erlang-asn1 BuildRequires: erlang-common_test BuildRequires: erlang-compiler BuildRequires: erlang-crypto BuildRequires: erlang-debugger BuildRequires: erlang-eimap >= 0.2.4 BuildRequires: erlang-erts BuildRequires: erlang-et BuildRequires: erlang-goldrush >= 0.1.8 BuildRequires: erlang-kernel BuildRequires: erlang-lager >= 3.1.0 BuildRequires: erlang-lager_syslog >= 2.0.3 BuildRequires: erlang-mnesia BuildRequires: erlang-observer BuildRequires: erlang-public_key BuildRequires: erlang-rebar >= 2.5.1 BuildRequires: erlang-runtime_tools BuildRequires: erlang-sasl BuildRequires: erlang-snmp BuildRequires: erlang-ssh BuildRequires: erlang-ssl BuildRequires: erlang-stdlib BuildRequires: erlang-syntax_tools BuildRequires: erlang-syslog >= 1.0.3 BuildRequires: erlang-test_server BuildRequires: erlang-tools BuildRequires: erlang-webtool BuildRequires: erlang-wx BuildRequires: erlang-xmerl Requires(pre): shadow-utils Requires(postun): shadow-utils Requires: erlang >= 17.4 Requires: erlang-eimap >= 0.1.2 Requires: erlang-goldrush Requires: erlang-lager >= 2.1.0 Requires: erlang-lager_syslog >= 1.0.3 %if 0%{?with_systemd} %if 0%{?suse_version} Requires(post): systemd Requires(postun): systemd Requires(preun): systemd %else Requires(post): systemd-units Requires(postun): systemd-units Requires(preun): coreutils Requires(preun): systemd-units %endif %else Requires(post): chkconfig Requires(post): initscripts Requires(postun): initscripts Requires(preun): chkconfig Requires(preun): initscripts %endif %description Guam is a smart, unjustly outcasted Reverse IMAP Proxy that lives at the perimeter of your IMAP environment. %prep %setup -q %patch9991 -p1 %patch0001 -p1 %patch0002 -p1 %patch0003 -p1 %patch0004 -p1 %patch0005 -p1 %patch0006 -p1 %patch0007 -p1 %patch0008 -p1 %patch0009 -p1 %patch0010 -p1 %patch0011 -p1 %patch0012 -p1 %patch0013 -p1 %build rebar compile mkdir -p deps pushd rel ENABLE_STATIC=no rebar generate popd %install mkdir -p \ %{buildroot}/opt \ %{buildroot}%{_sbindir} \ %{buildroot}%{_sysconfdir}/guam/ \ %if 0%{?with_systemd} %{buildroot}%{_unitdir}/ \ %else %{buildroot}%{_initddir}/ \ %endif %{buildroot}%{_var}/log/ %if 0%{?with_systemd} install -p -m 644 contrib/guam.service \ %{buildroot}%{_unitdir}/guam.service %else install -p -m 755 %{SOURCE1} \ %{buildroot}%{_initddir}/guam %endif cp -a rel/%{realname} %{buildroot}/opt/. cat > %{buildroot}%{_sbindir}/guam << EOF #!/bin/bash exec /opt/kolab_guam/bin/kolab_guam \$* EOF mv %{buildroot}/opt/%{realname}/releases/*/sys.config \ %{buildroot}%{_sysconfdir}/guam/sys.config ln -s ../../../..%{_sysconfdir}/%{name}/sys.config \ $(ls -1d %{buildroot}/opt/%{realname}/releases/*/)/sys.config mv %{buildroot}/opt/%{realname}/log %{buildroot}%{_var}/log/guam ln -s ../..%{_var}/log/guam %{buildroot}/opt/%{realname}/log pushd %{buildroot}/opt/%{realname}/lib for dir in $(ls -d */ | grep -v kolab_guam); do dir=$(basename ${dir}) if [ ! -d %{_libdir}/erlang/lib/${dir} ]; then echo "Skipping deletion of ${dir}, no equivalent in %{_libdir}/erlang/lib/" else rm -rvf ${dir} ln -sv ../../..%{_libdir}/erlang/lib/${dir} ${dir} fi done popd %check rebar skip_deps=true eunit -v %pretrans pushd /opt/kolab_guam/lib for dir in $(ls -d */ | grep -v kolab_guam); do dir=$(basename ${dir}) rm -rf -- ${dir} done %pre if [ $1 == 1 ]; then /usr/sbin/groupadd --system %{guam_group} 2> /dev/null || : /usr/sbin/useradd -c "Guam Service" -d /opt/kolab_guam -g %{guam_group} \ -s /sbin/nologin --system %{guam_user} 2> /dev/null || : fi %postun %if 0%{?with_systemd} %systemd_postun %endif if [ $1 == 0 ]; then /usr/sbin/userdel %{guam_user} 2>/dev/null || : /usr/sbin/groupdel %{guam_group} 2>/dev/null || : fi %if 0%{?with_systemd} %post %systemd_post guam.service %preun %systemd_preun guam.service %posttrans test -f /etc/sysconfig/guam-disable-posttrans || \ systemctl try-restart guam.service 2>&1 || : %else %post chkconfig --add guam >/dev/null 2>&1 || : %posttrans test -f /etc/sysconfig/guam-disable-posttrans || \ %{_bindir}/service restart guam 2>&1 || : %endif %files %attr(0750,root,root) %{_sbindir}/%{name} %config(noreplace) %{_sysconfdir}/%{name}/sys.config %attr(0640,%{guam_user},%{guam_group}) %{_var}/log/%{name}/ %if 0%{?with_systemd} %{_unitdir}/%{name}.service %else %{_initddir}/%{name} %endif /opt/%{realname}/ %changelog * Fri Jun 10 2016 Aaron Seigo <seigo@kolabsystems.com> - Package version 0.8 * Tue Feb 2 2016 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 0.7.1-1 - Check in systemd init script fixes * Mon Jan 4 2016 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 0.7.0-1 - Release of 0.7.0 * Mon Dec 21 2015 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 0.6-0.1.git - Check in 0.6 from git master HEAD to introduce CI/CD * Wed Dec 16 2015 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 0.5-0.1.git - Release of 0.5 - Enhance groupware filtering * Tue Dec 8 2015 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 0.4-0.1.git - Release of 0.4 * Mon Dec 7 2015 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 0.3-0.1.git - Third iteration with more/better TLS configuration support * Mon Nov 30 2015 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 0.2-0.1.git - Second iteration with TLS configuration * Thu Nov 26 2015 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 0.1-0.1.git - 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
.