]>
Commit | Line | Data |
---|---|---|
ad1b60ef ER |
1 | # |
2 | # Conditional build: | |
2af9cd25 | 3 | %bcond_with breakpad # build without breakpad crash reporting |
ad1b60ef ER |
4 | |
5 | %ifnarch %{arm} %{ix86} %{x8664} | |
6 | %undefine with_breakpad | |
7 | %endif | |
8 | ||
ff9ad974 ER |
9 | Summary: Estonian ID card utility |
10 | Name: qesteidutil | |
7dca1765 | 11 | Version: 3.12.10 |
cbd742cb | 12 | Release: 1 |
ff9ad974 ER |
13 | License: LGPL v2+ |
14 | Group: X11/Applications | |
7dca1765 ER |
15 | Source0: https://github.com/open-eid/qesteidutil/releases/download/v%{version}/%{name}-%{version}.tar.gz |
16 | # Source0-md5: 4e3805d3449e94427a67f5dfe7bae3c9 | |
f788d81b | 17 | Patch0: system_qtsingleapplication.patch |
49ca6d3d | 18 | Patch1: desktop.patch |
7dca1765 ER |
19 | URL: https://github.com/open-eid/qesteidutil |
20 | BuildRequires: Qt5Core-devel | |
21 | BuildRequires: Qt5Network-devel | |
22 | BuildRequires: Qt5SingleApplication-devel | |
23 | BuildRequires: Qt5Widgets-devel | |
24 | BuildRequires: cmake >= 3.0 | |
ff9ad974 | 25 | BuildRequires: desktop-file-utils |
97989b11 | 26 | BuildRequires: libstdc++-devel |
ff9ad974 | 27 | BuildRequires: openssl-devel |
de3b63bb | 28 | BuildRequires: pcsc-lite-devel |
646e359d ER |
29 | BuildRequires: qt5-build |
30 | BuildRequires: qt5-linguist | |
de3b63bb | 31 | BuildRequires: qt5-qmake |
649204b2 AF |
32 | Requires(post,postun): gtk-update-icon-cache |
33 | Requires(post,postun): hicolor-icon-theme | |
ff9ad974 ER |
34 | Requires: hicolor-icon-theme |
35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
36 | ||
37 | %description | |
38 | QEsteidUtil is an application for managing Estonian ID Card. In an | |
39 | user-friendly interface it is possible to change and unlock PINs, | |
40 | examine detailed information about personal data file on the card, | |
41 | extract and view certificates, set up mobile ID, and configure | |
42 | @eesti.ee email. | |
43 | ||
44 | %prep | |
45 | %setup -q | |
f788d81b | 46 | %patch0 -p1 |
49ca6d3d | 47 | %patch1 -p1 |
ff9ad974 ER |
48 | |
49 | # Remove bundled qtsingleapplication to make sure it isn't used | |
7dca1765 | 50 | rm -r common/qtsingleapplication |
ff9ad974 ER |
51 | |
52 | %build | |
53 | install -d build | |
54 | cd build | |
cbd742cb | 55 | %cmake \ |
ad1b60ef ER |
56 | %if %{without breakpad} |
57 | -DBREAKPAD="" \ | |
cbd742cb ER |
58 | %endif |
59 | .. | |
ff9ad974 ER |
60 | %{__make} |
61 | ||
62 | %install | |
63 | rm -rf $RPM_BUILD_ROOT | |
64 | %{__make} -C build install \ | |
65 | DESTDIR=$RPM_BUILD_ROOT | |
66 | ||
67 | desktop-file-validate $RPM_BUILD_ROOT%{_desktopdir}/qesteidutil.desktop | |
68 | ||
69 | %clean | |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | ||
72 | %post | |
73 | %update_icon_cache hicolor | |
74 | ||
75 | %postun | |
76 | %update_icon_cache hicolor | |
77 | ||
78 | %files | |
79 | %defattr(644,root,root,755) | |
cbd742cb | 80 | %doc AUTHORS README RELEASE-NOTES.txt |
ff9ad974 | 81 | %attr(755,root,root) %{_bindir}/qesteidutil |
dae84565 | 82 | %{_mandir}/man1/qesteidutil.1* |
ff9ad974 ER |
83 | %{_desktopdir}/qesteidutil.desktop |
84 | %{_iconsdir}/hicolor/*/apps/qesteidutil.png |