Clean up a bit.
This commit is contained in:
parent
10e891f3e8
commit
399f01ad19
@ -1,6 +1,6 @@
|
||||
Name: cyrus-imapd
|
||||
Version: 2.4.17
|
||||
Release: 13%{?dist}
|
||||
Release: 14%{?dist}
|
||||
|
||||
%define ssl_pem_file %{_sysconfdir}/pki/%{name}/%{name}.pem
|
||||
|
||||
@ -14,7 +14,6 @@ Release: 13%{?dist}
|
||||
|
||||
Summary: A high-performance mail server with IMAP, POP3, NNTP and SIEVE support
|
||||
License: BSD
|
||||
Group: System Environment/Daemons
|
||||
URL: http://www.cyrusimap.org/
|
||||
Source0: http://www.cyrusimap.org/releases/%{name}-%{version}.tar.gz
|
||||
Source1: cyrus-imapd.logrotate
|
||||
@ -25,22 +24,17 @@ Source8: cyrus-imapd.cvt_cyrusdb_all
|
||||
Source9: cyrus-imapd.magic
|
||||
Source10: cyrus-imapd.cron-daily
|
||||
Source11: README.rpm
|
||||
|
||||
#systemd support
|
||||
Source12: cyrus-imapd.service
|
||||
Source13: cyr_systemd_helper
|
||||
|
||||
Patch3: cyrus-imapd-2.1.3-flock.patch
|
||||
|
||||
Patch4: cyrus-imapd-2.3.1-authid_normalize.patch
|
||||
Patch0: cyrus-imapd-2.1.3-flock.patch
|
||||
Patch1: cyrus-imapd-2.3.1-authid_normalize.patch
|
||||
|
||||
# fedora/rhel specific, find current db lib, rhbz#461875
|
||||
Patch6: cyrus-imapd-2.3.12p2-current-db.patch
|
||||
Patch2: cyrus-imapd-2.3.12p2-current-db.patch
|
||||
|
||||
# for c-i <= 2.4.12
|
||||
Patch8: cyrus-imapd-2.4.12-debugopt.patch
|
||||
|
||||
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
||||
Patch3: cyrus-imapd-2.4.12-debugopt.patch
|
||||
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: cyrus-sasl-devel, perl-devel, tcp_wrappers
|
||||
@ -91,8 +85,8 @@ store where possible when an email message is addressed to multiple
|
||||
recipients, SIEVE provides server side email filtering.
|
||||
|
||||
%package devel
|
||||
Group: Development/Libraries
|
||||
Summary: Cyrus IMAP server development files
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
Provides: %{name}-static = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
@ -100,12 +94,10 @@ The %{name}-devel package contains header files and libraries
|
||||
necessary for developing applications which use the imclient library.
|
||||
|
||||
%package utils
|
||||
Group: Applications/System
|
||||
Summary: Cyrus IMAP server administration utilities
|
||||
Requires(pre): shadow-utils
|
||||
Requires(post): grep, coreutils, make, openssl
|
||||
Requires(postun): shadow-utils
|
||||
Obsoletes: %{name}-perl < 2.3.16-5
|
||||
|
||||
%description utils
|
||||
The %{name}-utils package contains administrative tools for the
|
||||
@ -113,12 +105,7 @@ Cyrus IMAP server. It can be installed on systems other than the
|
||||
one running the server.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch3 -p1 -b .flock
|
||||
%patch4 -p1 -b .authid_normalize
|
||||
%patch6 -p1 -b .libdb
|
||||
%patch8 -p1 -b .debugopt
|
||||
|
||||
%autosetup -p1
|
||||
install -m 644 %{SOURCE11} doc/
|
||||
|
||||
# only to update config.* files
|
||||
@ -145,8 +132,6 @@ find . -type f -name "*.pl" | xargs %{__perl} -pi -e "s@/usr/local/bin/perl@%{__
|
||||
find . -type f -name "*.pl" -exec chmod 755 {} \;
|
||||
|
||||
%build
|
||||
%global _hardened_build 1
|
||||
|
||||
CPPFLAGS="${__global_cflags} -I%{_includedir}/et -I%{_includedir}/kerberosIV -fno-strict-aliasing"; export CPPFLAGS
|
||||
CFLAGS="%{__global_cflags} -fno-strict-aliasing"; export CFLAGS
|
||||
CCDLFLAGS="-rdynamic"; export CCDLFLAGS
|
||||
@ -178,8 +163,6 @@ make LDFLAGS="$LDFLAGS -pie %{__global_ldflags}"
|
||||
make -C notifyd notifytest
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
|
||||
# This is needed to install the perl files correctly
|
||||
pushd perl/imap
|
||||
%{__perl} Makefile.PL PREFIX=%{buildroot}%{_prefix} INSTALLDIRS=vendor
|
||||
@ -284,8 +267,6 @@ find %{buildroot} -name ".packlist" -exec rm -f {} \;
|
||||
rm -f %{buildroot}%{_mandir}/man8/syncnews.8*
|
||||
find %{buildroot}%{perl_vendorarch} -name "*.bs" -exec rm -f {} \;
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%pre
|
||||
# Create 'cyrus' user on target host
|
||||
@ -333,9 +314,8 @@ fi
|
||||
%systemd_postun_with_restart cyrus-imapd.service
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc COPYRIGHT README
|
||||
%doc doc/*
|
||||
%license COPYRIGHT
|
||||
%doc README doc/*
|
||||
%config(noreplace) %{_sysconfdir}/cyrus.conf
|
||||
%config(noreplace) %{_sysconfdir}/imapd.conf
|
||||
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
|
||||
@ -433,18 +413,15 @@ fi
|
||||
%attr(0640,root,%{_cyrusgroup}) %ghost %config(missingok,noreplace) %verify(not md5 size mtime) %{ssl_pem_file}
|
||||
|
||||
%files devel
|
||||
%defattr(0644,root,root,0755)
|
||||
%doc COPYRIGHT
|
||||
%{_includedir}/cyrus
|
||||
%{_libdir}/lib*.a
|
||||
%{_mandir}/man3/imclient.3*
|
||||
|
||||
%files utils
|
||||
%defattr(-,root,root)
|
||||
%license COPYRIGHT
|
||||
%doc perl/imap/README
|
||||
%doc perl/imap/Changes
|
||||
%doc perl/imap/examples
|
||||
%doc COPYRIGHT
|
||||
%{_bindir}/*
|
||||
%dir %{perl_vendorarch}/Cyrus
|
||||
%dir %{perl_vendorarch}/Cyrus/IMAP
|
||||
@ -469,6 +446,11 @@ fi
|
||||
%{_mandir}/man1/*
|
||||
|
||||
%changelog
|
||||
* Wed Sep 09 2015 Jason L Tibbitts III <tibbs@math.uh.edu> - 2.4.17-14
|
||||
- Use %%license tag
|
||||
- Have -devel require the base package
|
||||
- Minor cleanups
|
||||
|
||||
* Sat Aug 08 2015 Jason L Tibbitts III <tibbs@math.uh.edu> - 2.4.17-13
|
||||
- Remove invalid Patch0: URL.
|
||||
- Use HTTP for upstream source.
|
||||
|
Loading…
Reference in New Issue
Block a user