Files
libgssglue/libgssglue.spec

101 lines
2.9 KiB
RPMSpec

#
# spec file for package libgssglue
#
# Copyright (c) 2013 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: libgssglue
%define libsoname %{name}1
Summary: Generic Security Services Application Programming Interface Library
Version: 0.4
Release: 0
License: GPL+
Group: System Environment/Libraries
URL: http://www.citi.umich.edu/projects/nfsv4/linux/
Source0: http://www.citi.umich.edu/projects/nfsv4/linux/%{name}/%{name}-%{version}.tar.gz
# Patch fix gssapi_mech.conf
Patch0: gssglue.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: pkg-config
Requires: krb5-libs >= 1.5
Provides: libgssapi = %{version}-%{release}
Provides: libgssapi-devel = %{version}-%{release}
Obsoletes: libgssapi <= 0.11 libgssapi-devel <= 0.11
%description
This library exports a gssapi interface, but doesn't implement any gssapi
mechanisms itself; instead it calls gssapi routines in other libraries,
depending on the mechanism.
%package -n %{libsoname}
Summary: Shared library for libguess
Group: System/Libraries
%description -n %{libsoname}
A high-speed character set detection library
This package contains the shared libguess library.
%package devel
Summary: Development package for libgssglue
Group: Development/Libraries/C and C++
Requires: %{libsoname} = %{version}-%{release}
Requires: pkg-config
%description devel
This package includes header files and libraries necessary for
developing programs which use the gssapi library.
%prep
%setup -q -n %{name}-%{version}
%patch0
%build
%configure
make %{?_smp_mflags} all
%install
make DESTDIR=%{buildroot} install
install -D -m 644 doc/gssapi_mech.conf %{buildroot}/%{_sysconfdir}/gssapi_mech.conf
# remove not needed lib files
rm -f %{buildroot}/%{_libdir}/*.{a,la}
%post -n %{libsoname} -p /sbin/ldconfig
%postun -n %{libsoname} -p /sbin/ldconfig
%clean
%{__rm} -rf %{buildroot}
%files -n %{libsoname}
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING NEWS README
%{_libdir}/%{name}.so.*
%config(noreplace) %{_sysconfdir}/gssapi_mech.conf
%files devel
%defattr(0644,root,root,755)
%{_libdir}/%{name}.so
%dir %{_includedir}/gssglue
%dir %{_includedir}/gssglue/gssapi
%{_includedir}/gssglue/gssapi/gssapi.h
%{_libdir}/pkgconfig/%{name}.pc
%changelog