Update to version 2.2

- Update to version 2.2 (request also for Epel: bz#1585846).
- Remov tetex-dvips requirementw to fix FBFS as it is not present anymore in rawhide (bz#1556104).
- Change distribuition tarball to xz archive.
- Switch libidn to libidn2 (bz#1449141).
- Change mysql-devel to mariadb-connector-c-devel (bz#1494071).
- Own /etc/openldap/schema directory (bz#1553431).
- Drop uotdated patch0 perdition-1.19-rc5-const-version.patch.
- Add libnsl2-devel BR.
- Fill bz#1625780 on dwz (<-https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/PB6DOPJSPJLDNUVZ3HUSNLMBORWLCXJK/#KORDFM5B3FXCY3RJ2MYBH5MT4YBNPJBJ)
  o And unset _find_debuginfo_dwz_opts for s390x and armv7hl architectures.
This commit is contained in:
Pavel Alexeev 2018-09-06 00:15:15 +03:00
parent 4d563bb3c0
commit b5b949f38c
3 changed files with 30 additions and 14 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
/perdition-2.0.tar.bz2
/perdition-2.1.tar.bz2
/perdition-2.2.tar.xz

View File

@ -1,26 +1,30 @@
Summary: Mail Retrieval Proxy
Name: perdition
Version: 2.1
Release: 12%{?dist}
Version: 2.2
Release: 1%{?dist}
License: GPLv2+
Group: Applications/Internet
URL: http://horms.net/projects/perdition/
Source: http://horms.net/projects/%{name}/download/%{version}/perdition-%{version}.tar.bz2
Source: http://horms.net/projects/%{name}/download/%{version}/%{name}-%{version}.tar.xz
# My systemd service template
Source1: %{name}-template.service
BuildRequires: automake autoconf libtool vanessa_logger-devel >= 0.0.10
BuildRequires: vanessa_adt-devel >= 0.0.6 vanessa_socket-devel >= 0.0.7
BuildRequires: gdbm-devel mysql-devel postgresql-devel openldap-devel
BuildRequires: popt-devel pam-devel zlib-devel openssl-devel ghostscript
BuildRequires: tetex-latex tetex-dvips libtiff unixODBC-devel tinycdb-devel
BuildRequires: libidn-devel libdb-devel
BuildRequires: mariadb-connector-c-devel postgresql-devel openldap-devel
BuildRequires: gdbm-devel popt-devel pam-devel zlib-devel openssl-devel
BuildRequires: ghostscript tetex-latex libtiff unixODBC-devel
BuildRequires: libidn2-devel libdb-devel tinycdb-devel libnsl2-devel
Requires: vanessa_logger >= 0.0.10 vanessa_adt >= 0.0.6 vanessa_socket >= 0.0.7
#???
Patch0: perdition-1.19-rc5-const-version.patch
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
# By suggestion https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/PB6DOPJSPJLDNUVZ3HUSNLMBORWLCXJK/#KORDFM5B3FXCY3RJ2MYBH5MT4YBNPJBJ
# See bz#https://bugzilla.redhat.com/show_bug.cgi?id=1625780
%ifarch s390x armv7hl
%undefine _find_debuginfo_dwz_opts
%endif
%description
Perdition is a fully featured POP3 and IMAP4 proxy server. It is able to
handle both SSL and non-SSL connections and redirect users to a
@ -126,8 +130,6 @@ which do not support the systemd unit file format.
%prep
%setup -q -n %{name}-%{version}
%patch0 -p1 -b .const
%build
CFLAGS="${CFLAGS:-%optflags} -I/usr/kerberos/include" ; export CFLAGS
if [ -f configure.in ]; then
@ -165,7 +167,8 @@ for service in pop3 pop3s imap4 imap4s managesieve; do
install -Dm 644 %{name}-$service.service %{buildroot}/%{_unitdir}/%{name}-$service.service
done
rm -f %{buildroot}%{_libdir}/*.{a,la,so}
# debug.#dwz# files strange and lead to faile build on arm and s390 platform. See https://koji.fedoraproject.org/koji/taskinfo?taskID=27400316
rm -f %{buildroot}%{_libdir}/*.{a,la,so} %{buildroot}%{_libdir}/debug/usr/sbin/%{name}*.debug.#dwz#.*
%clean
@ -291,7 +294,7 @@ fi
%{_libdir}/lib%{name}db_ldap.so.0.0.0
%{_sbindir}/%{name}db_ldap_makedb
%{_mandir}/man8/%{name}db_ldap_makedb.*
%config(noreplace) %{_sysconfdir}/openldap/schema/%{name}.schema
%config(noreplace) %{_sysconfdir}/openldap/schema
%files mysql
%{_libdir}/lib%{name}db_mysql.so.0
@ -312,6 +315,18 @@ fi
%{_mandir}/man8/%{name}db_odbc_makedb.*
%changelog
* Wed Sep 05 2018 Pavel Alexeev <Pahan@Hubbitus.info> - 2.2-1
- Update to version 2.2 (request also for Epel: bz#1585846).
- Remov tetex-dvips requirementw to fix FBFS as it is not present anymore in rawhide (bz#1556104).
- Change distribuition tarball to xz archive.
- Switch libidn to libidn2 (bz#1449141).
- Change mysql-devel to mariadb-connector-c-devel (bz#1494071).
- Own /etc/openldap/schema directory (bz#1553431).
- Drop uotdated patch0 perdition-1.19-rc5-const-version.patch.
- Add libnsl2-devel BR.
- Fill https://bugzilla.redhat.com/show_bug.cgi?id=1625780 (<-https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/PB6DOPJSPJLDNUVZ3HUSNLMBORWLCXJK/#KORDFM5B3FXCY3RJ2MYBH5MT4YBNPJBJ)
o And unset _find_debuginfo_dwz_opts for s390x and armv7hl architectures.
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

View File

@ -1 +1 @@
1e2c5ecfdcca0c02dde831186a077084 perdition-2.1.tar.bz2
SHA512 (perdition-2.2.tar.xz) = 1ee64505ffe5ad11893fe61a37343fd004d5c15ea88b3dd18e790482248d4b68adc57f2b9c4a1fc12b06087fa7fa01f913db6d1e44bd7e82fd549fd85937a866