libheimdal/libheimdal.spec

157 lines
4.6 KiB
RPMSpec

#
# spec file for package libheimdal
#
# Copyright (c) 2015 SUSE LINUX 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: libheimdal
Summary: Libraries of Kerberos 5 implementation
License: BSD-3-Clause
Group: System/Libraries
Version: 1.6rc2
Release: 0
Url: http://www.h5l.org
Source0: http://www.h5l.org/dist/src/heimdal-%{version}.tar.gz
Source1: http://www.h5l.org/dist/src/heimdal-%{version}.tar.gz.asc
Patch0: heimdal-version-script-client.map.patch
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xau)
BuildRequires: pkgconfig(xt)
%if 0%{suse_version} > 1310
BuildRequires: pkgconfig(ncurses) >= 5.3
%else
BuildRequires: ncurses-devel >= 5.3
%endif
BuildRequires: bison
BuildRequires: db-devel >= 4.2.52
BuildRequires: e2fsprogs-devel
BuildRequires: flex
BuildRequires: libtool
BuildRequires: openldap2-devel >= 2.0
BuildRequires: pam-devel
BuildRequires: pkg-config
BuildRequires: readline-devel
BuildRequires: texinfo
BuildRequires: pkgconfig(sqlite3)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Heimdal is an implementation of Kerberos 5 (and some more stuff) largely written
in Sweden (which was important when we started writing it, less so now).
It is freely available under a three clause BSD style license.
Other free implementations include the one from MIT, and Shishi.
Also Microsoft Windows and Sun's Java come with implementations of Kerberos.
This package only provides libraries and devel files (binaries have been removed),
libraries are required by 64bit package of ICAClient version 13.2.
%package devel
Summary: Libraries of Kerberos 5 implementation
Group: Development/Libraries/C and C++
Requires: libheimdal = %{version}
%description devel
Heimdal is an implementation of Kerberos 5 (and some more stuff) largely written
in Sweden (which was important when we started writing it, less so now).
It is freely available under a three clause BSD style license.
Other free implementations include the one from MIT, and Shishi.
Also Microsoft Windows and Sun's Java come with implementations of Kerberos.
This package only provides libraries and devel files (binaries have been removed),
libraries are required by 64bit package of ICAClient version 13.2.
%prep
%setup -q -n heimdal-%{version}
%patch0
%build
autoreconf -fi
%configure
make %{?_smp_mflags}
%install
%make_install
rm -rf %{buildroot}%{_bindir}
rm -rf %{buildroot}%{_sbindir}
rm -rf %{buildroot}%{_mandir}
rm -rf %{buildroot}%{_libdir}/*.a
rm -rf %{buildroot}%{_libdir}/*.la
%ifarch x86_64
rm -rf %{buildroot}%{_libexecdir}
%else
shopt -s extglob
rm -rf %{buildroot}%{_libexecdir}/!(*.so*|pkgconfig)
shopt -u extglob
%endif
%post
/sbin/ldconfig
%install_info --info-dir=%{_infodir} %{_infodir}/heimdal.info.gz
%install_info --info-dir=%{_infodir} %{_infodir}/hx509.info.gz
%postun
/sbin/ldconfig
%preun
/sbin/ldconfig
%install_info_delete --info-dir=%{_infodir} %{_infodir}/heimdal.info.gz
%install_info_delete --info-dir=%{_infodir} %{_infodir}/hx509.info.gz
%files
%defattr(-,root,root)
%doc LICENSE NEWS README TODO
%{_libdir}/libasn1.so.8*
%{_libdir}/libgssapi.so.3*
%{_libdir}/libhcrypto.so.4*
%{_libdir}/libhdb.so.9*
%{_libdir}/libheimbase.so.1*
%{_libdir}/libheimedit.so.0*
%{_libdir}/libheimntlm.so.0*
%{_libdir}/libheimsqlite.so.0*
%{_libdir}/libhx509.so.5*
%{_libdir}/libkadm5clnt.so.7*
%{_libdir}/libkadm5srv.so.8*
%{_libdir}/libkafs.so.0*
%{_libdir}/libkdc.so.2*
%{_libdir}/libkrb5.so.26*
%{_libdir}/libotp.so.0*
%{_libdir}/libroken.so.18*
%{_libdir}/libsl.so.0*
%{_libdir}/libwind.so.0*
%{_libdir}/windc.so.0*
%{_infodir}/*.info.gz
%files devel
%defattr(-,root,root)
%doc LICENSE
%{_includedir}/*.h
%dir %{_includedir}/gssapi
%{_includedir}/gssapi/*.h
%dir %{_includedir}/hcrypto
%{_includedir}/hcrypto/*.h
%dir %{_includedir}/kadm5
%{_includedir}/kadm5/*.h
%dir %{_includedir}/krb5
%{_includedir}/krb5/*.h
%dir %{_includedir}/roken
%{_includedir}/roken/*.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%changelog