- Implement shared library packaging guideline.

OBS-URL: https://build.opensuse.org/package/show/server:mail/libesmtp?expand=0&rev=5
This commit is contained in:
Jan Engelhardt 2018-03-03 16:41:48 +00:00 committed by Git OBS Bridge
parent d60ec76aec
commit 73308bc56b
2 changed files with 38 additions and 27 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Sat Mar 3 16:32:02 UTC 2018 - jengelh@inai.de
- Drop ineffective --with-pic. Drop %__-type macro indirections.
Drop redundant %clean section.
- Implement shared library packaging guideline.
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Feb 16 20:12:12 UTC 2018 - crrodriguez@opensuse.org Fri Feb 16 20:12:12 UTC 2018 - crrodriguez@opensuse.org

View File

@ -17,6 +17,7 @@
Name: libesmtp Name: libesmtp
%define lname libesmtp6
Version: 1.0.6 Version: 1.0.6
Release: 0 Release: 0
Summary: A Library for Posting Electronic Mail Summary: A Library for Posting Electronic Mail
@ -37,22 +38,32 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %description
libESMTP is a library to manage posting (or submission of) electronic libESMTP is a library to manage posting (or submission of) electronic
mail using SMTP to a preconfigured Mail Transport Agent (MTA) such as mail using SMTP to a preconfigured Mail Transport Agent (MTA). It may
Exim. It may be used as part of a Mail User Agent (MUA) or another be used as part of a Mail User Agent (MUA) or another program that
program that must be able to post electronic mail but where mail must be able to post electronic mail but where mail functionality is
functionality is not that program's primary purpose. not that program's primary purpose.
%package -n %lname
Summary: A Library for Posting Electronic Mail
Group: System/Libraries
%description -n %lname
libESMTP is a library to manage posting (or submission of) electronic
mail using SMTP to a preconfigured Mail Transport Agent (MTA). 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 that program's primary purpose.
%package devel %package devel
Summary: A Library for Posting Electronic Mail Summary: A Library for Posting Electronic Mail
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: libesmtp = %{version} Requires: %lname = %version
%description devel %description devel
libESMTP is a library to manage posting (or submission of) electronic libESMTP is a library to manage posting (or submission of) electronic
mail using SMTP to a preconfigured Mail Transport Agent (MTA) such as mail using SMTP to a preconfigured Mail Transport Agent (MTA).
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 This subpackage contains the API definition files.
functionality is not that program's primary purpose.
%prep %prep
%setup -q %setup -q
@ -60,32 +71,25 @@ functionality is not that program's primary purpose.
%patch1 %patch1
%patch2 -p1 %patch2 -p1
%patch3 -p1 %patch3 -p1
%build %build
autoreconf -fiv autoreconf -fiv
%configure --with-openssl=yes --disable-static --with-pic \ %configure --with-openssl=yes --disable-static --enable-ntlm --enable-etrn \
--enable-ntlm \ --disable-isoc --with-auth-plugin-dir="%_libdir/%lname-plugins"
--enable-etrn \ make %{?_smp_mflags}
--disable-isoc
%{__make} %{?_smp_mflags}
%install %install
%makeinstall %make_install
#uses dlsym not ltdl ..useless files # library uses dlsym not ltdl
rm -rf %{buildroot}%{_libdir}/esmtp-plugins/*a find "%buildroot" -type f -name "*.la" -delete
rm -rf %{buildroot}%{_libdir}/*a
%clean %post -n %lname -p /sbin/ldconfig
rm -rf %{buildroot} %postun -n %lname -p /sbin/ldconfig
%post -p /sbin/ldconfig %files -n %lname
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root) %defattr(-,root,root)
%doc README AUTHORS ChangeLog COPYING %doc README AUTHORS ChangeLog COPYING
%dir %{_libdir}/esmtp-plugins %_libdir/%lname-plugins/
%{_libdir}/esmtp-plugins/*so*
%{_libdir}/libesmtp.*so.* %{_libdir}/libesmtp.*so.*
%files devel %files devel