!4 初始化仓库
From: @niko_yhc Reviewed-by: @tangjie02 Signed-off-by: @tangjie02
This commit is contained in:
commit
d18c0ffd5f
13
datovka-4.19.0-s390x-disable-failing-test.patch
Normal file
13
datovka-4.19.0-s390x-disable-failing-test.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git a/tests/tests.pro b/tests/tests.pro
|
||||
index 428bb10..a805fa8 100644
|
||||
--- a/tests/tests.pro
|
||||
+++ b/tests/tests.pro
|
||||
@@ -81,7 +81,7 @@ HEADERS = \
|
||||
$${top_srcdir}tests/helper_qt.h
|
||||
|
||||
include(test_crypto_message.pri)
|
||||
-include(test_crypto_pin_pwd.pri)
|
||||
+#include(test_crypto_pin_pwd.pri)
|
||||
include(test_crypto_pin_token.pri)
|
||||
include(test_db_container.pri)
|
||||
include(test_db_single.pri)
|
||||
BIN
datovka-4.22.0.tar.xz
Normal file
BIN
datovka-4.22.0.tar.xz
Normal file
Binary file not shown.
59
datovka.spec
Normal file
59
datovka.spec
Normal file
@ -0,0 +1,59 @@
|
||||
Name: datovka
|
||||
Version: 4.22.0
|
||||
Release: 1
|
||||
Summary: A free graphical interface for Czech Databox (Datové schránky)
|
||||
|
||||
License: GPLv3+ with exceptions
|
||||
URL: https://www.datovka.cz/
|
||||
Source0: https://secure.nic.cz/files/datove_schranky/%{version}/datovka-%{version}.tar.xz
|
||||
BuildRequires: qt5-qtbase-devel
|
||||
BuildRequires: qt5-qttools-devel
|
||||
BuildRequires: openssl-devel
|
||||
BuildRequires: qt5-linguist
|
||||
BuildRequires: qt5-qtsvg-devel
|
||||
BuildRequires: qt5-qtwebsockets-devel
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: libdatovka-devel
|
||||
BuildRequires: make
|
||||
# https://gitlab.nic.cz/datovka/datovka/-/issues/541
|
||||
Patch0: datovka-4.19.0-s390x-disable-failing-test.patch
|
||||
|
||||
%description
|
||||
GUI application allowing access to Czech Databox - an electronic communication
|
||||
interface endorsed by the Czech government.
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
# drop failing tests (upstream notified)
|
||||
pushd tests
|
||||
rm -f test_crypto_message.pri test_isds_message.pri
|
||||
popd
|
||||
|
||||
%build
|
||||
lrelease-qt5 datovka.pro
|
||||
%{qmake_qt5} PREFIX=%{_prefix} DISABLE_VERSION_CHECK_BY_DEFAULT=1
|
||||
%make_build
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{_bindir}
|
||||
%make_install INSTALL_ROOT=%{buildroot}
|
||||
%find_lang %{name} --with-qt
|
||||
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
|
||||
|
||||
%check
|
||||
cd tests
|
||||
%{qmake_qt5} tests.pro PREFIX=%{_prefix}
|
||||
%make_build
|
||||
./tests
|
||||
|
||||
%files -f %{name}.lang
|
||||
%doc %{_pkgdocdir}
|
||||
%{_bindir}/datovka
|
||||
%{_datadir}/applications/datovka.desktop
|
||||
%{_datadir}/icons/hicolor/*/apps/datovka.png
|
||||
%{_datadir}/metainfo/datovka.metainfo.xml
|
||||
|
||||
%changelog
|
||||
* Fri May 26 2023 wangtaozhi <wangtaozhi@kylinsec.com.cn> - 4.22.0-1
|
||||
- Package init
|
||||
4
datovka.yaml
Normal file
4
datovka.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: gitlab
|
||||
src_repo: https://gitlab.nic.cz/datovka/datovka
|
||||
tag_prefix: "v"
|
||||
separator: "."
|
||||
Loading…
x
Reference in New Issue
Block a user