]> git.pld-linux.org Git - packages/qesteidutil.git/blame - qesteidutil.spec
fix QtSingleApplication link with qt5
[packages/qesteidutil.git] / qesteidutil.spec
CommitLineData
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
9Summary: Estonian ID card utility
10Name: qesteidutil
7dca1765 11Version: 3.12.10
cbd742cb 12Release: 1
ff9ad974
ER
13License: LGPL v2+
14Group: X11/Applications
7dca1765
ER
15Source0: https://github.com/open-eid/qesteidutil/releases/download/v%{version}/%{name}-%{version}.tar.gz
16# Source0-md5: 4e3805d3449e94427a67f5dfe7bae3c9
f788d81b 17Patch0: system_qtsingleapplication.patch
49ca6d3d 18Patch1: desktop.patch
7dca1765
ER
19URL: https://github.com/open-eid/qesteidutil
20BuildRequires: Qt5Core-devel
21BuildRequires: Qt5Network-devel
22BuildRequires: Qt5SingleApplication-devel
23BuildRequires: Qt5Widgets-devel
24BuildRequires: cmake >= 3.0
ff9ad974 25BuildRequires: desktop-file-utils
97989b11 26BuildRequires: libstdc++-devel
ff9ad974 27BuildRequires: openssl-devel
de3b63bb 28BuildRequires: pcsc-lite-devel
646e359d
ER
29BuildRequires: qt5-build
30BuildRequires: qt5-linguist
de3b63bb 31BuildRequires: qt5-qmake
649204b2
AF
32Requires(post,postun): gtk-update-icon-cache
33Requires(post,postun): hicolor-icon-theme
ff9ad974
ER
34Requires: hicolor-icon-theme
35BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36
37%description
38QEsteidUtil is an application for managing Estonian ID Card. In an
39user-friendly interface it is possible to change and unlock PINs,
40examine detailed information about personal data file on the card,
41extract 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 50rm -r common/qtsingleapplication
ff9ad974
ER
51
52%build
53install -d build
54cd build
cbd742cb 55%cmake \
ad1b60ef
ER
56%if %{without breakpad}
57 -DBREAKPAD="" \
cbd742cb
ER
58%endif
59 ..
ff9ad974
ER
60%{__make}
61
62%install
63rm -rf $RPM_BUILD_ROOT
64%{__make} -C build install \
65 DESTDIR=$RPM_BUILD_ROOT
66
67desktop-file-validate $RPM_BUILD_ROOT%{_desktopdir}/qesteidutil.desktop
68
69%clean
70rm -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
This page took 0.067796 seconds and 4 git commands to generate.