Split out vzic and clean up
vzic is bundled and has a different license than the rest of the code. Split it out for simplicity. It and the main package depend on each other. Add Provides: bundled(vzic). Slihtly clean up the files list
This commit is contained in:
parent
2805ac4ee2
commit
32ed4ae7af
@ -2,7 +2,7 @@ Name: cyrus-imapd
|
|||||||
Version: 2.5.10
|
Version: 2.5.10
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
|
|
||||||
%define ssl_pem_file /etc/pki/%{name}/%{name}.pem
|
%define ssl_pem_file /etc/pki/%name/%name.pem
|
||||||
|
|
||||||
# uid/gid reserved, see setup:/usr/share/doc/setup*/uidgid
|
# uid/gid reserved, see setup:/usr/share/doc/setup*/uidgid
|
||||||
%define uid 76
|
%define uid 76
|
||||||
@ -10,12 +10,12 @@ Release: 1%{?dist}
|
|||||||
|
|
||||||
%define cyrususer cyrus
|
%define cyrususer cyrus
|
||||||
%define cyrusgroup mail
|
%define cyrusgroup mail
|
||||||
%define cyrexecdir %{_prefix}/lib/%{name}
|
%define cyrexecdir %_prefix/lib/%name
|
||||||
|
|
||||||
Summary: A high-performance mail server with IMAP, POP3, NNTP and SIEVE support
|
Summary: A high-performance mail server with IMAP, POP3, NNTP and SIEVE support
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: http://www.cyrusimap.org/
|
URL: http://www.cyrusimap.org/
|
||||||
Source0: http://www.cyrusimap.org/releases/%{name}-%{version}.tar.gz
|
Source0: http://www.cyrusimap.org/releases/%name-%version.tar.gz
|
||||||
Source1: cyrus-imapd.logrotate
|
Source1: cyrus-imapd.logrotate
|
||||||
Source2: cyrus-imapd.imap-2.3.x-conf
|
Source2: cyrus-imapd.imap-2.3.x-conf
|
||||||
Source3: cyrus-imapd.pam-config
|
Source3: cyrus-imapd.pam-config
|
||||||
@ -45,7 +45,7 @@ BuildRequires: openssl-devel sqlite-devel
|
|||||||
Requires(pre): shadow-utils
|
Requires(pre): shadow-utils
|
||||||
%{?systemd_requires}
|
%{?systemd_requires}
|
||||||
|
|
||||||
Requires: %{name}-utils = %{version}-%{release}
|
Requires: %name-utils = %version-%release
|
||||||
Requires: file, libdb-utils
|
Requires: file, libdb-utils
|
||||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||||
|
|
||||||
@ -79,6 +79,26 @@ TLSv1) can be used for security. The server supports single instance
|
|||||||
store where possible when an email message is addressed to multiple
|
store where possible when an email message is addressed to multiple
|
||||||
recipients, SIEVE provides server side email filtering.
|
recipients, SIEVE provides server side email filtering.
|
||||||
|
|
||||||
|
%package vzic
|
||||||
|
Summary: Utilities to convert timezone database files
|
||||||
|
License: GPLv2+
|
||||||
|
Requires: %name = %version-%release
|
||||||
|
# Contains a lightly forked version of vzic. This seems to have been bundled
|
||||||
|
# into various other things. Here are a couple of possible upstreams:
|
||||||
|
# https://github.com/libical/vzic
|
||||||
|
# https://sourceforge.net/projects/vzic/
|
||||||
|
# It is probably a good idea to split it out and package it separately, but the
|
||||||
|
# code here definitely differs from that at the second link above.
|
||||||
|
Provides: bundled(vzic) = 1.3
|
||||||
|
|
||||||
|
%description vzic
|
||||||
|
vzic is a program to convert the Olson timezone database files into VTIMEZONE
|
||||||
|
files compatible with the iCalendar specification (RFC2445).
|
||||||
|
|
||||||
|
This package contains a forked version of vzic for internal use by the Cyrus
|
||||||
|
IMAP server.
|
||||||
|
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Cyrus IMAP server development files
|
Summary: Cyrus IMAP server development files
|
||||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
@ -263,12 +283,14 @@ getent passwd cyrus >/dev/null || /usr/sbin/useradd -c "Cyrus IMAP Server" -d /v
|
|||||||
-G saslauth -s /sbin/nologin -u %uid -r %cyrususer
|
-G saslauth -s /sbin/nologin -u %uid -r %cyrususer
|
||||||
|
|
||||||
%post
|
%post
|
||||||
|
/sbin/ldconfig
|
||||||
%systemd_post cyrus-imapd.service
|
%systemd_post cyrus-imapd.service
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
%systemd_preun cyrus-imapd.service
|
%systemd_preun cyrus-imapd.service
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
|
/sbin/ldconfig
|
||||||
%systemd_postun_with_restart cyrus-imapd.service
|
%systemd_postun_with_restart cyrus-imapd.service
|
||||||
|
|
||||||
%files
|
%files
|
||||||
@ -287,18 +309,13 @@ getent passwd cyrus >/dev/null || /usr/sbin/useradd -c "Cyrus IMAP Server" -d /v
|
|||||||
%config(noreplace) /etc/imapd.conf
|
%config(noreplace) /etc/imapd.conf
|
||||||
%config(noreplace) /etc/logrotate.d/cyrus-imapd
|
%config(noreplace) /etc/logrotate.d/cyrus-imapd
|
||||||
%config(noreplace) /etc/sysconfig/cyrus-imapd
|
%config(noreplace) /etc/sysconfig/cyrus-imapd
|
||||||
%config(noreplace) /etc/pam.d/pop
|
%config(noreplace) /etc/pam.d/*
|
||||||
%config(noreplace) /etc/pam.d/imap
|
|
||||||
%config(noreplace) /etc/pam.d/sieve
|
|
||||||
%config(noreplace) /etc/pam.d/lmtp
|
|
||||||
%config(noreplace) /etc/pam.d/mupdate
|
|
||||||
%config(noreplace) /etc/pam.d/csync
|
|
||||||
%config(noreplace) /etc/pam.d/nntp
|
|
||||||
|
|
||||||
/etc/cron.daily/cyrus-imapd
|
/etc/cron.daily/cyrus-imapd
|
||||||
%_unitdir/cyrus-imapd.service
|
%_unitdir/cyrus-imapd.service
|
||||||
|
|
||||||
%cyrexecdir/
|
%dir %cyrexecdir/
|
||||||
|
%cyrexecdir/[a-uw-z]*
|
||||||
|
|
||||||
%attr(0750,%cyrususer,%cyrusgroup) %dir /var/lib/imap
|
%attr(0750,%cyrususer,%cyrusgroup) %dir /var/lib/imap
|
||||||
%attr(0700,%cyrususer,%cyrusgroup) /var/lib/imap/backup/
|
%attr(0700,%cyrususer,%cyrusgroup) /var/lib/imap/backup/
|
||||||
@ -318,6 +335,9 @@ getent passwd cyrus >/dev/null || /usr/sbin/useradd -c "Cyrus IMAP Server" -d /v
|
|||||||
%attr(0700,%cyrususer,%cyrusgroup) /var/spool/imap/
|
%attr(0700,%cyrususer,%cyrusgroup) /var/spool/imap/
|
||||||
|
|
||||||
|
|
||||||
|
%files vzic
|
||||||
|
%cyrexecdir/vzic*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%_includedir/cyrus/
|
%_includedir/cyrus/
|
||||||
%_libdir/libcyrus*.so
|
%_libdir/libcyrus*.so
|
||||||
|
Loading…
Reference in New Issue
Block a user