2007-01-16 00:28:14 +01:00
#
2010-04-23 19:28:32 +02:00
# spec file for package opensc (Version 0.11.13)
2007-01-16 00:28:14 +01:00
#
2010-02-18 16:47:32 +01:00
# Copyright (c) 2010 SUSE LINUX Products 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/
#
# norootforbuild
2008-04-10 15:18:04 +02:00
2007-01-16 00:28:14 +01:00
Name : opensc
2010-04-23 19:28:32 +02:00
BuildRequires : libassuan-devel >= 2.0.0
BuildRequires : libusb-devel
BuildRequires : openct-devel
BuildRequires : openssl-devel
BuildRequires : pcsc-lite-devel
BuildRequires : pkg-config
BuildRequires : readline-devel
BuildRequires : xorg-x11-devel
BuildRequires : libgpg-error-devel
2008-11-02 15:44:36 +01:00
# bug437293
%ifarch ppc64
Obsoletes : opensc-64bit
%endif
#
2008-02-08 20:18:04 +01:00
Url : http://www.opensc-project.org/opensc/
2010-04-23 19:28:32 +02:00
Version : 0.11.13
2010-08-24 17:28:39 +02:00
Release : 4
2008-04-10 15:18:04 +02:00
Group : Productivity/Security
2007-01-16 00:28:14 +01:00
Summary : OpenSC Smart Card Library
2010-02-18 16:47:32 +01:00
License : LGPLv2.1+
2010-04-23 19:28:32 +02:00
Requires : libopensc2 = %{version}
Requires : pcsc-lite
Requires : pinentry
2007-01-16 00:28:14 +01:00
BuildRoot : %{_tmppath} /%{name} -%{version} -build
2007-07-27 15:42:57 +02:00
Source : %{name} -%{version} .tar.bz2
2009-05-15 22:30:13 +02:00
Source1 : %{name} -ADVISORIES
2007-07-27 15:42:57 +02:00
# Supress all ugly warnings related to required .so and .la files in the main package:
2008-02-08 20:18:04 +01:00
Source2 : %{name} -rpmlintrc
# and also skip-check-libtool-deps (and add these dependencies to the devel package)
2010-02-18 16:47:32 +01:00
Source3 : baselibs.conf
2010-08-24 17:28:39 +02:00
# PATCH-FIX-UPSTREAM opensc-libassuan-2.patch http://www.opensc-project.org/opensc/ticket/217 puzel@novell.com -- allows to build with libassuan2
2010-04-23 19:28:32 +02:00
Patch0 : opensc-libassuan-2.patch
2010-08-24 17:28:39 +02:00
# PATCH-FIX-UPSTREAM opensc-fix-gcc-warnings.patch http://www.opensc-project.org/opensc/ticket/249 reddwarf@opensuse.org -- the card-myeid.c part has an equivalent fix in upstream's trunk
2010-04-23 19:28:32 +02:00
Patch1 : opensc-fix-gcc-warnings.patch
2010-08-24 17:28:39 +02:00
# PATCH-FIX-UPSTREAM opensc-plugindir.patch https://www.opensc-project.org/opensc/ticket/251 sbrabec@suse.cz -- clean plugin installation
Patch2 : opensc-plugindir.patch
2007-01-16 00:28:14 +01:00
%description
OpenSC provides a set of libraries and utilities to access smart cards.
2008-02-08 20:18:04 +01:00
It mainly focuses on cards that support cryptographic operations. It
2007-01-16 00:28:14 +01:00
facilitates their use in security applications such as mail encryption,
authentication, and digital signature. OpenSC implements the PKCS#11
2008-02-08 20:18:04 +01:00
API. Applications supporting this API, such as Mozilla Firefox and
2007-01-16 00:28:14 +01:00
Thunderbird, can use it. OpenSC implements the PKCS#15 standard and
aims to be compatible with every software that does so, too.
2008-09-13 06:31:55 +02:00
Before purchasing any cards, please read carefully documentation in
/usr/share/doc/packages/opensc/wiki/index.html - only 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-01-16 00:28:14 +01:00
2007-07-27 15:42:57 +02:00
Authors:
--------
Juha Yrj<EFBFBD> l<EFBFBD> <jyrjola@cc.hut.fi>
Antti Tapaninen <aet@cc.hut.fi>
Timo Ter<EFBFBD> s <timo.teras@iki.fi>
Olaf Kirch <okir@suse.de>
%package -n libopensc2
2010-02-18 16:47:32 +01:00
License : LGPLv2.1+
2007-07-27 15:42:57 +02:00
Group : System/Libraries
Summary : OpenSC Smart Card Library
%description -n libopensc2
OpenSC provides a set of libraries and utilities to access smart cards.
2008-09-13 06:31:55 +02:00
It mainly focuses on cards that support cryptographic operations. It
2007-07-27 15:42:57 +02:00
facilitates their use in security applications such as mail encryption,
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
2007-07-27 15:42:57 +02:00
Thunderbird, can use it. OpenSC implements the PKCS#15 standard and
aims to be compatible with every software that does so, too.
2008-09-13 06:31:55 +02:00
Before purchasing any cards, please read carefully documentation in
/usr/share/doc/packages/opensc/wiki/index.html - only 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
Authors:
--------
Juha Yrj<EFBFBD> l<EFBFBD> <jyrjola@cc.hut.fi>
Antti Tapaninen <aet@cc.hut.fi>
Timo Ter<EFBFBD> s <timo.teras@iki.fi>
Olaf Kirch <okir@suse.de>
%package devel
2010-02-18 16:47:32 +01:00
License : GPLv2+
2007-07-27 15:42:57 +02:00
Group : Development/Libraries/C and C++
2007-01-16 00:28:14 +01:00
Summary : Additional files needed for OpenSC development
2008-09-13 06:31:55 +02:00
# FIXME: Change to libtool-devel for the next libtool version:
Requires : %{name} = %{version} glibc-devel openct-devel libopenssl-devel zlib-devel libtool
2007-01-16 00:28:14 +01:00
%description devel
This package contains files required to develop applications using the
OpenSC framework.
Authors:
--------
Juha Yrj<EFBFBD> l<EFBFBD> <juha.yrjola@iki.fi>
Antti Tapaninen <aet@cc.hut.fi>
Timo Ter<EFBFBD> s <timo.teras@iki.fi>
Olaf Kirch <okir@caldera.de>
%prep
%setup -q
2010-04-23 19:28:32 +02:00
%patch0 -p1
%patch1 -p1
2010-08-24 17:28:39 +02:00
%patch2 -p1
2009-05-15 22:30:13 +02:00
tr -d '\r' <doc/nonpersistent/wiki.out/trac.css >doc/nonpersistent/wiki.out/trac.css~
touch -r doc/nonpersistent/wiki.out/trac.css doc/nonpersistent/wiki.out/trac.css~
mv doc/nonpersistent/wiki.out/trac.css~ doc/nonpersistent/wiki.out/trac.css
cp -a %{S:1} ADVISORIES
2007-01-16 00:28:14 +01:00
%build
2009-04-18 14:02:39 +02:00
%if %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\
--enable-doc\
--enable-pcsc\
--enable-openct\
--enable-nsplugin\
2010-04-23 19:28:32 +02:00
--with-pinentry=/usr/bin/pinentry\
2008-09-13 06:31:55 +02:00
--with-plugindir=%{_libdir} /browser-plugins
2007-07-27 15:42:57 +02:00
make %{?jobs:-j%jobs}
2007-01-16 00:28:14 +01:00
%install
2007-07-27 15:42:57 +02:00
%makeinstall
2010-08-24 17:28:39 +02:00
rm $RPM_BUILD_ROOT %{_libdir} /browser-plugins/*.la
2009-05-15 22:30:13 +02:00
cp COPYING ADVISORIES doc/nonpersistent/ChangeLog $RPM_BUILD_ROOT %{_docdir} /%{name}
2007-01-16 00:28:14 +01:00
%clean
rm -rf $RPM_BUILD_ROOT
2007-07-27 15:42:57 +02:00
%post -n libopensc2 -p /sbin/ldconfig
2007-01-16 00:28:14 +01:00
2007-07-27 15:42:57 +02:00
%postun -n libopensc2 -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} /ChangeLog
%doc %{_docdir} /%{name} /COPYING
%doc %{_docdir} /%{name} /NEWS
%doc %{_docdir} /%{name} /README
%doc %{_docdir} /%{name} /tools.html
%doc %{_docdir} /%{name} /wiki
2007-07-27 15:42:57 +02:00
%{_bindir} /*
%exclude %{_bindir} /*-config
%{_datadir} /opensc
# Note: .la and .so must be in the main package, required by ltdl:
%{_libdir} /*.la
%{_libdir} /*.so
2008-02-08 20:18:04 +01:00
%{_libdir} /browser-plugins/*.so
2008-09-13 06:31:55 +02:00
%dir %{_libdir} /pkcs11
%{_libdir} /pkcs11/*.so
2007-07-27 15:42:57 +02:00
%doc %{_mandir} /man?/*.*
%config %{_sysconfdir} /opensc.conf
%files -n libopensc2
%defattr (-,root,root)
%{_libdir} /*.so.*
2007-01-16 00:28:14 +01:00
%files devel
%defattr (-,root,root)
2008-09-13 06:31:55 +02:00
%doc %{_docdir} /%{name} /api.html
2007-07-27 15:42:57 +02:00
%{_bindir} /*-config
%{_includedir} /opensc
%{_libdir} /pkgconfig/*.pc
2007-01-16 00:28:14 +01:00
2007-03-01 22:07:42 +01:00
%changelog