2010-04-11 12:27:11 +00:00
|
|
|
#
|
2012-02-23 22:24:28 +00:00
|
|
|
# spec file for package libserf
|
2010-04-11 12:27:11 +00:00
|
|
|
#
|
2024-06-12 09:16:56 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2010-04-11 12:27:11 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-09-21 09:44:33 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2010-04-11 12:27:11 +00:00
|
|
|
#
|
|
|
|
|
2012-02-23 22:24:28 +00:00
|
|
|
|
2013-02-23 11:12:03 +00:00
|
|
|
# version 1.2.0 requires apr 1.3.0 or later for apr_socket_addr_get
|
|
|
|
%define minimum_apr_version 1.3.0
|
2013-08-10 19:50:05 +00:00
|
|
|
%define major 1
|
|
|
|
%define minor 3
|
2014-04-27 21:46:52 +00:00
|
|
|
%define SHLIBVER %{major}.%{minor}.0
|
2016-09-01 12:39:06 +00:00
|
|
|
%bcond_without gssapi
|
2014-04-27 21:46:52 +00:00
|
|
|
Name: libserf
|
2023-06-01 09:53:43 +00:00
|
|
|
Version: 1.3.10
|
2012-06-07 21:14:10 +00:00
|
|
|
Release: 0
|
2010-04-11 12:27:11 +00:00
|
|
|
Summary: High-Performance Asynchronous HTTP Client Library
|
2012-06-07 21:14:10 +00:00
|
|
|
License: Apache-2.0
|
|
|
|
Group: System/Libraries
|
2018-09-21 09:44:33 +00:00
|
|
|
URL: https://serf.apache.org/
|
2023-06-01 09:53:43 +00:00
|
|
|
Source: https://www.apache.org/dist/serf/serf-%{version}.tar.bz2
|
|
|
|
Source2: https://www.apache.org/dist/serf/serf-%{version}.tar.bz2.asc
|
|
|
|
Source3: https://www.apache.org/dist/serf/KEYS#/%{name}.keyring
|
2012-06-07 21:14:10 +00:00
|
|
|
BuildRequires: pkgconfig
|
2013-07-28 15:22:34 +00:00
|
|
|
BuildRequires: scons >= 2.3
|
2023-04-14 09:38:03 +00:00
|
|
|
BuildRequires: pkgconfig(apr-1) >= %{minimum_apr_version}
|
|
|
|
BuildRequires: pkgconfig(apr-util-1) >= %{minimum_apr_version}
|
|
|
|
BuildRequires: pkgconfig(libcrypto)
|
|
|
|
BuildRequires: pkgconfig(libssl)
|
|
|
|
BuildRequires: pkgconfig(zlib)
|
2013-07-24 23:13:51 +00:00
|
|
|
%if %{with gssapi}
|
2023-04-14 09:38:03 +00:00
|
|
|
BuildRequires: pkgconfig(krb5-gssapi)
|
2013-07-24 23:13:51 +00:00
|
|
|
%endif
|
2008-08-04 15:21:42 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
The serf library is a C-based HTTP client library built upon the Apache
|
|
|
|
Portable Runtime (APR) library. It multiplexes connections, running the
|
|
|
|
read/write communication asynchronously. Memory copies and transformations are
|
|
|
|
kept to a minimum to provide high performance operation.
|
|
|
|
|
2014-04-27 21:46:52 +00:00
|
|
|
%package -n libserf-%{major}-%{major}
|
2010-04-11 12:27:11 +00:00
|
|
|
Summary: High-Performance Asynchronous HTTP Client Library
|
|
|
|
Group: Development/Libraries/C and C++
|
2008-08-04 21:47:39 +00:00
|
|
|
|
2014-04-27 21:46:52 +00:00
|
|
|
%description -n libserf-%{major}-%{major}
|
2008-08-04 21:47:39 +00:00
|
|
|
The serf library is a C-based HTTP client library built upon the Apache
|
|
|
|
Portable Runtime (APR) library. It multiplexes connections, running the
|
|
|
|
read/write communication asynchronously. Memory copies and transformations are
|
|
|
|
kept to a minimum to provide high performance operation.
|
|
|
|
|
2008-08-04 15:21:42 +00:00
|
|
|
%package -n libserf-devel
|
2010-04-11 12:27:11 +00:00
|
|
|
Summary: High-Performance Asynchronous HTTP Client Library
|
|
|
|
Group: Development/Libraries/C and C++
|
2014-04-27 21:46:52 +00:00
|
|
|
Requires: libserf-%{major}-%{major} = %{version}
|
2008-08-04 15:21:42 +00:00
|
|
|
|
|
|
|
%description -n libserf-devel
|
|
|
|
The serf library is a C-based HTTP client library built upon the Apache
|
|
|
|
Portable Runtime (APR) library. It multiplexes connections, running the
|
|
|
|
read/write communication asynchronously. Memory copies and transformations are
|
|
|
|
kept to a minimum to provide high performance operation.
|
|
|
|
|
|
|
|
%prep
|
2021-12-06 17:04:42 +00:00
|
|
|
%autosetup -p1 -n "serf-%{version}"
|
2008-08-04 15:21:42 +00:00
|
|
|
|
|
|
|
%build
|
2013-07-24 23:13:51 +00:00
|
|
|
scons \
|
|
|
|
PREFIX=%{_prefix} \
|
|
|
|
LIBDIR=%{_libdir} \
|
|
|
|
APR=%{_prefix} \
|
|
|
|
OPENSSL=%{_prefix} \
|
|
|
|
ZLIB=%{_prefix} \
|
2013-02-22 23:03:07 +00:00
|
|
|
%if %{with gssapi}
|
2023-04-14 09:38:03 +00:00
|
|
|
GSSAPI=$(which krb5-config) \
|
2013-02-22 23:03:07 +00:00
|
|
|
%endif
|
2013-07-24 23:13:51 +00:00
|
|
|
DEBUG=yes \
|
2013-08-15 20:14:38 +00:00
|
|
|
CFLAGS="%{optflags}" \
|
2013-07-24 23:13:51 +00:00
|
|
|
APR_STATIC=no \
|
2014-04-27 21:46:52 +00:00
|
|
|
%{?_smp_mflags}
|
2008-08-04 15:21:42 +00:00
|
|
|
|
|
|
|
%install
|
2013-07-24 23:13:51 +00:00
|
|
|
scons install --install-sandbox=%{buildroot}
|
2014-04-27 21:46:52 +00:00
|
|
|
rm -f "%{buildroot}%{_libdir}"/lib*.a
|
2008-08-04 15:21:42 +00:00
|
|
|
|
2013-09-27 23:10:19 +00:00
|
|
|
%post -n libserf-%{major}-%{major} -p /sbin/ldconfig
|
|
|
|
%postun -n libserf-%{major}-%{major} -p /sbin/ldconfig
|
2008-08-04 15:21:42 +00:00
|
|
|
|
2013-09-27 23:10:19 +00:00
|
|
|
%files -n libserf-%{major}-%{major}
|
2018-09-21 09:44:33 +00:00
|
|
|
%license LICENSE
|
|
|
|
%doc CHANGES NOTICE README
|
2008-08-04 15:21:42 +00:00
|
|
|
%doc design-guide.txt
|
2013-09-27 23:10:19 +00:00
|
|
|
%{_libdir}/libserf-%{major}.so.%{major}
|
2013-08-10 19:50:05 +00:00
|
|
|
%{_libdir}/libserf-%{major}.so.%{SHLIBVER}
|
2012-03-15 10:51:25 +00:00
|
|
|
|
2008-08-04 15:21:42 +00:00
|
|
|
%files -n libserf-devel
|
2023-04-14 09:38:03 +00:00
|
|
|
%license LICENSE
|
2014-04-27 21:46:52 +00:00
|
|
|
%{_includedir}/serf-%{major}
|
2008-08-04 15:21:42 +00:00
|
|
|
%{_libdir}/libserf-%{major}.so
|
2012-02-23 22:24:28 +00:00
|
|
|
%{_libdir}/pkgconfig/serf-%{major}.pc
|
2008-08-04 15:21:42 +00:00
|
|
|
|
2010-04-11 12:27:11 +00:00
|
|
|
%changelog
|