ALT Linux repositórios
4.1: | 0.9.17-alt1 |
4.0: | 0.9.13-alt1 |
3.0: | 0.9.6-alt1 |
+backports: | 0.9.7-alt0.M30.2 |
Outros repositórios
Upstream: | 1.2.12 |
Group :: Sistema/Bibliotecas
RPM: apr
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
# hey Emacs, its -*- mode: rpm-spec; coding: cyrillic-cp1251; -*-
Name: apr
Version: 0.9.13
Release: alt1
Epoch: 1
Summary: Apache Portable Runtime
Group: System/Libraries
License: Apache
Url: http://apr.apache.org/
Packager: Sviatoslav Sviridov <svd at altlinux.ru>
# Do not define this variable to build release
#%%define cvsbuild 20031118
%ifdef cvsbuild
%define apr_cvsbuild 20031118111933
%define apr_filever _%apr_cvsbuild
%define apr_dir apr
%define cvsbuild_desc This package built from CVS snapshot %cvsbuild
%else
%define apr_filever -%version
%define apr_dir apr-%version
%define cvsbuild_desc %nil
%endif #cvsbuild
Source: apr%apr_filever.tar
Patch1: apr-0.9.12-alt-linkage.patch
%def_disable static
%{?_enable_static:BuildPreReq: glibc-devel-static}
%package -n lib%name
Summary: Apache Portable Runtime shared library
Group: System/Libraries
Provides: %name = %version-%release
Obsoletes: %name, lib%name-subversion
%package -n lib%name-devel
Summary: Apache Portable Runtime development files
Group: Development/C
Requires: lib%name = %version-%release
Provides: %name-devel = %version-%release
Obsoletes: %name-devel, lib%name-subversion-devel
%package -n lib%name-devel-static
Summary: Apache Portable Runtime static library
Group: Development/C
Requires: lib%name-devel = %version-%release
Provides: %name-devel-static = %version-%release
Obsoletes: %name-devel-static, lib%name-subversion-devel-static
%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 APR 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 APR 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 APR static library.
%prep
%setup -q -n %apr_dir
%patch1 -p2
%build
LIBTOOL_M4=%_datadir/libtool/aclocal/libtool.m4 ./buildconf
%configure --with-installbuilddir=%_datadir/apr/build \
--includedir=%_includedir/apr \
--enable-threads --with-devrandom \
%{subst_enable static}
%make_build
%install
%make_install DESTDIR=%buildroot install
find %buildroot%_bindir -type f -print0 |
xargs -r0 %__grep -FZl "$RPM_BUILD_DIR/%apr_dir" -- |
xargs -r0 %__subst "s,$RPM_BUILD_DIR/%apr_dir,%_datadir/apr," --
find %buildroot%_datadir -type f -print0 |
xargs -r0 %__grep -FZl "$RPM_BUILD_DIR/%apr_dir" -- |
xargs -r0 %__subst "s,$RPM_BUILD_DIR/%apr_dir\(/build\)\?,%_datadir/apr/build," --
%post -n lib%name -p %post_ldconfig
%postun -n lib%name -p %postun_ldconfig
%files -n lib%name
%_libdir/lib*.so*
%files -n lib%name-devel
%_bindir/*-config
%_libdir/lib*.so
%_libdir/*.exp
%_datadir/apr
%_includedir/*
%if_enabled static
%files -n lib%name-devel-static
%_libdir/lib*.a
%endif
%changelog
…
Todas as alterações você pod ver aqui
Name: apr
Version: 0.9.13
Release: alt1
Epoch: 1
Summary: Apache Portable Runtime
Group: System/Libraries
License: Apache
Url: http://apr.apache.org/
Packager: Sviatoslav Sviridov <svd at altlinux.ru>
# Do not define this variable to build release
#%%define cvsbuild 20031118
%ifdef cvsbuild
%define apr_cvsbuild 20031118111933
%define apr_filever _%apr_cvsbuild
%define apr_dir apr
%define cvsbuild_desc This package built from CVS snapshot %cvsbuild
%else
%define apr_filever -%version
%define apr_dir apr-%version
%define cvsbuild_desc %nil
%endif #cvsbuild
Source: apr%apr_filever.tar
Patch1: apr-0.9.12-alt-linkage.patch
%def_disable static
%{?_enable_static:BuildPreReq: glibc-devel-static}
%package -n lib%name
Summary: Apache Portable Runtime shared library
Group: System/Libraries
Provides: %name = %version-%release
Obsoletes: %name, lib%name-subversion
%package -n lib%name-devel
Summary: Apache Portable Runtime development files
Group: Development/C
Requires: lib%name = %version-%release
Provides: %name-devel = %version-%release
Obsoletes: %name-devel, lib%name-subversion-devel
%package -n lib%name-devel-static
Summary: Apache Portable Runtime static library
Group: Development/C
Requires: lib%name-devel = %version-%release
Provides: %name-devel-static = %version-%release
Obsoletes: %name-devel-static, lib%name-subversion-devel-static
%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 APR 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 APR 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 APR static library.
%prep
%setup -q -n %apr_dir
%patch1 -p2
%build
LIBTOOL_M4=%_datadir/libtool/aclocal/libtool.m4 ./buildconf
%configure --with-installbuilddir=%_datadir/apr/build \
--includedir=%_includedir/apr \
--enable-threads --with-devrandom \
%{subst_enable static}
%make_build
%install
%make_install DESTDIR=%buildroot install
find %buildroot%_bindir -type f -print0 |
xargs -r0 %__grep -FZl "$RPM_BUILD_DIR/%apr_dir" -- |
xargs -r0 %__subst "s,$RPM_BUILD_DIR/%apr_dir,%_datadir/apr," --
find %buildroot%_datadir -type f -print0 |
xargs -r0 %__grep -FZl "$RPM_BUILD_DIR/%apr_dir" -- |
xargs -r0 %__subst "s,$RPM_BUILD_DIR/%apr_dir\(/build\)\?,%_datadir/apr/build," --
%post -n lib%name -p %post_ldconfig
%postun -n lib%name -p %postun_ldconfig
%files -n lib%name
%_libdir/lib*.so*
%files -n lib%name-devel
%_bindir/*-config
%_libdir/lib*.so
%_libdir/*.exp
%_datadir/apr
%_includedir/*
%if_enabled static
%files -n lib%name-devel-static
%_libdir/lib*.a
%endif
%changelog
…
Todas as alterações você pod ver aqui