2007-01-16 00:28:14 +01:00
|
|
|
#
|
2012-06-13 07:08:04 +02:00
|
|
|
# spec file for package opensc
|
2007-01-16 00:28:14 +01:00
|
|
|
#
|
2016-08-23 09:26:09 +02:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-01-16 00:28:14 +01:00
|
|
|
#
|
2008-09-01 15:27:38 +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:28:14 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2011-09-29 20:07:13 +02:00
|
|
|
|
2007-01-16 00:28:14 +01:00
|
|
|
Name: opensc
|
2016-08-23 09:26:09 +02:00
|
|
|
Version: 0.16.0
|
2012-06-13 07:08:04 +02:00
|
|
|
Release: 0
|
2011-01-11 14:35:58 +01:00
|
|
|
Summary: Smart Card Utilities
|
2012-06-13 07:08:04 +02:00
|
|
|
License: LGPL-2.1+
|
2015-08-07 18:14:19 +02:00
|
|
|
Group: Productivity/Security
|
2016-08-23 09:26:09 +02:00
|
|
|
Url: https://github.com/OpenSC/OpenSC/wiki
|
2015-02-28 10:30:12 +01:00
|
|
|
Source: %{name}-%{version}.tar.gz
|
2009-05-15 22:30:13 +02:00
|
|
|
Source1: %{name}-ADVISORIES
|
2008-02-08 20:18:04 +01:00
|
|
|
Source2: %{name}-rpmlintrc
|
2015-08-07 18:14:19 +02:00
|
|
|
# Register with p11-kit
|
|
|
|
# https://www.opensc-project.org/opensc/ticket/390
|
2016-08-23 09:26:09 +02:00
|
|
|
Source3: opensc.module
|
|
|
|
BuildRequires: docbook-xsl-stylesheets
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: libxslt
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
BuildRequires: pcsc-lite-devel
|
|
|
|
BuildRequires: pkg-config
|
|
|
|
BuildRequires: readline-devel
|
2011-01-11 14:35:58 +01:00
|
|
|
Requires: pcsc-lite
|
|
|
|
# There is no more devel package.
|
|
|
|
Obsoletes: opensc-devel < %{version}
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-01-16 00:28:14 +01:00
|
|
|
|
|
|
|
%description
|
2011-01-11 14:35:58 +01:00
|
|
|
OpenSC provides a set of utilities to access smart cards. It mainly
|
|
|
|
focuses on cards that support cryptographic operations. It facilitates
|
|
|
|
their use in security applications such as mail encryption,
|
2007-07-27 15:42:57 +02:00
|
|
|
authentication, and digital signature. OpenSC implements the PKCS#11
|
2008-09-13 06:31:55 +02:00
|
|
|
API. Applications supporting this API, such as Mozilla Firefox and
|
2011-01-11 14:35:58 +01:00
|
|
|
Thunderbird, can use it. OpenSC implements the PKCS#15 standard and aims
|
|
|
|
to be compatible with every software that does so, too.
|
2007-07-27 15:42:57 +02:00
|
|
|
|
2011-01-11 14:35:58 +01:00
|
|
|
Before purchasing any cards, please read carefully documentation on the
|
|
|
|
web pageonly some cards are supported. Not only card type matters, but
|
|
|
|
also card version, card OS version and preloaded applet. Only subset of
|
|
|
|
possible operations may be supported for your card. Card initialization
|
|
|
|
may require third party proprietary software.
|
2007-07-27 15:42:57 +02:00
|
|
|
|
2007-01-16 00:28:14 +01:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2016-08-23 09:26:09 +02:00
|
|
|
cp -a %{SOURCE1} ADVISORIES
|
2007-01-16 00:28:14 +01:00
|
|
|
|
|
|
|
%build
|
2016-08-23 09:26:09 +02:00
|
|
|
%if 0%{?suse_version} > 1100
|
2007-07-27 15:42:57 +02:00
|
|
|
autoreconf -f -i
|
2009-04-18 14:02:39 +02:00
|
|
|
%endif
|
2008-02-08 20:18:04 +01:00
|
|
|
%configure\
|
2008-09-13 06:31:55 +02:00
|
|
|
--docdir=%{_docdir}/%{name}\
|
|
|
|
--disable-static\
|
2011-01-11 14:35:58 +01:00
|
|
|
--enable-doc
|
2016-08-23 09:26:09 +02:00
|
|
|
make %{?_smp_mflags}
|
2007-01-16 00:28:14 +01:00
|
|
|
|
|
|
|
%install
|
2016-08-23 09:26:09 +02:00
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}
|
|
|
|
mkdir -p %{buildroot}%{_libdir}/pkcs11
|
|
|
|
make %{?_smp_mflags} DESTDIR=%{buildroot} install
|
|
|
|
cp COPYING ADVISORIES NEWS README %{buildroot}%{_docdir}/%{name}
|
2011-01-11 14:35:58 +01:00
|
|
|
# Private library.
|
2016-08-23 09:26:09 +02:00
|
|
|
rm %{buildroot}%{_libdir}/libopensc.so
|
|
|
|
install -D -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/pkcs11/modules/opensc.module
|
2007-01-16 00:28:14 +01:00
|
|
|
|
2011-01-11 14:35:58 +01:00
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
2007-01-16 00:28:14 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2008-09-13 06:31:55 +02:00
|
|
|
%doc %dir %{_docdir}/%{name}
|
2009-05-15 22:30:13 +02:00
|
|
|
%doc %{_docdir}/%{name}/ADVISORIES
|
2008-09-13 06:31:55 +02:00
|
|
|
%doc %{_docdir}/%{name}/COPYING
|
|
|
|
%doc %{_docdir}/%{name}/NEWS
|
|
|
|
%doc %{_docdir}/%{name}/README
|
|
|
|
%doc %{_docdir}/%{name}/tools.html
|
2007-07-27 15:42:57 +02:00
|
|
|
%{_bindir}/*
|
|
|
|
%{_datadir}/opensc
|
|
|
|
# Note: .la and .so must be in the main package, required by ltdl:
|
|
|
|
%{_libdir}/*.la
|
2015-02-28 10:30:12 +01:00
|
|
|
%{_libdir}/*.so*
|
2008-09-13 06:31:55 +02:00
|
|
|
%dir %{_libdir}/pkcs11
|
|
|
|
%{_libdir}/pkcs11/*.so
|
2016-08-23 09:26:09 +02:00
|
|
|
%{_mandir}/man?/*.*
|
2007-07-27 15:42:57 +02:00
|
|
|
%config %{_sysconfdir}/opensc.conf
|
2015-08-07 18:14:19 +02:00
|
|
|
%dir %{_sysconfdir}/pkcs11
|
|
|
|
%config %{_sysconfdir}/pkcs11/modules/
|
|
|
|
%{_sysconfdir}/bash_completion.d/*
|
2011-01-11 14:35:58 +01:00
|
|
|
# This is a private library. There is no reason to split it to libopensc* package.
|
|
|
|
%{_libdir}/libopensc.so.*
|
2007-01-16 00:28:14 +01:00
|
|
|
|
2007-03-01 22:07:42 +01:00
|
|
|
%changelog
|