update to 1.1.0 [release 1.1.0-1mamba;Fri Nov 26 2021]

This commit is contained in:
Silvan Calarco 2024-01-06 04:11:24 +01:00
parent 10d152dba4
commit 5681e8a2a5

View File

@ -1,34 +1,19 @@
Name: libesmtp
Version: 1.0.6
Release: 4mamba
Version: 1.1.0
Release: 1mamba
Summary: SMTP client library
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/jbouse-debian/libesmtp
Source: http://www.stafford.uklinux.net/libesmtp/libesmtp-%{version}.tar.gz
#Source: ftp://mirror.ovh.net/gentoo-distfiles/distfiles/libesmtp-%{version}.tar.bz2
URL: https://libesmtp.github.io/
Source: https://github.com/libesmtp/libESMTP.git/v%{version}/libESMTP-%{version}.tar.bz2
License: GPL, LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libopenssl-devel
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
#*************************
#*** libESMTP features ***
#*************************
# --with-auth-plugin-dir: /usr/lib/esmtp-plugins
# --with-lwres: no
# --with-openssl: yes
# --enable-pthreads: yes
# --enable-etrn: yes
# --enable-ntlm: no
# --enable-chunking: yes
# --enable-xusr: yes
# --enable-nsauth: yes
# --enable-debug: yes
Obsoletes: libesmtp-static < 1.1.0
%description
LibESMTP is a library to manage posting (or submission of) electronic mail using SMTP to a preconfigured Mail Transport Agent (MTA) such as Exim. It may be used as part of a Mail User Agent (MUA) or another program that must be able to post electronic mail but where mail functionality is not the program's primary purpose.
@ -42,59 +27,19 @@ Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
SMTP client library.
This package contains libraries and header files needed for development.
%package static
Group: Development/Libraries
Summary: Static libraries for %{name}
Requires: %{name}-devel = %{?epoch:%epoch:}%{version}-%{release}
%description static
SMTP client library.
This package contains static libraries needed for development.
%debug_package
%prep
%setup -q
sed -i "s,| arm-\* |,| aarch64-\* | arm-\* |," config.sub
chmod a-x htable.c
%setup -q -n libESMTP-%{version}
%build
%configure \
--with-auth-plugin-dir=%{_libdir}/esmtp-plugins \
--enable-pthreads \
--enable-require-all-recipients \
--enable-debug \
--enable-etrn \
--disable-isoc \
--disable-more-warnings
%meson
%make
cat > libesmtp.pc << EOF
prefix=%{_prefix}
exec_prefix=%{_prefix}
libdir=%{_libdir}
includedir=%{_includedir}
Name: libESMTP
Version: 1.0.6
Description: SMTP client library.
Requires: openssl
Libs: -pthread -L\${libdir} -lesmtp
Cflags:
EOF
cat > libesmtp-config << EOF
#! /bin/sh
exec pkg-config "\$@" libesmtp
EOF
%meson_build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
mkdir -p %{buildroot}%{_exec_prefix}/lib/pkgconfig
install -pm 644 libesmtp.pc %{buildroot}%{_exec_prefix}/lib/pkgconfig/libesmtp.pc
%meson_install
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
@ -105,27 +50,24 @@ install -pm 644 libesmtp.pc %{buildroot}%{_exec_prefix}/lib/pkgconfig/libesmtp.p
%files
%defattr(-,root,root)
%{_libdir}/libesmtp.so.*
%dir %{_libdir}/esmtp-plugins
%{_libdir}/esmtp-plugins/sasl-cram-md5.so
%{_libdir}/esmtp-plugins/sasl-login.so
%{_libdir}/esmtp-plugins/sasl-plain.so
%doc AUTHORS COPYING.LIB
%dir %{_libdir}/esmtp-plugins-*
%{_libdir}/esmtp-plugins-*/sasl-*.so
%doc COPYING.GPL
%files devel
%defattr(-,root,root)
%{_bindir}/libesmtp-config
%{_includedir}/*.h
%{_includedir}/auth-client.h
%{_includedir}/libesmtp.h
%{_libdir}/libesmtp.so
%{_exec_prefix}/lib/pkgconfig/libesmtp.pc
%doc examples COPYING
%doc ChangeLog NEWS README TODO
%files static
%defattr(-,root,root)
%{_libdir}/libesmtp.*a
%{_libdir}/esmtp-plugins/sasl-*a
%{_libdir}/pkgconfig/libesmtp-1.0.pc
%changelog
* Fri Nov 26 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.0-1mamba
- update to 1.1.0
* Fri Nov 26 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.6-5mamba
- fix pkgconfig file install path
* Sat Dec 05 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.6-4mamba
- rebuilt with debug package and aarch64 build fix