Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37553448
en ru br
Репозитории ALT
S:1.6.1-alt4
D:1.3.4-alt3.2
5.1: 1.3.12-alt0.M51.1
4.1: 1.2.12-alt1.M41.1
4.0: 1.2.8-alt2
www.altlinux.org/Changes

Группа :: Система/Библиотеки
Пакет: aprutil1

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

# hey Emacs, its -*- mode: rpm-spec; coding: cyrillic-cp1251; -*-

# Build aprutil with corresponding apr version always

%define apr_major_version 1

Name: aprutil%apr_major_version
Version: 1.2.12
Release: alt1.M41.1

Summary: Apache Portable Runtime Utility shared library
Group: System/Libraries
License: Apache
Url: http://apr.apache.org/
Packager: Sviatoslav Sviridov <svd at altlinux.ru>

%define dbm_type db44

# Do not define this variable to build release

#%%define cvsbuild 20031118

%ifdef cvsbuild

%define apu_cvsbuild 20031118111933
%define apu_filever _%apu_cvsbuild
%define apu_dir apr-util
%define cvsbuild_desc This package built from CVS snapshot %cvsbuild

%else

%define apu_filever -%version
%define apu_dir apr-util-%version
%define cvsbuild_desc %nil

%endif #cvsbuild

Source: apr-util%apu_filever.tar
Patch1: apr-util-1.2.12-alt-linkage.patch
Patch2: apr-util-1.2.2-alt-pkgconfig.patch
Patch3: apr-util-1.2.8-alt-installbuilddir.patch

Patch4: apr-util-1.2.12-CVE-2009-0023.patch
Patch5: apr-util-1.2.12-CVE-2009-1955.patch
Patch6: apr-util-1.2.12-CVE-2009-1956.patch

%def_disable static
%{?_enable_static:BuildPreReq: glibc-devel-static}

%def_with ldap
%{?_with_ldap:BuildPreReq: libldap-devel}

BuildPreReq: libapr%apr_major_version-devel = %version

# Automatically added by buildreq on Fri Dec 16 2005

BuildRequires: libdb4.4-devel libexpat-devel libgdbm-devel python-base python-modules-encodings

%package -n lib%name
Summary: Apache Portable Runtime Utility shared library
Group: System/Libraries

%package -n lib%name-devel
Summary: Apache Portable Runtime Utility development files
Group: Development/C
Requires: lib%name = %version-%release, libapr%apr_major_version-devel = %version
Requires: libdb4.4-devel
Conflicts: libaprutil-devel

%package -n lib%name-devel-static
Summary: Apache Portable Runtime Utility static library
Group: Development/C
Requires: lib%name-devel = %version-%release, libapr%apr_major_version-devel-static = %version

%description
The mission of the Apache Portable Runtime (APR) is to provide a free
library of C data structures and routines, forming a system portability
layer to as many operating systems as possible, including Unices,
MS Win32, BeOS and OS/2.
%cvsbuild_desc

%description -n lib%name
The mission of the Apache Portable Runtime (APR) is to provide a free
library of C data structures and routines, forming a system portability
layer to as many operating systems as possible, including Unices,
MS Win32, BeOS and OS/2.
%cvsbuild_desc
This package contains APU shared library.

%description -n lib%name-devel
The mission of the Apache Portable Runtime (APR) is to provide a free
library of C data structures and routines, forming a system portability
layer to as many operating systems as possible, including Unices,
MS Win32, BeOS and OS/2.
%cvsbuild_desc
This package contains APU development files.

%description -n lib%name-devel-static
The mission of the Apache Portable Runtime (APR) is to provide a free
library of C data structures and routines, forming a system portability
layer to as many operating systems as possible, including Unices,
MS Win32, BeOS and OS/2.
%cvsbuild_desc
This package contains APU static library.

%prep
%setup -q -n %apu_dir
%patch1 -p1
%patch2 -p1
%patch3 -p1

%patch4 -p4
%patch5 -p0
%patch6 -p3

rm -rf xml/expat
rm -rf build/apr_common.m4
rm -rf build/find_apr.m4

%build
export LDFLAGS='-Wl,--as-needed'
LIBTOOL_M4=%_datadir/libtool/aclocal/libtool.m4 \
./buildconf --with-apr=%_datadir/apr-%apr_major_version
%configure \
--with-apr=%_prefix \
--with-installbuilddir=%_datadir/apr-%apr_major_version/build \
--includedir=%_includedir/apu-%apr_major_version \
--with-berkeley-db --with-dbm=%dbm_type \
%{subst_with ldap} \
%{subst_enable static}

%make_build

%install
export LDFLAGS='-Wl,--as-needed'
%make_install DESTDIR=%buildroot install
find %buildroot%_bindir -type f -print0 |
xargs -r0 %__grep -FZl "$RPM_BUILD_DIR/%apu_dir" -- |
xargs -r0 %__subst "s,$RPM_BUILD_DIR/%apu_dir,%_datadir/apr-%apr_major_version," --
find %buildroot%_datadir -type f -print0 |
xargs -r0 %__grep -FZl "$RPM_BUILD_DIR/%apu_dir" -- |
xargs -r0 %__subst "s,$RPM_BUILD_DIR/%apu_dir\(/build\)\?,%_datadir/apr-%apr_major_version/build," --

%files -n lib%name
%_libdir/lib*.so*

%files -n lib%name-devel
%_bindir/*-config
%_libdir/lib*.so
%_libdir/*.exp
%_pkgconfigdir/apr-util-%apr_major_version.pc
%_datadir/apr-%apr_major_version/build/*.m4
%_includedir/*

%if_enabled static
%files -n lib%name-devel-static
%_libdir/lib*.a
%endif

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin