File yast2-mail.spec of Package yast2-mail
#
# spec file for package yast2-mail (Version 2.20.0)
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: yast2-mail
Version: 2.20.0
Release: 1
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: yast2-mail-2.20.0.tar.bz2
Prefix: /usr
Group: System/YaST
License: GPLv2+
BuildRequires: perl-XML-Writer update-desktop-files yast2-devtools yast2-testsuite
BuildRequires: yast2-ldap-server yast2-network yast2-perl-bindings yast2-users
BuildRequires: perl-NetxAP
PreReq: %fillup_prereq
# new firewall interface
Requires: yast2 >= 2.16.23
Requires: yast2-users
Requires: yast2-ldap
Requires: perl-NetxAP
Provides: yast2-config-network:/usr/lib/YaST2/clients/lan_sendmail.ycp
Provides: yast2-config-sendmail yast2-config-sendmail-devel
Obsoletes: yast2-config-sendmail yast2-config-sendmail-devel
Provides: yast2-trans-sendmail = %{version}
Obsoletes: yast2-trans-sendmail <= %{version}
Provides: yast2-config-mail = %{version}
Obsoletes: yast2-config-mail <= %{version}
Provides: yast2-trans-mail = %{version}
Obsoletes: yast2-trans-mail <= %{version}
Provides: yast2-mail-server = %{version}
Obsoletes: yast2-mail-server <= %{version}
Conflicts: aaa_base < 10.3
BuildArch: noarch
Summary: YaST2 - Mail Configuration
%description
The YaST2 component for mail configuration. It handles Postfix, Cyrus,
Amavis and Fetchmail.
%package plugins
License: GPLv2+
Summary: YaST2 - Users/Group Plugins for the mail delivery configuration
Group: System/YaST
Requires: perl-NetxAP acl
%description plugins
Plugins for the YaST2 users modul for enterprise mail server
configuration.
%prep
%setup -n yast2-mail-2.20.0
%build
%{prefix}/bin/y2tool y2autoconf
%{prefix}/bin/y2tool y2automake
autoreconf --force --install
export CFLAGS="$RPM_OPT_FLAGS -DNDEBUG"
export CXXFLAGS="$RPM_OPT_FLAGS -DNDEBUG"
%{?suse_update_config:%{suse_update_config -f}}
./configure --libdir=%{_libdir} --prefix=%{prefix} --mandir=%{_mandir}
# V=1: verbose build in case we used AM_SILENT_RULES(yes)
# so that RPM_OPT_FLAGS check works
make %{?jobs:-j%jobs} V=1
%install
make install DESTDIR="$RPM_BUILD_ROOT"
[ -e "%{prefix}/share/YaST2/data/devtools/NO_MAKE_CHECK" ] || Y2DIR="$RPM_BUILD_ROOT/usr/share/YaST2" make check DESTDIR="$RPM_BUILD_ROOT"
for f in `find $RPM_BUILD_ROOT/%{prefix}/share/applications/YaST2/ -name "*.desktop"` ; do
d=${f##*/}
%suse_update_desktop_file -d ycc_${d%.desktop} ${d%.desktop}
done
%clean
rm -rf "$RPM_BUILD_ROOT"
%post
%{fillup_only -n mail}
%files
%defattr(-,root,root)
%dir /usr/share/YaST2/include/mail
/usr/share/YaST2/include/mail/*
%dir /usr/share/YaST2/clients
/usr/share/YaST2/clients/mail*
%dir /usr/share/YaST2/modules
/usr/share/YaST2/modules/Mail.ybc
/usr/share/YaST2/modules/MailServer.ybc
/usr/share/YaST2/modules/MailServer.ycp
/usr/share/YaST2/modules/MailServerLDAP.pm
/usr/share/YaST2/modules/Mail.ycp
%dir /usr/share/YaST2/modules/YaPI
/usr/share/YaST2/modules/YaPI/Mail*
%dir %{prefix}/share/applications/YaST2
%{prefix}/share/applications/YaST2/mail.desktop
%dir /usr/share/YaST2/schema/autoyast/rnc
/usr/share/YaST2/schema/autoyast/rnc/mail.rnc
%dir /usr/share/YaST2/scrconf
/usr/share/YaST2/scrconf/cfg_amavis.scr
/usr/share/YaST2/scrconf/cfg_postfix.scr
/usr/share/YaST2/scrconf/cfg_sendmail.scr
/usr/share/YaST2/scrconf/mail_p_auth.scr
/usr/share/YaST2/scrconf/mail_p_canonical.scr
/usr/share/YaST2/scrconf/mail_p_virtual.scr
/usr/share/YaST2/scrconf/mail_s_auth.scr
/usr/share/YaST2/scrconf/mail_s_generics.scr
/usr/share/YaST2/scrconf/mail_s_virtuser.scr
/usr/share/YaST2/scrconf/cfg_fetchmail.scr
/usr/share/YaST2/scrconf/etc_imapd_conf.scr
/usr/share/YaST2/scrconf/mail_cyrusconf.scr
/usr/share/YaST2/scrconf/mail_ldaptable.scr
/usr/share/YaST2/scrconf/mail_maincf.scr
/usr/share/YaST2/scrconf/mail_mastercf.scr
/usr/share/YaST2/scrconf/mail_saslpasswd.scr
%dir /usr/lib/YaST2/servers_non_y2
/usr/lib/YaST2/servers_non_y2/ag_cyrus_conf
/usr/lib/YaST2/servers_non_y2/ag_fetchmailrc
/usr/lib/YaST2/servers_non_y2/ag_mailconfig
/usr/lib/YaST2/servers_non_y2/ag_mail_ldaptable
/usr/lib/YaST2/servers_non_y2/ag_mailtable
/usr/lib/YaST2/servers_non_y2/ag_postfix_mastercf
/usr/lib/YaST2/servers_non_y2/ag_smtp_auth
/usr/lib/YaST2/servers_non_y2/CyrusConfParser.pm
/usr/lib/YaST2/servers_non_y2/MasterCFParser.pm
%dir /etc/openldap/
%dir /etc/openldap/schema/
/etc/openldap/schema/suse-mailserver.schema
/etc/permissions.d/mail-server*
%doc %{prefix}/share/doc/packages/yast2-mail
#%files aliases
%defattr(-,root,root)
%dir /usr/share/YaST2/scrconf
/usr/share/YaST2/scrconf/cfg_mail.scr
/usr/share/YaST2/scrconf/mail_aliases.scr
/usr/share/YaST2/scrconf/mail_fetchmail.scr
%dir /usr/lib/YaST2/servers_non_y2
/usr/lib/YaST2/servers_non_y2/ag_fetchmailrc
/usr/lib/YaST2/servers_non_y2/ag_mailtable
/var/adm/fillup-templates/sysconfig.mail
%files plugins
%defattr(-,root,root)
%dir /usr/share/YaST2/modules
/usr/share/YaST2/modules/UsersPluginMail.pm
%dir /usr/share/YaST2/clients
/usr/share/YaST2/clients/users*
%changelog