* Drop 057b4fa188b6b8afdb34cc6b7d103c78e73c1001.patch: incorporated upstream. * Add BuildRequires: cmake(GTest) now needed to build and run OBS-URL: https://build.opensuse.org/package/show/network/davix?expand=0&rev=25
119 lines
3.3 KiB
RPMSpec
119 lines
3.3 KiB
RPMSpec
#
|
|
# spec file for package davix
|
|
#
|
|
# Copyright (c) 2025 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define shlib lib%{name}0
|
|
%define v_maj 0
|
|
%define v_min 8
|
|
%define v_pat 10
|
|
Name: davix
|
|
Version: 0.8.10
|
|
Release: 0
|
|
Summary: File management over HTTP-based protocols
|
|
License: LGPL-2.1-or-later
|
|
Group: Productivity/Networking/Web/Utilities
|
|
URL: https://davix.web.cern.ch/davix/docs/devel
|
|
Source: https://github.com/cern-fts/davix/releases/download/R_%{v_maj}_%{v_min}_%{v_pat}/davix-%{version}.tar.gz
|
|
BuildRequires: cmake >= 3.0
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: git
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: python3
|
|
BuildRequires: cmake(GTest)
|
|
BuildRequires: pkgconfig(RapidJSON)
|
|
BuildRequires: pkgconfig(gsoapssl++)
|
|
BuildRequires: pkgconfig(libcurl)
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
|
BuildRequires: pkgconfig(openssl)
|
|
BuildRequires: pkgconfig(uuid)
|
|
|
|
%description
|
|
Davix does file management over HTTP-based protocols. It focuses on
|
|
remote I/O and data management of large collections of files. There
|
|
is support for the WebDav, Amazon S3, Microsoft Azure, and HTTP
|
|
protocols.
|
|
|
|
It provides a C++ library offering an HTTP API, a remote I/O API, and
|
|
a POSIX compatibility layer. It also provides several utilities for
|
|
file transfer, large collections of files management and large files
|
|
management.
|
|
|
|
%package -n %{shlib}
|
|
Summary: Library offering davix APIs for HTTP, remote I/O, and POSIX compatibility layer
|
|
Group: System/Libraries
|
|
|
|
%description -n %{shlib}
|
|
This package provides the shared libraries for davix with APIs for
|
|
HTTP, remote I/O, and a POSIX compatibility layer.
|
|
|
|
%package devel
|
|
Summary: Headers and sources for developing software using davix
|
|
Group: Development/Libraries/C and C++
|
|
Requires: %{shlib} = %{version}
|
|
|
|
%description devel
|
|
This package provides the headers and sources needed for developing
|
|
applications using davix.
|
|
|
|
%prep
|
|
%autosetup -p1
|
|
|
|
%build
|
|
%cmake \
|
|
-DEMBEDDED_LIBCURL=FALSE \
|
|
-DENABLE_THIRD_PARTY_COPY:BOOL=TRUE \
|
|
-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
|
|
%{nil}
|
|
%cmake_build
|
|
|
|
%install
|
|
%cmake_install
|
|
|
|
# REMOVE NON-STD DOC FILES, TO BE CORRECTLY INSTALLED USING %%doc macro
|
|
rm -fr %{buildroot}%{_datadir}/doc/davix
|
|
|
|
%check
|
|
%ctest
|
|
|
|
%ldconfig_scriptlets -n %{shlib}
|
|
|
|
%files
|
|
%doc README.md RELEASE-NOTES.md
|
|
%license LICENSE
|
|
%{_bindir}/davix-cp
|
|
%{_bindir}/davix-get
|
|
%{_bindir}/davix-http
|
|
%{_bindir}/davix-ls
|
|
%{_bindir}/davix-mkdir
|
|
%{_bindir}/davix-mv
|
|
%{_bindir}/davix-put
|
|
%{_bindir}/davix-rm
|
|
%{_bindir}/davix-tester
|
|
%{_bindir}/davix-unit-tests
|
|
%{_mandir}/man1/davix-*.1%{?ext_man}
|
|
|
|
%files -n %{shlib}
|
|
%{_libdir}/*.so.*
|
|
|
|
%files devel
|
|
%{_libdir}/*.so
|
|
%{_includedir}/*
|
|
%{_libdir}/pkgconfig/*.pc
|
|
%{_mandir}/man3/libdavix.3%{?ext_man}
|
|
|
|
%changelog
|