]>
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 |
cf7fd571 | 12 | Release: 2 |
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 |
417a77a8 | 19 | Patch2: qt-5.11.patch |
7dca1765 ER |
20 | URL: https://github.com/open-eid/qesteidutil |
21 | BuildRequires: Qt5Core-devel | |
22 | BuildRequires: Qt5Network-devel | |
23 | BuildRequires: Qt5SingleApplication-devel | |
24 | BuildRequires: Qt5Widgets-devel | |
6425e8cd | 25 | BuildRequires: appstream-glib |
7dca1765 | 26 | BuildRequires: cmake >= 3.0 |
ff9ad974 | 27 | BuildRequires: desktop-file-utils |
97989b11 | 28 | BuildRequires: libstdc++-devel |
ff9ad974 | 29 | BuildRequires: openssl-devel |
de3b63bb | 30 | BuildRequires: pcsc-lite-devel |
646e359d ER |
31 | BuildRequires: qt5-build |
32 | BuildRequires: qt5-linguist | |
de3b63bb | 33 | BuildRequires: qt5-qmake |
649204b2 AF |
34 | Requires(post,postun): gtk-update-icon-cache |
35 | Requires(post,postun): hicolor-icon-theme | |
ff9ad974 ER |
36 | Requires: hicolor-icon-theme |
37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
38 | ||
39 | %description | |
40 | QEsteidUtil is an application for managing Estonian ID Card. In an | |
41 | user-friendly interface it is possible to change and unlock PINs, | |
42 | examine detailed information about personal data file on the card, | |
43 | extract and view certificates, set up mobile ID, and configure | |
44 | @eesti.ee email. | |
45 | ||
46 | %prep | |
47 | %setup -q | |
f788d81b | 48 | %patch0 -p1 |
49ca6d3d | 49 | %patch1 -p1 |
417a77a8 | 50 | %patch2 -p1 |
ff9ad974 ER |
51 | |
52 | # Remove bundled qtsingleapplication to make sure it isn't used | |
7dca1765 | 53 | rm -r common/qtsingleapplication |
ff9ad974 ER |
54 | |
55 | %build | |
56 | install -d build | |
57 | cd build | |
cbd742cb | 58 | %cmake \ |
ad1b60ef ER |
59 | %if %{without breakpad} |
60 | -DBREAKPAD="" \ | |
cbd742cb ER |
61 | %endif |
62 | .. | |
ff9ad974 ER |
63 | %{__make} |
64 | ||
65 | %install | |
66 | rm -rf $RPM_BUILD_ROOT | |
67 | %{__make} -C build install \ | |
68 | DESTDIR=$RPM_BUILD_ROOT | |
69 | ||
70 | desktop-file-validate $RPM_BUILD_ROOT%{_desktopdir}/qesteidutil.desktop | |
6425e8cd | 71 | appstream-util validate-relax --nonet $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml |
ff9ad974 ER |
72 | |
73 | %clean | |
74 | rm -rf $RPM_BUILD_ROOT | |
75 | ||
76 | %post | |
77 | %update_icon_cache hicolor | |
78 | ||
79 | %postun | |
80 | %update_icon_cache hicolor | |
81 | ||
82 | %files | |
83 | %defattr(644,root,root,755) | |
61b7e015 | 84 | %doc AUTHORS README.md RELEASE-NOTES.md |
ff9ad974 | 85 | %attr(755,root,root) %{_bindir}/qesteidutil |
dae84565 | 86 | %{_mandir}/man1/qesteidutil.1* |
61b7e015 | 87 | %{_datadir}/appdata/qesteidutil.appdata.xml |
ff9ad974 ER |
88 | %{_desktopdir}/qesteidutil.desktop |
89 | %{_iconsdir}/hicolor/*/apps/qesteidutil.png |