2007-01-16 00:22:18 +01:00
|
|
|
#
|
2010-12-03 13:01:36 +01:00
|
|
|
# spec file for package libksba (Version 1.1.0)
|
2007-01-16 00:22:18 +01:00
|
|
|
#
|
2010-08-24 17:38:00 +02:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:22:18 +01:00
|
|
|
#
|
2008-09-26 14:58:25 +02:00
|
|
|
# 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.
|
|
|
|
|
2007-01-16 00:22:18 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2008-06-26 16:56:36 +02:00
|
|
|
|
2007-01-16 00:22:18 +01:00
|
|
|
Name: libksba
|
2010-12-03 13:01:36 +01:00
|
|
|
Version: 1.1.0
|
|
|
|
Release: 2
|
2010-08-24 17:38:00 +02:00
|
|
|
License: GPLv3+
|
2007-01-16 00:22:18 +01:00
|
|
|
Summary: A X.509 Library
|
2010-12-03 13:01:36 +01:00
|
|
|
Url: http://www.gnupg.org/aegypten/
|
|
|
|
Group: Development/Libraries/C and C++
|
2007-01-16 00:22:18 +01:00
|
|
|
# change also name and nfb
|
|
|
|
%define nld_build 0
|
2007-08-02 22:35:06 +02:00
|
|
|
Source: libksba-%{version}.tar.bz2
|
2007-01-16 00:22:18 +01:00
|
|
|
Patch1: nld-build.diff
|
2010-12-03 13:01:36 +01:00
|
|
|
BuildRequires: libgpg-error-devel >= 1.8
|
2008-09-26 14:58:25 +02:00
|
|
|
PreReq: %install_info_prereq
|
2010-12-03 13:01:36 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-01-16 00:22:18 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
KSBA is a library to simplify the task of working with X.509
|
|
|
|
certificates, CMS data, and related data.
|
|
|
|
|
|
|
|
%package devel
|
2010-08-24 17:38:00 +02:00
|
|
|
License: GPLv2+ ; MIT License (or similar)
|
2007-01-16 00:22:18 +01:00
|
|
|
Summary: A X.509 Library
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
%if %nld_build
|
|
|
|
Conflicts: libksba-devel
|
|
|
|
%else
|
2010-12-03 13:01:36 +01:00
|
|
|
Requires: libgpg-error-devel
|
|
|
|
Requires: libksba = %{version}
|
2007-01-16 00:22:18 +01:00
|
|
|
Provides: libksba:/usr/include/ksba.h
|
|
|
|
%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.
|
|
|
|
|
|
|
|
%prep
|
2007-08-02 22:35:06 +02:00
|
|
|
%setup -q -n libksba-%{version}
|
2007-01-16 00:22:18 +01:00
|
|
|
%if %nld_build
|
|
|
|
%patch1
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%build
|
|
|
|
autoreconf -fi
|
2009-04-18 14:01:25 +02:00
|
|
|
%configure --disable-static --with-pic
|
2010-12-03 13:01:36 +01:00
|
|
|
make %{?_smp_mflags}
|
2007-01-16 00:22:18 +01:00
|
|
|
|
2008-01-12 02:54:42 +01:00
|
|
|
%check
|
|
|
|
make check
|
|
|
|
|
2007-01-16 00:22:18 +01:00
|
|
|
%install
|
2010-12-03 13:01:36 +01:00
|
|
|
%make_install
|
|
|
|
rm -fv %{buildroot}%{_libdir}/*.la
|
2007-01-16 00:22:18 +01:00
|
|
|
|
2008-01-12 02:54:42 +01:00
|
|
|
%post -p /sbin/ldconfig
|
2007-01-16 00:22:18 +01:00
|
|
|
|
2008-01-12 02:54:42 +01:00
|
|
|
%postun -p /sbin/ldconfig
|
2007-01-16 00:22:18 +01:00
|
|
|
|
|
|
|
%clean
|
2009-01-14 01:47:57 +01:00
|
|
|
rm -rf %{buildroot}
|
2007-01-16 00:22:18 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2007-08-02 22:35:06 +02:00
|
|
|
%doc README AUTHORS COPYING ChangeLog NEWS THANKS TODO
|
2010-12-03 13:01:36 +01:00
|
|
|
%{_libdir}/libksba*.so.*
|
2007-01-16 00:22:18 +01:00
|
|
|
|
2008-09-26 14:58:25 +02:00
|
|
|
%post devel
|
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/ksba.info.gz
|
|
|
|
|
|
|
|
%postun devel
|
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/ksba.info.gz
|
|
|
|
|
2007-01-16 00:22:18 +01:00
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2010-12-03 13:01:36 +01:00
|
|
|
%{_bindir}/*
|
|
|
|
%{_libdir}/libksba*.so
|
|
|
|
%{_includedir}/*
|
|
|
|
%doc %{_infodir}/ksba*
|
|
|
|
%{_datadir}/aclocal/*
|
2007-01-16 00:22:18 +01:00
|
|
|
|
2007-08-02 22:35:06 +02:00
|
|
|
%changelog
|