# Copyright (c) 2014 Philipp Thomas # # 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/ %define real_version 4.0.6 Name: eid-mw Version: %{real_version}+1620 Release: 1 %define pkg_version %{real_version}-1620 %define src_tag _tcm444-258906 License: LGPL-3.0+ Group: Productivity/Security URL: http://eid.belgium.be/en/using_your_eid/installing_the_eid_software/linux/ Summary: Belgium electronic identity card PKCS#11 module and Firefox plugin Source: %{name}-%{pkg_version}%{src_tag}.tar.gz Source1: baselibs.conf #Source2: eid-mw-rpmlintrc Patch1: eid-mw-add_missing_includes.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: gtk2-devel BuildRequires: pcsc-lite-devel Requires(pre): /sbin/chkconfig BuildRequires: autoconf automake libtool BuildRequires: subversion %if 0%{?suse_version} Requires: pcsc-ccid BuildRequires: gcc-c++ BuildRequires: gcc-c++ make glibc-devel pkgconfig BuildRequires: update-desktop-files BuildRequires: MozillaFirefox Recommends: pcsc-acr38 BuildRequires: pcsc-acr38 Recommends: pcsc-lite BuildRequires: pcsc-lite Recommends: zip BuildRequires: zip %else Requires: ccid %endif Conflicts: openct %description The eID Middleware provides the libraries, a PKCS#11 module and a Firefox plugin to use Belgian eID (electronic identity) card in order to access websites and/or sign documents. This package contains a few helper programs needed by the eID Middleware and the infrastructure for eid-mw. %package devel Summary: Belgium electronic identity card PKCS#11 module - development package Requires: eid-mw = %{version} Group: Development/Libraries/C and C++ %description devel The eID Middleware provides the libraries, a PKCS#11 module and a Firefox plugin to use Belgian eID (electronic identity) card in order to access websites and/or sign documents. This package contains the files needed to develop against the eID Middleware. %package libs Summary: Belgium electronic identity card PKCS#11 module - libraries Group: System/Libraries %description libs The eID Middleware provides the libraries, a PKCS#11 module and a Firefox plugin to use Belgian eID (electronic identity) card in order to access websites and/or sign documents. This package contains the actual libraries. %package firefox Summary: Firefox Extension for Belgium eID Middleware Group: Productivity/Networking/Web/Browsers Recommends: MozillaFirefox %description firefox Mozilla Firefox extension for using the Belgian eID (electronic identity card). %prep %setup -q -n %{name}-%{real_version} %patch1 %build %configure \ --with-mozext="%{_datadir}/mozilla/extensions" \ --enable-dialogs=yes \ --disable-static %{__make} %{?_smp_mflags} %install make DESTDIR="%{buildroot}" install %post -n eid-mw-libs /sbin/ldconfig %post -n eid-mw-firefox if /usr/bin/pgrep 'firefox' &>/dev/null; then echo "INFO: You may have to restart Firefox for the Belgium eID add-on to work." >&2 elif /usr/bin/pgrep 'iceweasel' &>/dev/null; then echo "INFO: You may have to restart Iceweasel for the Belgium eID add-on to work." >&2 fi %postun -n eid-mw-libs /sbin/ldconfig ### Make pcscd reread configuration and rescan USB bus. if /sbin/service pcscd status &>/dev/null; then %{_sbindir}/pcscd -H &>/dev/null || : fi %files %defattr(-, root, root, 0755) %doc AUTHORS COPYING ChangeLog README %exclude %{_libdir}/*.la %{_libexecdir}/beid-askaccess %{_libexecdir}/beid-askpin %{_libexecdir}/beid-badpin %{_libexecdir}/beid-changepin %{_libexecdir}/beid-spr-askpin %{_libexecdir}/beid-spr-changepin %files libs %defattr(-,root,root) %{_libdir}/libbeidpkcs11.so.* %{_libdir}/libbeidcommon.so.* %files firefox %defattr(-,root,root) %dir %{_datadir}/mozilla/ %{_datadir}/mozilla/extensions/belgiumeid@eid.belgium.be %files devel %defattr(-,root,root) %{_libdir}/libbeidpkcs11.so %{_libdir}/libbeiddialogs.so %{_libdir}/libbeidcardlayer.so %{_libdir}/libbeidcommon.so %changelog