]> git.pld-linux.org Git - packages/qesteidutil.git/blame - qesteidutil.spec
- release 2 (by relup.sh)
[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
cf7fd571 12Release: 2
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
417a77a8 19Patch2: qt-5.11.patch
7dca1765
ER
20URL: https://github.com/open-eid/qesteidutil
21BuildRequires: Qt5Core-devel
22BuildRequires: Qt5Network-devel
23BuildRequires: Qt5SingleApplication-devel
24BuildRequires: Qt5Widgets-devel
6425e8cd 25BuildRequires: appstream-glib
7dca1765 26BuildRequires: cmake >= 3.0
ff9ad974 27BuildRequires: desktop-file-utils
97989b11 28BuildRequires: libstdc++-devel
ff9ad974 29BuildRequires: openssl-devel
de3b63bb 30BuildRequires: pcsc-lite-devel
646e359d
ER
31BuildRequires: qt5-build
32BuildRequires: qt5-linguist
de3b63bb 33BuildRequires: qt5-qmake
649204b2
AF
34Requires(post,postun): gtk-update-icon-cache
35Requires(post,postun): hicolor-icon-theme
ff9ad974
ER
36Requires: hicolor-icon-theme
37BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38
39%description
40QEsteidUtil is an application for managing Estonian ID Card. In an
41user-friendly interface it is possible to change and unlock PINs,
42examine detailed information about personal data file on the card,
43extract 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 53rm -r common/qtsingleapplication
ff9ad974
ER
54
55%build
56install -d build
57cd build
cbd742cb 58%cmake \
ad1b60ef
ER
59%if %{without breakpad}
60 -DBREAKPAD="" \
cbd742cb
ER
61%endif
62 ..
ff9ad974
ER
63%{__make}
64
65%install
66rm -rf $RPM_BUILD_ROOT
67%{__make} -C build install \
68 DESTDIR=$RPM_BUILD_ROOT
69
70desktop-file-validate $RPM_BUILD_ROOT%{_desktopdir}/qesteidutil.desktop
6425e8cd 71appstream-util validate-relax --nonet $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml
ff9ad974
ER
72
73%clean
74rm -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
This page took 0.093105 seconds and 4 git commands to generate.