forked from pool/libp11
This commit is contained in:
committed by
Git OBS Bridge
parent
7f8bf75aa1
commit
74f063623c
63
libp11.spec
63
libp11.spec
@@ -1,10 +1,17 @@
|
||||
#
|
||||
# spec file for package libp11 (Version 0.2.3)
|
||||
# spec file for package libp11 (Version 0.2.4)
|
||||
#
|
||||
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# This file and all modifications and additions to the pristine
|
||||
# package are under the same license as the package itself.
|
||||
#
|
||||
# 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/
|
||||
#
|
||||
|
||||
@@ -12,14 +19,17 @@
|
||||
|
||||
|
||||
Name: libp11
|
||||
Version: 0.2.3
|
||||
Release: 3
|
||||
Version: 0.2.4
|
||||
Release: 1
|
||||
Url: http://www.opensc-project.org/libp11/
|
||||
Group: Productivity/Security
|
||||
License: LGPL v2.1 or later
|
||||
Summary: Library Implementing a Small Layer on Top of PKCS#11 API
|
||||
Source: %{name}-%{version}.tar.bz2
|
||||
# All three following patches were sent to upstream:
|
||||
Patch: libp11-strict-aliasing.patch
|
||||
Patch1: libp11-api-fix.patch
|
||||
Patch2: libp11-api-update.patch
|
||||
BuildRequires: openssl-devel pkg-config zlib-devel
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
@@ -45,14 +55,14 @@ Authors:
|
||||
Olaf Kirch
|
||||
Stef Hoeben
|
||||
|
||||
%package -n libp11-0
|
||||
%package -n libp11-1
|
||||
License: LGPL v2.1 or later
|
||||
Group: Productivity/Security
|
||||
Summary: Library Implementing a Small Layer on Top of PKCS#11 API
|
||||
Provides: %{name} = %{version}
|
||||
Obsoletes: %{name} <= %{version}
|
||||
|
||||
%description -n libp11-0
|
||||
%description -n libp11-1
|
||||
Libp11 is a library implementing a small layer on top of PKCS#11 API to
|
||||
make using PKCS#11 implementations easier.
|
||||
|
||||
@@ -78,7 +88,7 @@ Authors:
|
||||
License: LGPL v2.1 or later
|
||||
Group: Development/Libraries/C and C++
|
||||
Summary: Library Implementing a Small Layer on Top of PKCS#11 API
|
||||
Requires: libp11-0 = %{version} glibc-devel openssl-devel libtool
|
||||
Requires: libp11-1 = %{version} glibc-devel openssl-devel libtool zlib-devel
|
||||
|
||||
%description devel
|
||||
Libp11 is a library implementing a small layer on top of PKCS#11 API to
|
||||
@@ -105,45 +115,50 @@ Authors:
|
||||
%prep
|
||||
%setup -q
|
||||
%patch
|
||||
%patch1
|
||||
%patch2
|
||||
|
||||
%build
|
||||
%configure
|
||||
%configure\
|
||||
--enable-doc\
|
||||
--docdir=%{_docdir}/libp11-1\
|
||||
--enable-api-doc\
|
||||
--with-apidocdir=%{_docdir}/%{name}-devel
|
||||
make %{?jobs:-j%jobs}
|
||||
|
||||
%install
|
||||
%makeinstall
|
||||
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name} $RPM_BUILD_ROOT%{_docdir}/libp11-0
|
||||
cp -a COPYING NEWS doc/README doc/ChangeLog doc/*.css doc/*.html $RPM_BUILD_ROOT%{_docdir}/libp11-0
|
||||
cp -a doc/api $RPM_BUILD_ROOT%{_docdir}/%{name}
|
||||
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name} $RPM_BUILD_ROOT%{_docdir}/libp11-1
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%post -n libp11-0 -p /sbin/ldconfig
|
||||
%post -n libp11-1 -p /sbin/ldconfig
|
||||
|
||||
%postun -n libp11-0 -p /sbin/ldconfig
|
||||
%postun -n libp11-1 -p /sbin/ldconfig
|
||||
|
||||
%files -n libp11-0
|
||||
%files -n libp11-1
|
||||
%defattr (-, root, root)
|
||||
%doc %dir %{_docdir}/libp11-0
|
||||
%doc %{_docdir}/libp11-0/COPYING
|
||||
%doc %{_docdir}/libp11-0/NEWS
|
||||
%doc %{_docdir}/libp11-0/README
|
||||
%doc %{_docdir}/libp11-0/ChangeLog
|
||||
%doc %{_docdir}/libp11-0/*.html
|
||||
%doc %{_docdir}/libp11-0/*.css
|
||||
%doc %{_docdir}/libp11-1
|
||||
%{_libdir}/*.so.*
|
||||
|
||||
%files devel
|
||||
%defattr (-, root, root)
|
||||
%doc %dir %{_docdir}/%{name}
|
||||
%doc %{_docdir}/%{name}/api
|
||||
%doc %{_docdir}/%{name}-devel
|
||||
%{_includedir}/*.h
|
||||
%{_libdir}/*.so
|
||||
%{_libdir}/*.*a
|
||||
%{_libdir}/pkgconfig/*.pc
|
||||
|
||||
%changelog
|
||||
* Tue Aug 19 2008 sbrabec@suse.cz
|
||||
- Updated to version 0.2.4:
|
||||
* Build system rewritten
|
||||
* added PKCS11_CTX_init_args
|
||||
* fix segfault in init_args code
|
||||
* implemented PKCS11_private_encrypt
|
||||
- Fixed incorrect API.
|
||||
- Fixed x86_64 issues.
|
||||
* Thu Apr 10 2008 ro@suse.de
|
||||
- added baselibs.conf file to build xxbit packages
|
||||
for multilib support
|
||||
|
||||
Reference in New Issue
Block a user