opensc/opensc.spec

194 lines
5.4 KiB
RPMSpec

#
# spec file for package opensc (Version 0.11.1)
#
# Copyright (c) 2006 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.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: opensc
BuildRequires: openssl-devel pkgconfig readline-devel xorg-x11-devel
%if %suse_version > 1000
BuildRequires: libassuan pcsc-lite-devel
%endif
%if %suse_version > 1010
BuildRequires: openct-devel
%endif
URL: http://www.opensc-project.org/opensc/
Version: 0.11.1
Release: 1
Group: Hardware/Other
Summary: OpenSC Smart Card Library
License: LGPL
Requires: pcsc-lite
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source: opensc-%{version}.tar.bz2
Source1: http://www.opensc.org/files/doc/init_perso_guide.html
AutoReqProv: on
%description
OpenSC provides a set of libraries and utilities to access smart cards.
Its main focus is 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 so 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.
Authors:
--------
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>
%package devel
Group: Development/Libraries/Other
Summary: Additional files needed for OpenSC development
Requires: %{name} = %{version} glibc-devel openct-devel openssl-devel pcsc-lite-devel
%description devel
This package contains files required to develop applications using the
OpenSC framework.
Authors:
--------
Juha Yrjölä <juha.yrjola@iki.fi>
Antti Tapaninen <aet@cc.hut.fi>
Timo Teräs <timo.teras@iki.fi>
Olaf Kirch <okir@caldera.de>
%prep
%setup -q
%build
rm -f aclocal/libtool.m4
libtoolize --force
#./bootstrap
CFLAGS="$RPM_OPT_FLAGS" \
./configure --prefix=/usr \
--sysconfdir=%{_sysconfdir} \
--mandir=%{_mandir} \
--libdir=%{_libdir}
make %{?jobs:-j %jobs}
%install
make install DESTDIR=$RPM_BUILD_ROOT
# Install opensc.conf
mkdir -p $RPM_BUILD_ROOT/etc
install -m 644 etc/opensc.conf $RPM_BUILD_ROOT/etc
# Copy init_perso.html to docs so it's installed
cp %{SOURCE1} .
%clean
rm -rf $RPM_BUILD_ROOT
%post
%run_ldconfig
%postun
%run_ldconfig
%files
%defattr(-,root,root)
%doc COPYING NEWS README doc init_perso_guide.html
%config /etc/opensc.conf
/usr/bin/*-crypt
/usr/bin/*-explorer
/usr/bin/*-info
/usr/bin/*-init
/usr/bin/*-tool
/usr/bin/eidenv
%_libdir/*.so.*
# Note: Required by ltdl:
%_libdir/*.la
%_libdir/*.so
/usr/share/opensc
%_mandir/man?/*
%files devel
%defattr(-,root,root)
/usr/bin/*-config
/usr/include/opensc
%_libdir/*.a
%_libdir/pkgconfig/*.pc
%changelog -n opensc
* Mon Oct 02 2006 - sbrabec@suse.cz
- Updated to version 0.11.1:
* Update for piv pkcs#15 emulation
* Improved TCOS driver for Uni Giesen Card
* Handle size_t printf with "%%lu" and (unsigned long) cast
* Add support for d-trust cards / improve micardo 2.1 driver
* Thu May 25 2006 - sbrabec@suse.cz
- Fixed build for old SuSE Linux versions.
* Thu May 11 2006 - sbrabec@suse.cz
- Fixed devel dependencies.
* Wed May 10 2006 - sbrabec@suse.cz
- Updated to version 0.11.0.
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Jan 05 2006 - ro@suse.de
- added unpackaged so-links to devel filelist
* Tue Oct 25 2005 - rhafer@suse.de
- added LDAP_DEPRECATED to CFLAGS to build correctly with·
OpenLDAP 2.3
* Fri Sep 02 2005 - okir@suse.de
- Removed +x permissions on opensc.conf (#114849)
* Thu Jul 14 2005 - okir@suse.de
- Updated to latest upstream version
- Added missing documentation files (#75425)
* Fri Mar 04 2005 - meissner@suse.de
- fixed gcc4 compilation.
* Fri Jan 21 2005 - okir@suse.de
- Updated to latest upstream version (0.9.4)
* Thu Nov 18 2004 - ro@suse.de
- use kerberos-devel-packages
* Mon Jul 19 2004 - adrian@suse.de
- fix file list
* Mon Jul 12 2004 - adrian@suse.de
- update to version 0.8.1
* Fri Mar 19 2004 - okir@suse.de
- Fixed permissions and path names of some include files (#36432)
* Fri Jan 16 2004 - kukuk@suse.de
- Add pam-devel to neededforbuild
* Sat Jan 10 2004 - adrian@suse.de
- add %%run_ldconfig and %%defattr
* Mon Aug 04 2003 - okir@suse.de
- Build fixes for x86_64/ppc64
- use a version string other than "CVS" (#28423)
* Fri Aug 01 2003 - okir@suse.de
- Updated to most recent upstream snapshot
* Thu Jun 12 2003 - kukuk@suse.de
- Fix filelist and permissions
* Wed Jun 04 2003 - ro@suse.de
- added rest of static libs to devel filelist
- remove unpackaged files from buildroot
* Wed Jan 15 2003 - ro@suse.de
- use sasl2
* Thu Dec 05 2002 - okir@suse.de
- fixed x86_64 build problem
- updated to latest upstream
* Fri Nov 29 2002 - okir@suse.de
- updated to current CVS snapshot
* Fri Aug 09 2002 - okir@suse.de
- added missing libs to files list
* Thu Jul 04 2002 - ro@suse.de
- added heimdal-devel to neededforbuild to make libtool happy
* Fri Jun 28 2002 - schwab@suse.de
- Fix bootstrap script.
- Use correct libtool macros.
* Mon May 27 2002 - sf@suse.de
- @libdir@ added to Makefile.am to use correct dirs for
*/lib */lib64
* Tue Apr 30 2002 - okir@suse.de
- Initial check-in