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