ALT Linux repositórios
S: | 1.7.0-alt4 |
D: | 1.2.12-alt2.1 |
5.0: | 1.4.6-alt0.M51.1 |
4.1: | 1.2.12-alt2 |
4.0: | 1.2.8-alt1.2 |
+updates: | 1.2.8-alt1.2 |
Group :: Sistema/Bibliotecas
RPM: apr1
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
# hey Emacs, its -*- mode: rpm-spec; coding: cyrillic-cp1251; -*-
%define apr_major_version 1
Name: apr%apr_major_version
Version: 1.2.12
Release: alt2
Summary: Apache Portable Runtime
Group: System/Libraries
License: Apache
Url: http://apr.apache.org/
Packager: Grigory Batalov <bga 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-1.2.8-alt-linkage.patch
Patch2: apr-1.2.2-alt-pkgconfig.patch
Patch3: apr-1.2.8-asf-apr_table_clone.patch
%def_disable static
%{?_enable_static:BuildPreReq: glibc-devel-static}
BuildRequires: python-base python-modules-encodings
%add_findreq_skiplist %_datadir/apr-1/build/config.guess
%package -n lib%name
Summary: Apache Portable Runtime shared library
Group: System/Libraries
%package -n lib%name-devel
Summary: Apache Portable Runtime development files
Group: Development/C
Requires: lib%name = %version-%release
Conflicts: libapr-devel
%package -n lib%name-devel-static
Summary: Apache Portable Runtime static library
Group: Development/C
Requires: lib%name-devel = %version-%release
%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
%patch2 -p1
%patch3 -p1
%build
LIBTOOL_M4=%_datadir/libtool/aclocal/libtool.m4 ./buildconf
%configure --with-installbuilddir=%_datadir/apr-%apr_major_version/build \
--includedir=%_includedir/apr-%apr_major_version \
--enable-threads --with-devrandom \
%{subst_enable static}
%make_build
%install
%make_install DESTDIR=%buildroot install
install build/PrintPath %buildroot%_datadir/apr-%apr_major_version/build/
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-%apr_major_version," --
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-%apr_major_version/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
%_pkgconfigdir/apr-%apr_major_version.pc
%_datadir/apr-%apr_major_version
%_includedir/*
%if_enabled static
%files -n lib%name-devel-static
%_libdir/lib*.a
%endif
%changelog
…
Todas as alterações você pod ver aqui
%define apr_major_version 1
Name: apr%apr_major_version
Version: 1.2.12
Release: alt2
Summary: Apache Portable Runtime
Group: System/Libraries
License: Apache
Url: http://apr.apache.org/
Packager: Grigory Batalov <bga 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-1.2.8-alt-linkage.patch
Patch2: apr-1.2.2-alt-pkgconfig.patch
Patch3: apr-1.2.8-asf-apr_table_clone.patch
%def_disable static
%{?_enable_static:BuildPreReq: glibc-devel-static}
BuildRequires: python-base python-modules-encodings
%add_findreq_skiplist %_datadir/apr-1/build/config.guess
%package -n lib%name
Summary: Apache Portable Runtime shared library
Group: System/Libraries
%package -n lib%name-devel
Summary: Apache Portable Runtime development files
Group: Development/C
Requires: lib%name = %version-%release
Conflicts: libapr-devel
%package -n lib%name-devel-static
Summary: Apache Portable Runtime static library
Group: Development/C
Requires: lib%name-devel = %version-%release
%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
%patch2 -p1
%patch3 -p1
%build
LIBTOOL_M4=%_datadir/libtool/aclocal/libtool.m4 ./buildconf
%configure --with-installbuilddir=%_datadir/apr-%apr_major_version/build \
--includedir=%_includedir/apr-%apr_major_version \
--enable-threads --with-devrandom \
%{subst_enable static}
%make_build
%install
%make_install DESTDIR=%buildroot install
install build/PrintPath %buildroot%_datadir/apr-%apr_major_version/build/
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-%apr_major_version," --
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-%apr_major_version/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
%_pkgconfigdir/apr-%apr_major_version.pc
%_datadir/apr-%apr_major_version
%_includedir/*
%if_enabled static
%files -n lib%name-devel-static
%_libdir/lib*.a
%endif
%changelog
…
Todas as alterações você pod ver aqui