]>
Commit | Line | Data |
---|---|---|
ff9ad974 ER |
1 | Summary: Estonian ID card utility |
2 | Name: qesteidutil | |
3 | Version: 0.3.0 | |
649204b2 | 4 | Release: 2 |
ff9ad974 ER |
5 | License: LGPL v2+ |
6 | Group: X11/Applications | |
7 | URL: http://code.google.com/p/esteid/ | |
8 | Source0: http://esteid.googlecode.com/files/%{name}-%{version}.tar.bz2 | |
9 | # Source0-md5: f91ddc6022ecf86753dc3492a8e33baf | |
10 | # Use system qtsingleapplication, backported from upstream SVN | |
11 | Patch0: %{name}-0.3.0-system_qtsingleapplication.patch | |
49ca6d3d | 12 | Patch1: desktop.patch |
ff9ad974 ER |
13 | BuildRequires: QtSingleApplication-devel |
14 | BuildRequires: QtWebKit-devel | |
15 | BuildRequires: cmake | |
16 | BuildRequires: desktop-file-utils | |
17 | BuildRequires: libp11-devel | |
18 | BuildRequires: openssl-devel | |
19 | BuildRequires: qt4-build | |
20 | BuildRequires: smartcardpp-devel | |
649204b2 AF |
21 | Requires(post,postun): gtk-update-icon-cache |
22 | Requires(post,postun): hicolor-icon-theme | |
ff9ad974 ER |
23 | Requires: hicolor-icon-theme |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %description | |
27 | QEsteidUtil is an application for managing Estonian ID Card. In an | |
28 | user-friendly interface it is possible to change and unlock PINs, | |
29 | examine detailed information about personal data file on the card, | |
30 | extract and view certificates, set up mobile ID, and configure | |
31 | @eesti.ee email. | |
32 | ||
33 | %prep | |
34 | %setup -q | |
35 | %patch0 -p0 | |
49ca6d3d | 36 | %patch1 -p1 |
ff9ad974 ER |
37 | |
38 | # Remove bundled qtsingleapplication to make sure it isn't used | |
39 | rm -rf qtsingleapplication | |
40 | ||
41 | %build | |
42 | install -d build | |
43 | cd build | |
44 | %cmake .. | |
45 | %{__make} | |
46 | ||
47 | %install | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | %{__make} -C build install \ | |
50 | DESTDIR=$RPM_BUILD_ROOT | |
51 | ||
52 | desktop-file-validate $RPM_BUILD_ROOT%{_desktopdir}/qesteidutil.desktop | |
53 | ||
54 | %clean | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %post | |
58 | %update_icon_cache hicolor | |
59 | ||
60 | %postun | |
61 | %update_icon_cache hicolor | |
62 | ||
63 | %files | |
64 | %defattr(644,root,root,755) | |
65 | %doc AUTHORS NEWS README | |
66 | %attr(755,root,root) %{_bindir}/qesteidutil | |
67 | %{_desktopdir}/qesteidutil.desktop | |
68 | %{_iconsdir}/hicolor/*/apps/qesteidutil.png |