!1 初始化仓库
From: @wangtaozhi Reviewed-by: @tangjie02 Signed-off-by: @tangjie02
This commit is contained in:
commit
7a474f5418
14
libdatovka-0.2.1-gcc-12-build-fix.patch
Normal file
14
libdatovka-0.2.1-gcc-12-build-fix.patch
Normal file
@ -0,0 +1,14 @@
|
||||
diff --git a/src/isds.c b/src/isds.c
|
||||
index 8bf1835..b02203b 100644
|
||||
--- a/src/isds.c
|
||||
+++ b/src/isds.c
|
||||
@@ -6097,8 +6097,8 @@ static isds_error build_send_check_dbdummy_request(struct isds_ctx *context,
|
||||
}
|
||||
|
||||
leave:
|
||||
- free(service_name_locale);
|
||||
xmlFreeNode(request);
|
||||
+ free(service_name_locale);
|
||||
return err;
|
||||
}
|
||||
#endif
|
||||
BIN
libdatovka-0.3.0.tar.xz
Normal file
BIN
libdatovka-0.3.0.tar.xz
Normal file
Binary file not shown.
91
libdatovka.spec
Normal file
91
libdatovka.spec
Normal file
@ -0,0 +1,91 @@
|
||||
Name: libdatovka
|
||||
Version: 0.3.0
|
||||
Release: 1%{?dist}
|
||||
Summary: Client library for accessing SOAP services of ISDS (Czech Data Boxes)
|
||||
|
||||
License: LGPLv3+ and GPLv3+
|
||||
URL: https://www.datovka.cz/
|
||||
Source0: https://secure.nic.cz/files/datove_schranky/%{name}/%{name}-%{version}.tar.xz
|
||||
BuildRequires: dos2unix
|
||||
BuildRequires: make
|
||||
BuildRequires: gcc
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: libtool
|
||||
BuildRequires: coreutils
|
||||
BuildRequires: docbook-style-xsl
|
||||
BuildRequires: libxslt-devel
|
||||
BuildRequires: gettext-devel
|
||||
BuildRequires: libxml2-devel
|
||||
BuildRequires: libcurl-devel
|
||||
BuildRequires: gpgme-devel
|
||||
BuildRequires: libgcrypt-devel
|
||||
BuildRequires: expat-devel
|
||||
BuildRequires: gnupg2-smime
|
||||
BuildRequires: gnutls-devel
|
||||
# partial fix for the https://gitlab.nic.cz/datovka/libdatovka/-/issues/17
|
||||
# --disable-fatalwarnings can be dropped once correctly fixed upstream
|
||||
Patch0: libdatovka-0.2.1-gcc-12-build-fix.patch
|
||||
|
||||
%description
|
||||
Client library for accessing SOAP services of ISDS (Informační systém
|
||||
datových schránek / Data Box Information System) as defined in Czech ISDS Act
|
||||
(300/2008 Coll.) <http://portal.gov.cz/zakon/300/2008> and implied documents.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for libdatovka
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
Requires: libxml2-devel%{?_isa}
|
||||
Requires: pkgconfig%{?_isa}
|
||||
|
||||
%description devel
|
||||
Development files for libdatovka.
|
||||
|
||||
%package doc
|
||||
Summary: Documentation files for libdatovka
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
BuildArch: noarch
|
||||
|
||||
%description doc
|
||||
Documentation files for libdatovka.
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
dos2unix src/*.{c,h}
|
||||
|
||||
%build
|
||||
autoreconf -fi
|
||||
%configure \
|
||||
--enable-doc \
|
||||
--disable-online-test \
|
||||
--disable-static \
|
||||
--enable-test \
|
||||
--with-libcurl \
|
||||
--disable-fatalwarnings
|
||||
|
||||
%make_build
|
||||
|
||||
%install
|
||||
%make_install
|
||||
rm -f %{buildroot}%{_libdir}/*.la
|
||||
%find_lang %{name}
|
||||
|
||||
%check
|
||||
make check %{?_smp_mflags}
|
||||
|
||||
%files -f %{name}.lang
|
||||
%doc AUTHORS COPYING ChangeLog README TODO NEWS
|
||||
%license COPYING
|
||||
%{_libdir}/%{name}.so.*
|
||||
|
||||
%files devel
|
||||
%{_includedir}/%{name}
|
||||
%{_libdir}/%{name}.so
|
||||
%{_libdir}/pkgconfig/%{name}.pc
|
||||
%{_mandir}/man3/*
|
||||
|
||||
%files doc
|
||||
%doc client
|
||||
|
||||
%changelog
|
||||
* Tue May 16 2023 wangtaozhi <wangtaozhi@kylinsec.com.cn> - 0.3.0-1
|
||||
- Package init
|
||||
4
libdatovka.yaml
Normal file
4
libdatovka.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: aisleriot
|
||||
tag_prefix: "v"
|
||||
separator: "."
|
||||
Loading…
x
Reference in New Issue
Block a user