Adapt spec to build

OBS-URL: https://build.opensuse.org/package/show/network/cyrus-sasl?expand=0&rev=86
This commit is contained in:
Peter Varkoly 2021-02-18 11:45:17 +00:00 committed by Git OBS Bridge
parent c57fcb38e7
commit ecc5a2adde

View File

@ -17,7 +17,7 @@
Name: cyrus-sasl-bdb
%define lname libsasl2-3
%define lname libsasl2-3-bdb
Version: 2.1.27
Release: 0
URL: http://asg.web.cmu.edu/sasl/
@ -52,49 +52,49 @@ Conflicts: cyrus-sasl
%package gssapi
Summary: Plugin for the GSSAPI SASL mechanism
Group: Productivity/Networking/Other
Requires: cyrus-sasl = %{version}
Requires: cyrus-sasl-bdb = %{version}
Conflicts: cyrus-sasl-gssapi
%package crammd5
Summary: Plugin for the CRAMMD5 SASL mechanism
Group: Productivity/Networking/Other
Requires: cyrus-sasl = %{version}
Requires: cyrus-sasl-bdb = %{version}
Conflicts: cyrus-sasl-crammd5
%package digestmd5
Summary: Plugin for the DIGESTMD5 SASL mechanism
Group: Productivity/Networking/Other
Requires: cyrus-sasl = %{version}
Requires: cyrus-sasl-bdb = %{version}
Conflicts: cyrus-sasl-digestmd5
%package otp
Summary: Plugin for the OTP SASL mechanism
Group: Productivity/Networking/Other
Requires: cyrus-sasl = %{version}
Requires: cyrus-sasl-bdb = %{version}
Conflicts: cyrus-sasl-otp
%package plain
Summary: Plugin for the PLAIN SASL mechanism
Group: Productivity/Networking/Other
Requires: cyrus-sasl = %{version}
Requires: cyrus-sasl-bdb = %{version}
Conflicts: cyrus-sasl-plain
%package ntlm
Summary: Plugin for the NTLM SASL mechanism
Group: Productivity/Networking/Other
Requires: cyrus-sasl = %{version}
Requires: cyrus-sasl-bdb = %{version}
Conflicts: cyrus-sasl-ntlm
%package gs2
Summary: Plugin for the GS2 SASL mechanism
Group: Productivity/Networking/Other
Requires: cyrus-sasl = %{version}
Requires: cyrus-sasl-bdb = %{version}
Conflicts: cyrus-sasl-gs2
%package scram
Summary: Plugin for the SCRAM SASL mechanism
Group: Productivity/Networking/Other
Requires: cyrus-sasl = %{version}
Requires: cyrus-sasl-bdb = %{version}
Conflicts: cyrus-sasl-scram
%package devel
@ -109,6 +109,11 @@ Requires: %lname = %version
Requires: glibc-devel
Conflicts: cyrus-sasl-devel
%package -n %lname
Summary: Simple Authentication and Security Layer (SASL) library
Group: System/Libraries
Conflicts: libsasl2-3
%description
This is the Cyrus SASL API. It can be used on the client or server side
to provide authentication. See RFC 2222 for more information.
@ -156,6 +161,14 @@ This is the Cyrus SASL API implementation. It can be used on the client
or server side to provide authentication. See RFC 5802 for more
information.
%description -n %lname
Simple Authentication and Security Layer (SASL) is a framework for
authentication and data security in Internet protocols.
This is the Cyrus SASL API implementation. It can be used on the client
or server side to provide authentication. See RFC 2222 for more
information.
%prep
%setup -q -n cyrus-sasl-%{version} -a 1
if [ -e %{_builddir}/cyrus-sasl-%{version}/dlcompat-*/ ]
@ -202,6 +215,10 @@ rm -f $RPM_BUILD_ROOT/usr/sbin/testsaslauthd
rm -r $RPM_BUILD_ROOT%{_libdir}/libsasl2.so.3*
find "%buildroot" -type f -name "*.la" -print -delete
%files -n %lname
%defattr(-,root,root)
%{_libdir}/libsasl2.so.3*
%files
%defattr(-,root,root)
%dir %{_libdir}/sasl2