Toshaan Bharvani
4 months ago
commit
d91ea69ee5
2 changed files with 54 additions and 0 deletions
@ -0,0 +1,54 @@ |
|||||||
|
Name: beidconnect |
||||||
|
Version: 2.10 |
||||||
|
Release: 1%{?dist} |
||||||
|
License: MIT |
||||||
|
Summary: BeIDConnect native messaging component |
||||||
|
Group: Applications/Communications |
||||||
|
Source: https://github.com/Fedict/fts-beidconnect/archive/refs/tags/%{version}.tar.gz |
||||||
|
BuildRequires: pcsc-lite-devel |
||||||
|
BuildRequires: boost-devel |
||||||
|
BuildRequires: gcc-c++ |
||||||
|
Requires: ccid |
||||||
|
Conflicts: openct |
||||||
|
|
||||||
|
|
||||||
|
%description |
||||||
|
The eIDlink is a program to help implementing digital signing services |
||||||
|
and/or an identity service using the Belgian eID card. It provides |
||||||
|
services to webbrowsers to read data from cards, and is intended to work |
||||||
|
together with a WebExtension in the browser. |
||||||
|
This package contains the native code. For the WebExtension, see your |
||||||
|
webbrowser's extension store. |
||||||
|
|
||||||
|
|
||||||
|
%prep |
||||||
|
%setup |
||||||
|
|
||||||
|
|
||||||
|
%build |
||||||
|
%{__make} %{?_smp_mflags} -C linux CFLAGS='%{optflags}' CXXFLAGS='%{optflags}' beidconnect |
||||||
|
|
||||||
|
|
||||||
|
%install |
||||||
|
%{__rm} -rf %{buildroot} |
||||||
|
%{__make} -C linux install DESTDIR="%{buildroot}" |
||||||
|
|
||||||
|
|
||||||
|
%clean |
||||||
|
%{__rm} -rf %{buildroot} |
||||||
|
|
||||||
|
|
||||||
|
%post |
||||||
|
if [ "$1" -gt 0 ]; then |
||||||
|
mkdir -p /etc/chromium/native-messaging-hosts |
||||||
|
mkdir -p /etc/opt/chrome/native-messaging-hosts |
||||||
|
mkdir -p /usr/lib/mozilla/native-messaging-hosts |
||||||
|
mkdir -p /usr/lib64/mozilla/native-messaging-hosts |
||||||
|
/usr/bin/beidconnect -setup /usr/bin/ /etc/chromium/native-messaging-hosts/ /usr/lib/mozilla/native-messaging-hosts/ |
||||||
|
cp /etc/chromium/native-messaging-hosts/be.bosa.beidconnect.json /etc/opt/chrome/native-messaging-hosts/ |
||||||
|
cp /usr/lib/mozilla/native-messaging-hosts/be.bosa.beidconnect.json /usr/lib64/mozilla/native-messaging-hosts/ |
||||||
|
fi |
||||||
|
|
||||||
|
%files |
||||||
|
%defattr(-, root, root, 0755) |
||||||
|
%{_bindir}/beidconnect |
Loading…
Reference in new issue