File libgsasl.spec of Package libgsasl

#
# spec file for package libgsasl
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           libgsasl
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  gettext-devel
BuildRequires:  krb5-devel
BuildRequires:  libgcrypt-devel
BuildRequires:  libgssglue-devel
BuildRequires:  libidn-devel
BuildRequires:  pkg-config
# FIXME: libntlm is not packaged: http://josefsson.org/libntlm/
# BuildRequires: libntlm-devel
Version:        1.6.1
Release:        3
License:        LGPLv2.1+
Source:         %{name}-%{version}.tar.gz
Group:          Development/Libraries/C and C++
Summary:        Implementation of the SASL framework and a few common SASL mechanisms
Url:            http://www.gnu.org/software/gsasl/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
GNU SASL is an implementation of the Simple Authentication and
Security Layer framework and a few common SASL mechanisms. SASL is
used by network servers (e.g., IMAP, SMTP) to request authentication
from clients, and in clients to authenticate against servers. 

%package -n libgsasl7
License:        LGPLv2.1+
Summary:        Implementation of the SASL framework and a few common SASL mechanisms
Group:          Development/Libraries/C and C++
Requires:       %{name}-lang = %{version}
# Needed to make lang package installable
Provides:       %{name} = %{version}

%description -n libgsasl7
GNU SASL is an implementation of the Simple Authentication and
Security Layer framework and a few common SASL mechanisms. SASL is
used by network servers (e.g., IMAP, SMTP) to request authentication
from clients, and in clients to authenticate against servers.

%package devel
License:        LGPLv2.1+
Summary:        Implementation of the SASL framework and a few common SASL mechanisms
Group:          Development/Libraries/C and C++
Requires:       libgsasl7 = %{version}

%description devel
GNU SASL is an implementation of the Simple Authentication and
Security Layer framework and a few common SASL mechanisms. SASL is
used by network servers (e.g., IMAP, SMTP) to request authentication
from clients, and in clients to authenticate against servers.

%lang_package
%prep
%setup -q

%build
%configure --disable-static --with-pic
make %{?jobs:-j%jobs}

%install
%makeinstall
%find_lang %{name}
rm -f %{buildroot}%{_libdir}/*.la
%fdupes $RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%post -n libgsasl7 -p /sbin/ldconfig

%postun -n libgsasl7 -p /sbin/ldconfig

%files -n libgsasl7
%defattr (-, root, root)
%doc AUTHORS COPYING.LIB NEWS README THANKS
%{_libdir}/*.so.*

%files devel
%defattr (-, root, root)
%{_includedir}/gsas*.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by