-
Notifications
You must be signed in to change notification settings - Fork 2
/
web-eid.spec
46 lines (34 loc) · 1.75 KB
/
web-eid.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
Name: web-eid
Version: VERSION
Release: 1%{?dist}
Summary: Use your eID card on the Web
License: Copyright
URL: https://web-eid.com
BuildRequires: qt5-qtbase-devel qt5-qtwebsockets-devel qt5-linguist pcsc-lite-devel
Requires: pcsc-lite opensc
%description
Use your eID card on the Web
%build
make QMAKE=qmake-qt5
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p %{buildroot}/%{_bindir}
install -p -m 755 src/web-eid %{buildroot}/%{_bindir}
mkdir -p %{buildroot}/%{_libexecdir}
install -p -m 755 src/nm-bridge/web-eid-bridge %{buildroot}/%{_libexecdir}
mkdir -p %{buildroot}/etc/opt/chrome/native-messaging-hosts
install -p -m 644 linux/org.hwcrypto.native.json %{buildroot}/etc/opt/chrome/native-messaging-hosts/org.hwcrypto.native.json
sed -i 's/\/usr\/lib/\/usr\/libexec/g' %{buildroot}/etc/opt/chrome/native-messaging-hosts/org.hwcrypto.native.json
mkdir -p %{buildroot}/etc/chromium/native-messaging-hosts
install -p -m 644 linux/org.hwcrypto.native.json %{buildroot}/etc/chromium/native-messaging-hosts/org.hwcrypto.native.json
sed -i 's/\/usr\/lib/\/usr\/libexec/g' %{buildroot}/etc/chromium/native-messaging-hosts/org.hwcrypto.native.json
mkdir -p %{buildroot}/usr/lib64/mozilla/native-messaging-hosts
install -p -m 644 linux/org.hwcrypto.native.firefox.json %{buildroot}/usr/lib64/mozilla/native-messaging-hosts/org.hwcrypto.native.json
sed -i 's/\/usr\/lib/\/usr\/libexec/g' %{buildroot}/usr/lib64/mozilla/native-messaging-hosts/org.hwcrypto.native.json
%files
%{_bindir}/web-eid
%{_libexecdir}/web-eid-bridge
/etc/opt/chrome/native-messaging-hosts/org.hwcrypto.native.json
/etc/chromium/native-messaging-hosts/org.hwcrypto.native.json
/usr/lib64/mozilla/native-messaging-hosts/org.hwcrypto.native.json
%license LICENSE