LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File opensc.spec of Package opensc (Project openSUSE:Factory)

# spec file for package opensc
# Copyright (c) 2012 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/

Name:           opensc
BuildRequires:  docbook-xsl-stylesheets
BuildRequires:  libtool
BuildRequires:  libxslt
BuildRequires:  openssl-devel
BuildRequires:  pcsc-lite-devel
BuildRequires:  pkg-config
BuildRequires:  readline-devel
Url:            http://www.opensc-project.org/opensc/
Version:        0.12.2
Release:        0
Summary:        Smart Card Utilities
License:        LGPL-2.1+
Group:          Productivity/Security
Source:         %{name}-%{version}.tar.bz2
Source1:        %{name}-ADVISORIES
Source2:        %{name}-rpmlintrc
Requires:       pcsc-lite
# There is no more devel package.
Obsoletes:      opensc-devel < %{version}
# This package is not supported any more. Last appeared in openSUSE 11.3, never appeared in SLE:
Obsoletes:      opensc-java <= 0.2.2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

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,
authentication, and digital signature. OpenSC implements the PKCS#11
API. Applications supporting this API, such as Mozilla Firefox and
Thunderbird, can use it. OpenSC implements the PKCS#15 standard and aims
to be compatible with every software that does so, too.

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.

    Juha Yrjölä <jyrjola@cc.hut.fi>
    Antti Tapaninen <aet@cc.hut.fi>
    Timo Teräs <timo.teras@iki.fi>
    Olaf Kirch <okir@suse.de>

%setup -q
cp -a %{S:1} ADVISORIES

%if %suse_version > 1100
autoreconf -f -i
make %{?jobs:-j%jobs}

mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}
mkdir -p $RPM_BUILD_ROOT%{_libdir}/pkcs11
# Private library.
rm $RPM_BUILD_ROOT%{_libdir}/libopensc.so


%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%doc %dir %{_docdir}/%{name}
%doc %{_docdir}/%{name}/ADVISORIES
%doc %{_docdir}/%{name}/ChangeLog
%doc %{_docdir}/%{name}/COPYING
%doc %{_docdir}/%{name}/NEWS
%doc %{_docdir}/%{name}/README
%doc %{_docdir}/%{name}/tools.html
# Note: .la and .so must be in the main package, required by ltdl:
%dir %{_libdir}/pkcs11
%doc %{_mandir}/man?/*.*
%config %{_sysconfdir}/opensc.conf
# This is a private library. There is no reason to split it to libopensc* package.