Группа :: Система/Серверы
Пакет: apache2-mod_apreq
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
# Spec file for Apache2 HTTP Server Request Library
Name: apache2-mod_apreq
Version: 2.16
Release: alt1
Summary: Apache2 HTTP request library
License: %asl 2.0
Group: System/Servers
Packager: Nikolay A. Fetisov <naf at altlinux.ru>
URL: http://httpd.apache.org/apreq/
Source0: libapreq2-%version.tar
Source1: apreq.conf
Source2: apreq.start
Source3: libapreq2.pc.in
Patch1: libapreq2-2.07-rc3-ldflags.patch
Patch2: libapreq2-2.09-pkgconfig.patch
Patch3: libapreq2-2.12-install.patch
Patch10: libapreq2-2.10-alt-apreq2-config.patch
Patch11: libapreq2-2.13-alt-t-util-stack.patch
Patch12: libapreq-2.13-debian-04-pass-libdir-to-configure.patch
Provides: libapreq = %version
Provides: libapreq2 = %version
Requires(pre): apache2 >= %apache2_version
BuildRequires(pre): rpm-build-licenses
BuildRequires(pre): apache2-devel >= 2.2.5
BuildRequires: %apache2_apr_buildreq
BuildRequires: chrpath
# Automatically added by buildreq on Sat Oct 15 2011
BuildRequires: apache2-httpd-prefork apache2-mod_perl-devel libexpat-devel perl-ExtUtils-XSBuilder perl-libwww
%define common_desc libapreq is a shared library with associated modules for manipulating\
client request data via the Apache API.\
%description
%common_desc
Functionality includes parsing of application/x-www-form-urlencoded
and multipart/form-data content, as well as HTTP cookies. It also
includes language bindings for Perl (Apache::Request and
Apache::Cookie).
%package devel
Summary: Development files for %name
Group: Development/C
Requires: %name = %version-%release
Requires: apache2-devel
Provides: libapreq-devel = %version
Provides: libapreq2-devel = %version
%description devel
%common_desc
This file contains files needed for building XS modules that use
libapreq2.
%package doc
Summary: Documentation for %name
Group: System/Servers
BuildArch: noarch
%description doc
%common_desc
This file contains documentation for libapreq2.
%package -n perl-libapreq2
Summary: Perl interface to the Apache HTTP request library
Group: Development/Perl
Requires: apache2-mod_perl >= 2.0.0
Provides: perl-libapreq = %version
%description -n perl-libapreq2
%common_desc
This package contains a Perl interface to the Apache HTTP request
library.
%prep
%setup -q -n libapreq2-%version
%patch1
%patch2
%patch3 -p1
%patch10
%patch11 -p2
%patch12 -p1
# Fix multilib
sed -i -e 's,^libdir=.*,libdir="`pkg-config --variable=libdir libapreq2`",' \
-e 's,^LDFLAGS=.*,LDFLAGS="`pkg-config --libs libapreq2`",' \
-e 's,^LIBS=.*,LIBS="`pkg-config --libs libapreq2`",' \
-e 's,^INCLUDES=.*,INCLUDES="`pkg-config --cflags-only-I libapreq2`",' \
apreq2-config.in
cp -p %SOURCE3 .
%build
rm -f aclocal.m4
./buildconf
%autoreconf
%configure \
--disable-dependency-tracking \
--disable-static \
--with-apache2-apxs=%apache2_apxs \
--with-apr-config=%apache2_apr_config \
--with-apu-config=%apache2_apu_config \
--enable-perl-glue \
--with-mm-opts=INSTALLDIRS=vendor \
%nil
%make_build
%install
%make_install install DESTDIR=%buildroot
mkdir -p %buildroot%_pkgconfigdir
install -p -m644 libapreq2.pc %buildroot%_pkgconfigdir/
install -pD -m644 %SOURCE1 %buildroot%apache2_mods_available/apreq.load
install -pD -m644 %SOURCE2 %buildroot%apache2_mods_start/100-apreq.conf
# Clean up BUILDROOT from files going to the debug package:
BUILDDIR=$( pwd )
BUILDDIR=$( dirname "${BUILDDIR}" )
find glue/ -name '*.c' -exec sed -e "s#${BUILDDIR}#/usr/src/debug#" -i {} \;
find glue/ -name '*.xs' -exec sed -e "s#${BUILDDIR}#/usr/src/debug#" -i {} \;
# Clean up RPATHes
chrpath -d %buildroot%perl_vendor_autolib/*/*/*.so
chrpath -d %buildroot%perl_vendor_autolib/*/*/*/*.so
# Documentation
cp -pR docs/html __docs
rm -rf __docs/installdox
mkdir -p %buildroot%_man3dir
cp -pR docs/man/man3/* %buildroot%_man3dir/
rm -f %buildroot%_man3dir/apreq_xs*
rm -f %buildroot%_man3dir/todo*
%files
%doc CHANGES NOTICE README
%config %apache2_mods_available/apreq.load
%config %apache2_mods_start/100-apreq.conf
%apache2_moduledir/mod_apreq2.so
%exclude %apache2_moduledir/mod_apreq2.la
%_libdir/libapreq2.so.*
%files devel
%_bindir/apreq2-config
%_includedir/apreq2*
%apache2_includedir/apreq2*
%_libdir/libapreq2.so
%_libdir/pkgconfig/*.pc
%_man3dir/apreq*
%_man3dir/libapreq*
%_man3dir/mod_apreq*
%files doc
%doc __docs/* docs/*.tag
%files -n perl-libapreq2
%doc glue/perl/README
%perl_vendor_autolib/APR*
%perl_vendor_archlib/APR*
%perl_vendor_archlib/Apache2*
%changelog
…
Полный changelog можно просмотреть здесь
Name: apache2-mod_apreq
Version: 2.16
Release: alt1
Summary: Apache2 HTTP request library
License: %asl 2.0
Group: System/Servers
Packager: Nikolay A. Fetisov <naf at altlinux.ru>
URL: http://httpd.apache.org/apreq/
Source0: libapreq2-%version.tar
Source1: apreq.conf
Source2: apreq.start
Source3: libapreq2.pc.in
Patch1: libapreq2-2.07-rc3-ldflags.patch
Patch2: libapreq2-2.09-pkgconfig.patch
Patch3: libapreq2-2.12-install.patch
Patch10: libapreq2-2.10-alt-apreq2-config.patch
Patch11: libapreq2-2.13-alt-t-util-stack.patch
Patch12: libapreq-2.13-debian-04-pass-libdir-to-configure.patch
Provides: libapreq = %version
Provides: libapreq2 = %version
Requires(pre): apache2 >= %apache2_version
BuildRequires(pre): rpm-build-licenses
BuildRequires(pre): apache2-devel >= 2.2.5
BuildRequires: %apache2_apr_buildreq
BuildRequires: chrpath
# Automatically added by buildreq on Sat Oct 15 2011
BuildRequires: apache2-httpd-prefork apache2-mod_perl-devel libexpat-devel perl-ExtUtils-XSBuilder perl-libwww
%define common_desc libapreq is a shared library with associated modules for manipulating\
client request data via the Apache API.\
%description
%common_desc
Functionality includes parsing of application/x-www-form-urlencoded
and multipart/form-data content, as well as HTTP cookies. It also
includes language bindings for Perl (Apache::Request and
Apache::Cookie).
%package devel
Summary: Development files for %name
Group: Development/C
Requires: %name = %version-%release
Requires: apache2-devel
Provides: libapreq-devel = %version
Provides: libapreq2-devel = %version
%description devel
%common_desc
This file contains files needed for building XS modules that use
libapreq2.
%package doc
Summary: Documentation for %name
Group: System/Servers
BuildArch: noarch
%description doc
%common_desc
This file contains documentation for libapreq2.
%package -n perl-libapreq2
Summary: Perl interface to the Apache HTTP request library
Group: Development/Perl
Requires: apache2-mod_perl >= 2.0.0
Provides: perl-libapreq = %version
%description -n perl-libapreq2
%common_desc
This package contains a Perl interface to the Apache HTTP request
library.
%prep
%setup -q -n libapreq2-%version
%patch1
%patch2
%patch3 -p1
%patch10
%patch11 -p2
%patch12 -p1
# Fix multilib
sed -i -e 's,^libdir=.*,libdir="`pkg-config --variable=libdir libapreq2`",' \
-e 's,^LDFLAGS=.*,LDFLAGS="`pkg-config --libs libapreq2`",' \
-e 's,^LIBS=.*,LIBS="`pkg-config --libs libapreq2`",' \
-e 's,^INCLUDES=.*,INCLUDES="`pkg-config --cflags-only-I libapreq2`",' \
apreq2-config.in
cp -p %SOURCE3 .
%build
rm -f aclocal.m4
./buildconf
%autoreconf
%configure \
--disable-dependency-tracking \
--disable-static \
--with-apache2-apxs=%apache2_apxs \
--with-apr-config=%apache2_apr_config \
--with-apu-config=%apache2_apu_config \
--enable-perl-glue \
--with-mm-opts=INSTALLDIRS=vendor \
%nil
%make_build
%install
%make_install install DESTDIR=%buildroot
mkdir -p %buildroot%_pkgconfigdir
install -p -m644 libapreq2.pc %buildroot%_pkgconfigdir/
install -pD -m644 %SOURCE1 %buildroot%apache2_mods_available/apreq.load
install -pD -m644 %SOURCE2 %buildroot%apache2_mods_start/100-apreq.conf
# Clean up BUILDROOT from files going to the debug package:
BUILDDIR=$( pwd )
BUILDDIR=$( dirname "${BUILDDIR}" )
find glue/ -name '*.c' -exec sed -e "s#${BUILDDIR}#/usr/src/debug#" -i {} \;
find glue/ -name '*.xs' -exec sed -e "s#${BUILDDIR}#/usr/src/debug#" -i {} \;
# Clean up RPATHes
chrpath -d %buildroot%perl_vendor_autolib/*/*/*.so
chrpath -d %buildroot%perl_vendor_autolib/*/*/*/*.so
# Documentation
cp -pR docs/html __docs
rm -rf __docs/installdox
mkdir -p %buildroot%_man3dir
cp -pR docs/man/man3/* %buildroot%_man3dir/
rm -f %buildroot%_man3dir/apreq_xs*
rm -f %buildroot%_man3dir/todo*
%files
%doc CHANGES NOTICE README
%config %apache2_mods_available/apreq.load
%config %apache2_mods_start/100-apreq.conf
%apache2_moduledir/mod_apreq2.so
%exclude %apache2_moduledir/mod_apreq2.la
%_libdir/libapreq2.so.*
%files devel
%_bindir/apreq2-config
%_includedir/apreq2*
%apache2_includedir/apreq2*
%_libdir/libapreq2.so
%_libdir/pkgconfig/*.pc
%_man3dir/apreq*
%_man3dir/libapreq*
%_man3dir/mod_apreq*
%files doc
%doc __docs/* docs/*.tag
%files -n perl-libapreq2
%doc glue/perl/README
%perl_vendor_autolib/APR*
%perl_vendor_archlib/APR*
%perl_vendor_archlib/Apache2*
%changelog
…
Полный changelog можно просмотреть здесь