]> git.pld-linux.org Git - SPECS.git/blob - qesteidutil.spec
SPECS updated Sun 1 Aug 15:50:02 CEST 2021
[SPECS.git] / qesteidutil.spec
1 #
2 # Conditional build:
3 %bcond_with     breakpad                # build without breakpad crash reporting
4
5 %ifnarch %{arm} %{ix86} %{x8664}
6 %undefine       with_breakpad
7 %endif
8
9 Summary:        Estonian ID card utility
10 Name:           qesteidutil
11 Version:        3.12.10
12 Release:        2
13 License:        LGPL v2+
14 Group:          X11/Applications
15 Source0:        https://github.com/open-eid/qesteidutil/releases/download/v%{version}/%{name}-%{version}.tar.gz
16 # Source0-md5:  4e3805d3449e94427a67f5dfe7bae3c9
17 Patch0:         system_qtsingleapplication.patch
18 Patch1:         desktop.patch
19 Patch2:         qt-5.11.patch
20 URL:            https://github.com/open-eid/qesteidutil
21 BuildRequires:  Qt5Core-devel
22 BuildRequires:  Qt5Network-devel
23 BuildRequires:  Qt5SingleApplication-devel
24 BuildRequires:  Qt5Widgets-devel
25 BuildRequires:  appstream-glib
26 BuildRequires:  cmake >= 3.0
27 BuildRequires:  desktop-file-utils
28 BuildRequires:  libstdc++-devel
29 BuildRequires:  openssl-devel
30 BuildRequires:  pcsc-lite-devel
31 BuildRequires:  qt5-build
32 BuildRequires:  qt5-linguist
33 BuildRequires:  qt5-qmake
34 Requires(post,postun):  gtk-update-icon-cache
35 Requires(post,postun):  hicolor-icon-theme
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
48 %patch0 -p1
49 %patch1 -p1
50 %patch2 -p1
51
52 # Remove bundled qtsingleapplication to make sure it isn't used
53 rm -r common/qtsingleapplication
54
55 %build
56 install -d build
57 cd build
58 %cmake \
59 %if %{without breakpad}
60         -DBREAKPAD="" \
61 %endif
62         ..
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
71 appstream-util validate-relax --nonet $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml
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)
84 %doc AUTHORS README.md RELEASE-NOTES.md
85 %attr(755,root,root) %{_bindir}/qesteidutil
86 %{_mandir}/man1/qesteidutil.1*
87 %{_datadir}/appdata/qesteidutil.appdata.xml
88 %{_desktopdir}/qesteidutil.desktop
89 %{_iconsdir}/hicolor/*/apps/qesteidutil.png
This page took 0.384598 seconds and 3 git commands to generate.