File librpcsecgss.spec of Package librpcsecgss

#
# spec file for package librpcsecgss
#
# Copyright (c) 2012 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/
#


Name:           librpcsecgss
%define socurrent	3
BuildRequires:  libgssglue-devel
BuildRequires:  libtool
BuildRequires:  pkgconfig
Url:            http://www.citi.umich.edu/projects/nfsv4/linux
Summary:        Library Implementing GSSAPI Security for ONC RPC
License:        BSD-3-Clause
Group:          Development/Libraries/C and C++
Version:        0.19
Release:        0
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source:         http://www.citi.umich.edu/projects/nfsv4/linux/librpcsecgss/librpcsecgss-%{version}.tar.gz

%description
This library implements the GSS security mechanism for ONC RPC. It can
be used to provide strong authentication and security for NFS.

%package -n %name%socurrent

Summary:        Library Implementing GSSAPI Security for ONC RPC
Group:          System/Base
Obsoletes:      %name < 0.18
Provides:       %name = 0.18

%description -n %name%socurrent
This library implements the GSS security mechanism for ONC RPC. It can
be used to provide strong authentication and security for NFS.

%package devel
Summary:        Library Implementing GSSAPI Security for ONC RPC
Group:          Development/Libraries/C and C++
Requires:       %name%socurrent = %version

%description devel
This library implements the GSS security mechanism for ONC RPC. It can
be used to provide strong authentication and security for NFS.

%prep
%setup -q

%build
%{?suse_update_config:%{suse_update_config -f }}
autoreconf -i -f
RPM_OPT_FLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" %configure 
make %{?_smp_mflags}

%install
make install DESTDIR="%buildroot"
find "%buildroot" -type f -name "*.a" -delete
find "%buildroot" -type f -name "*.la" -delete

%clean
rm -rf $RPM_BUILD_ROOT

%post -n %name%socurrent -p /sbin/ldconfig

%postun -n %name%socurrent -p /sbin/ldconfig

%files -n %name%socurrent
%defattr(-,root,root)
%_libdir/librpcsecgss.so.*

%files devel
%defattr(-,root,root)
%_prefix/include/*
%_libdir/*.so
%_libdir/pkgconfig/*

%changelog
openSUSE Build Service is sponsored by