]> git.pld-linux.org Git - SPECS.git/blob - qdigidoc.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / qdigidoc.spec
1 %define         qtver   5.8.0
2 Summary:        Estonian digital signature application
3 Name:           qdigidoc
4 Version:        3.13.6
5 Release:        1
6 License:        LGPL v2+
7 Group:          X11/Applications
8 Source0:        https://github.com/open-eid/qdigidoc/releases/download/v%{version}/%{name}-%{version}.tar.gz
9 # Source0-md5:  3e8de77f166b56670af489e81c7c46d3
10 Source1:        https://id.eesti.ee/config.json
11 # Source1-md5:  657f760fe4c7432ca3aedfa0d71ee05e
12 Source2:        https://id.eesti.ee/config.rsa
13 # Source2-md5:  08fad39a241c9a5723731914568157b5
14 Source3:        https://id.eesti.ee/config.pub
15 # Source3-md5:  b3931bf5a8a2f19cb00e53afd89e440d
16 Source4:        TSL.qrc
17 Source5:        config.qrc
18 Source6:        https://ec.europa.eu/information_society/policy/esignature/trusted-list/tl-mp.xml
19 # Source6-md5:  11235a4b7e7fbe7a5f5851e5c33ecc34
20 Source7:        EE.xml
21 # Source7-md5:  e15d2f875b47365970ced4697843e7c1
22 Patch0:         desktop.patch
23 Patch1:         sandbox-compilation.patch
24 Patch2:         build.patch
25 URL:            https://github.com/open-eid/
26 BuildRequires:  Qt5Core-devel >= %{qtver}
27 BuildRequires:  Qt5Gui-devel >= %{qtver}
28 BuildRequires:  Qt5Network-devel >= %{qtver}
29 BuildRequires:  Qt5PrintSupport-devel >= %{qtver}
30 BuildRequires:  Qt5Widgets-devel >= %{qtver}
31 BuildRequires:  cmake
32 BuildRequires:  desktop-file-utils
33 BuildRequires:  gettext
34 BuildRequires:  libdigidocpp-devel >= 3.12
35 BuildRequires:  openldap-devel
36 BuildRequires:  openssl-devel
37 BuildRequires:  pcsc-lite-devel
38 BuildRequires:  pkgconfig
39 BuildRequires:  qt5-build >= %{qtver}
40 BuildRequires:  qt5-linguist >= %{qtver}
41 BuildRequires:  qt5-qmake >= %{qtver}
42 BuildRequires:  rpmbuild(macros) >= 1.596
43 Requires(post,postun):  gtk-update-icon-cache
44 Requires:       desktop-file-utils
45 Requires:       hicolor-icon-theme
46 Requires:       shared-mime-info
47 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
48
49 %description
50 QDigiDoc is an application for digitally signing and encrypting
51 documents in BDoc, DDoc, and CDoc container formats. These file
52 formats are widespread in Estonia where they are used for storing
53 legally binding digital signatures.
54
55 %package -n nautilus-%{name}
56 Summary:        Nautilus extension for %{name}
57 Group:          X11/Applications
58 Requires:       %{name} = %{version}-%{release}
59 Requires:       nautilus-python >= 1.0
60 Requires:       python-pygobject
61
62 %description -n nautilus-%{name}
63 This package contains the qdigidoc extension for the nautilus file
64 manager.
65
66 %package -n kde4-konqueror-plugin-%{name}
67 Summary:        Konqueror extension for %{name}
68 Group:          X11/Applications
69 Requires:       %{name} = %{version}-%{release}
70
71 %description -n kde4-konqueror-plugin-%{name}
72 This package contains the qdigidoc extension for Konqueror.
73
74 %prep
75 %setup -q
76 install -d build/{common,client}
77 cp %{SOURCE1} build/common
78 cp %{SOURCE2} build/common
79 cp %{SOURCE3} build/common
80 cp %{SOURCE4} build/client
81 cp %{SOURCE5} build/common
82 cp %{SOURCE6} build/client
83 cp %{SOURCE7} build/client
84
85 %patch0 -p1
86 %patch1 -p1
87 %patch2 -p1
88
89 %build
90 cd build
91 %cmake \
92 %ifarch %{arm} %{ix86} %{x8664}
93         -DBREAKPAD=OFF \
94 %endif
95         ..
96 %{__make}
97
98 %install
99 rm -rf $RPM_BUILD_ROOT
100 %{__make} -C build install \
101         DESTDIR=$RPM_BUILD_ROOT
102
103 %find_lang nautilus-qdigidoc
104
105 desktop-file-validate $RPM_BUILD_ROOT%{_desktopdir}/qdigidoc-client.desktop
106 desktop-file-validate $RPM_BUILD_ROOT%{_desktopdir}/qdigidoc-crypto.desktop
107
108 %clean
109 rm -rf $RPM_BUILD_ROOT
110
111 %post
112 %update_desktop_database
113 %update_icon_cache hicolor
114 %update_mime_database
115
116 %postun
117 %update_desktop_database
118 %update_icon_cache hicolor
119 %update_mime_database
120
121 %files
122 %defattr(644,root,root,755)
123 %doc AUTHORS README.md CONTRIBUTING.md
124 %attr(755,root,root) %{_bindir}/*
125 %{_mandir}/man1/qdig*
126 %{_desktopdir}/*.desktop
127 %{_iconsdir}/hicolor/*/*/*.png
128 %{_datadir}/mime/packages/*.xml
129
130 %files -n nautilus-%{name} -f nautilus-qdigidoc.lang
131 %defattr(644,root,root,755)
132 %{_datadir}/nautilus-python/extensions/*.py
133
134 %files -n kde4-konqueror-plugin-%{name}
135 %defattr(644,root,root,755)
136 %{_datadir}/kde4/services/*.desktop
This page took 0.421697 seconds and 3 git commands to generate.