File libksba.spec of Package libksba

#
# spec file for package libksba (Version 1.0.4)
#
# Copyright (c) 2008 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:           libksba
BuildRequires:  libgcrypt-devel
Url:            http://www.gnupg.org/aegypten/
License:        GPL v3 or later
Group:          Development/Libraries/C and C++
AutoReqProv:    on
Summary:        A X.509 Library
Version:        1.0.4
Release:        1
# change also name and nfb
%define nld_build 0
Source:         libksba-%{version}.tar.bz2
Patch1:         nld-build.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
PreReq:         %install_info_prereq

%description
KSBA is a library to simplify the task of working with X.509
certificates, CMS data, and related data.



Authors:
--------
    Werner Koch  <wk@gnupg.org>

%package devel
License:        GPL v2 or later; X11/MIT
Summary:        A X.509 Library
Group:          Development/Libraries/C and C++
%if %nld_build
Conflicts:      libksba-devel
%else
Provides:       libksba:/usr/include/ksba.h
Requires:       libksba = %{version}
%endif

%description devel
KSBA is a library to simplify the task of working with X.509
certificates, CMS data, and related data.

This package contains the needed files to compile and link against the
libksba.



Authors:
--------
    Werner Koch  <wk@gnupg.org>

%prep
%setup -q -n libksba-%{version}
%if %nld_build
%patch1
%endif

%build
libtoolize --force
autoreconf -fi
%configure
make

%check
make check

%install
%makeinstall

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%clean
rm -rf  %{buildroot}

%files
%defattr(-,root,root)
%doc README AUTHORS COPYING ChangeLog NEWS THANKS TODO
%_libdir/libksba*.so.*

%post devel
%install_info --info-dir=%{_infodir} %{_infodir}/ksba.info.gz

%postun devel
%install_info_delete --info-dir=%{_infodir} %{_infodir}/ksba.info.gz

%files devel
%defattr(-,root,root)
/usr/bin/*
%_libdir/libksba*a
%_libdir/libksba*.so
/usr/include/*
%doc %_infodir/ksba*
/usr/share/aclocal/*

%changelog
* Thu Sep 25 2008 puzel@suse.cz
- update to 1.0.4
  * autoconf fixes
- correctly install/uninstall info files
- use %%makeinstall and %%configure macros
* Thu Jun 26 2008 puzel@suse.cz
- update to 1.0.3
  * bugfix release (autoconf fixes)
  * removed libksba-texi.patch
* Thu Jan 10 2008 bk@suse.de
- Add missing initialsation, fixes gpgsm crash in GPG's make check
* Mon Jul 30 2007 ltinkl@suse.cz
- update to 1.0.2
  * Support for SHA-2.
  * Fixed a couple of memory leaks.
  * Experimental support for ECDSA.
  * Minor portability fixes.
  * Switched to GPLv3.
* Tue Sep 12 2006 pnemec@suse.cz
- updated to 1.0.0 by diff from author
  - change in api
* Mon Sep 11 2006 pnemec@suse.cz
- updated to 0.9.16
  Fixed a character set conversion bug in BMPStrings
  Added new api functions, see readme.
* Fri Jun 23 2006 pnemec@suse.cz
- updated to 0.9.15 from CVS!
  fixed security bug #177462
* Thu May 25 2006 pnemec@suse.cz
- updated to version 0.9.14
  * Fixed broken OCSP requests.
  * Ignore invalid bytes appended to a certificate.
  * New functions to associate user data with a certificate object.
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Sep 27 2005 mls@suse.de
- make devel package require base package
* Fri Aug 05 2005 postadal@suse.cz
- updated to version 0.9.12
* Mon Jul 11 2005 postadal@suse.cz
- updated to version 0.9.11
- removed obsoleted patch autoconf-fix.diff
* Wed Jan 12 2005 postadal@suse.cz
- update to version 0.9.10
* Thu Sep 30 2004 postadal@suse.cz
- restored autoconf-fix.diff patch removed by last update [#36193, #46036]
  (fixed autoconf issue - quoted definition of AM_PATH_KSBA)
* Wed Jul 28 2004 adrian@suse.de
- update to version 0.9.8
* Wed Jul 14 2004 adrian@suse.de
- create -devel sub package
- prepare for nld
* Mon Jul 12 2004 adrian@suse.de
- update to version 0.9.7
* Wed Mar 17 2004 postadal@suse.cz
- fixed autoconf issue (quoted definition of AM_PATH_KSBA) [#36193]
* Tue Feb 10 2004 postadal@suse.cz
- fixed code that broke strict aliasing
- bziped tarball
* Sun Jan 11 2004 adrian@suse.de
- add %%run_ldconfig
* Mon Jun 02 2003 mc@suse.de
- switch to version 0.4.7
  This fixes a problem mainly relevant to certificate request
  creation (if you must use the ugly way of putting the email
  address into the subject DN)
* Thu Feb 20 2003 mc@suse.de
- initial version
openSUSE Build Service is sponsored by