2017-07-04 09:33:51 +02:00
|
|
|
#
|
|
|
|
# spec file for package apr
|
|
|
|
#
|
2018-01-30 13:42:42 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2017-07-04 09:33:51 +02: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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%define aprver 1
|
|
|
|
%define libname lib%{name}%{aprver}
|
|
|
|
%define installbuilddir %{_libdir}/apr-%{aprver}/build
|
|
|
|
%define includedir %{_includedir}/apr-%{aprver}
|
|
|
|
Name: apr
|
2018-10-23 15:04:01 +02:00
|
|
|
Version: 1.6.5
|
2017-07-04 09:33:51 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Apache Portable Runtime (APR) Library
|
|
|
|
License: Apache-2.0
|
2017-07-14 10:09:27 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2017-07-04 09:33:51 +02:00
|
|
|
Url: https://apr.apache.org/
|
|
|
|
Source0: https://www.apache.org/dist/apr/apr-%{version}.tar.bz2
|
|
|
|
Source1: https://www.apache.org/dist/apr/apr-%{version}.tar.bz2.asc
|
|
|
|
Source2: %{name}.keyring
|
|
|
|
Patch4: apr-1.4.5-linux3.patch
|
|
|
|
Patch5: apr-visibility.patch
|
|
|
|
Patch6: apr-use-getrandom.patch
|
|
|
|
Patch9: apr-proc-mutex-map-anon.patch
|
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: libuuid-devel
|
|
|
|
BuildRequires: lksctp-tools-devel
|
|
|
|
# for the testsuite
|
|
|
|
BuildRequires: netcfg
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
2017-07-14 10:09:27 +02:00
|
|
|
APR is Apache's Portable Runtime Library, designed to be a support
|
|
|
|
library that provides a predictable and consistent interface to
|
|
|
|
underlying platform-specific implementations.
|
2017-07-04 09:33:51 +02:00
|
|
|
|
|
|
|
%package -n %{libname}
|
|
|
|
Summary: Apache Portable Runtime (APR) Library
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %{libname}
|
2017-07-14 10:09:27 +02:00
|
|
|
APR is Apache's Portable Runtime Library, designed to be a support
|
|
|
|
library that provides a predictable and consistent interface to
|
|
|
|
underlying platform-specific implementations.
|
2017-07-04 09:33:51 +02:00
|
|
|
|
2017-07-14 10:09:27 +02:00
|
|
|
The range of platform-spanning functionality provided by APR
|
|
|
|
includes: Memory allocation and memory pool functionality, atomic
|
|
|
|
operations, dynamic library handling, file I/O, command-argument
|
|
|
|
parsing, locking, hash tables and arrays, mmap functionality, network
|
|
|
|
sockets and protocols, threads, process and mutex functionality,
|
|
|
|
shared memory functionality, time routines, as well as user and group
|
|
|
|
ID services.
|
2017-07-04 09:33:51 +02:00
|
|
|
|
|
|
|
%package devel
|
2017-07-14 10:09:27 +02:00
|
|
|
Summary: Development files for the Apache Portable Runtime (APR) library
|
|
|
|
Group: Development/Libraries/C and C++
|
2017-07-04 09:33:51 +02:00
|
|
|
Requires: %{libname} = %{version}
|
|
|
|
Provides: %{libname}-devel = %{version}
|
2017-10-26 14:21:47 +02:00
|
|
|
Obsoletes: %{libname}-devel < %{version}-%{release}
|
2017-07-04 09:33:51 +02:00
|
|
|
|
|
|
|
%description devel
|
2017-07-14 10:09:27 +02:00
|
|
|
APR is Apache's Portable Runtime Library, designed to be a support
|
|
|
|
library that provides a predictable and consistent interface to
|
|
|
|
underlying platform-specific implementations.
|
2017-07-04 09:33:51 +02:00
|
|
|
|
2017-07-14 10:09:27 +02:00
|
|
|
This subpackage contains header files for developing applications
|
|
|
|
that want to make use of APR.
|
2017-07-04 09:33:51 +02:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%patch4
|
|
|
|
%patch5 -p1
|
|
|
|
%patch6 -p1
|
|
|
|
%patch9 -p1
|
|
|
|
|
|
|
|
# Do not put date to doxy content
|
|
|
|
sed -i \
|
|
|
|
-e '4 iHTML_TIMESTAMP=NO' \
|
|
|
|
docs/doxygen.conf
|
|
|
|
|
|
|
|
%build
|
2017-11-08 12:15:03 +01:00
|
|
|
autoreconf -fiv
|
2017-07-04 09:33:51 +02:00
|
|
|
export apr_lock_method=USE_PROC_PTHREAD_SERIALIZE
|
|
|
|
%configure \
|
|
|
|
--enable-other-child \
|
|
|
|
--with-installbuilddir=%{installbuilddir} \
|
|
|
|
--includedir=%{includedir} \
|
|
|
|
%ifarch %{ix86}
|
|
|
|
--enable-nonportable-atomics=yes \
|
|
|
|
%endif
|
|
|
|
--with-devrandom=/dev/urandom \
|
|
|
|
--disable-static \
|
|
|
|
--enable-posix-shm \
|
2017-07-14 10:09:27 +02:00
|
|
|
--with-sendfile
|
2017-07-04 09:33:51 +02:00
|
|
|
make %{?_smp_mflags} CFLAGS="%{optflags} -DREADDIR_IS_THREAD_SAFE -fvisibility=hidden -fPIC"
|
|
|
|
make dox %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
|
|
|
# Move docs to more convenient location
|
|
|
|
mv docs/dox/html html
|
|
|
|
# Unpackaged files:
|
|
|
|
rm -f %{buildroot}/%{_libdir}/apr.exp
|
|
|
|
rm -f %{buildroot}%{_libdir}/libapr-%{aprver}.la
|
|
|
|
|
|
|
|
# Trim exported dependecies
|
|
|
|
sed -ri '/^LIBS=/{s,-l(uuid|crypt) ,,g;s/ */ /g}' \
|
|
|
|
%{buildroot}%{_bindir}/apr-%{aprver}-config
|
|
|
|
sed -ri '/^Libs/{s,-l(uuid|crypt) ,,g}' \
|
|
|
|
%{buildroot}%{_libdir}/pkgconfig/apr-%{aprver}.pc
|
|
|
|
|
|
|
|
%fdupes %{buildroot}
|
|
|
|
|
|
|
|
%check
|
|
|
|
%if ! 0%{?qemu_user_space_build}
|
2018-01-30 13:42:42 +01:00
|
|
|
%ifarch ppc ppc64 ppc64le
|
|
|
|
make check -j1 || { echo "ignore PowerPC transient test failures"; exit 0; }
|
|
|
|
%else
|
2017-07-04 09:33:51 +02:00
|
|
|
make check -j1
|
|
|
|
%endif
|
2018-01-30 13:42:42 +01:00
|
|
|
%endif
|
2017-07-04 09:33:51 +02:00
|
|
|
|
|
|
|
%post -n %{libname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{libname} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n %{libname}
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc CHANGES
|
|
|
|
%doc LICENSE
|
|
|
|
%doc NOTICE
|
|
|
|
%{_libdir}/libapr-%{aprver}.so.*
|
|
|
|
# Do NOT move to devel as this is utilized by Tomcat
|
|
|
|
%{_libdir}/libapr-%{aprver}.so
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc docs/APRDesign.html
|
|
|
|
%doc docs/canonical_filenames.html
|
|
|
|
%doc docs/incomplete_types
|
|
|
|
%doc docs/non_apr_programs
|
|
|
|
%doc html
|
|
|
|
%doc emacs-mode
|
|
|
|
%{includedir}
|
|
|
|
%{_bindir}/apr-%{aprver}-config
|
|
|
|
%{_libdir}/pkgconfig/apr-%{aprver}.pc
|
|
|
|
%{_libdir}/apr-%{aprver}
|
|
|
|
|
|
|
|
%changelog
|