Search
j0ke.net Open Build Service
>
Projects
>
Apache
:
Modules
>
apache2-mod_apreq2
> libapreq2.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File libapreq2.spec of Package apache2-mod_apreq2
# vim: set sw=4 ts=4 et: %define apxs /usr/sbin/apxs2 %define apache_mmn %(MMN=$(%{apxs} -q LIBEXECDIR)_MMN; test -x "$MMN" && "$MMN") %define apache_libexecdir %(%{apxs} -q LIBEXECDIR) %define apache_sysconfdir %(%{apxs} -q SYSCONFDIR) Name: libapreq2-3 Version: 2.13 Release: 0 Summary: Safe, Standards-compliant, High-Performance Library for HTTP # http://mirrors.isc.org/pub/apache/httpd/libapreq/libapreq2-%{version}.tar.gz Source: libapreq2-%{version}.tar.bz2 Patch1: libapreq2-mod_perl_include.patch Patch2: libapreq2-perl_install_vendor.patch Patch3: libapreq2-fix_config.patch URL: http://httpd.apache.org/apreq Group: System/Libraries License: Apache Software License version 2.0 (ASL v2.0) BuildRoot: %{_tmppath}/build-%{name}-%{version} BuildRequires: apache2-mod_perl-devel perl perl-ExtUtils-XSBuilder BuildRequires: apache2-devel libapr1-devel libapr-util1-devel openldap2-devel %if 0%{?suse_version} > 1020 BuildRequires: libexpat-devel %else BuildRequires: expat %endif BuildRequires: gcc make glibc-devel pkgconfig BuildRequires: autoconf automake libtool %description httpd-apreq is subproject of the Apache HTTP Server Project whose committers develop and maintain the libapreq C library and its language bindings for Perl (contributions for additional language bindings are most welcome). libapreq is a safe, standards-compliant, high-performance library used for parsing HTTP cookies, query-strings and POST data. Authors: -------- apreq-dev@httpd.apache.org %package -n libapreq2-devel Summary: Safe, Standards-compliant, High-Performance Library for HTTP Group: Development/Libraries/C and C++ Requires: %{name} = %{version}-%{release} Requires: libapr1-devel libapr-util1-devel glibc-devel %if 0%{?suse_version} > 1020 Requires: libexpat-devel %else Requires: expat %endif Provides: %{name}-devel = %{version}-%{release} %description -n libapreq2-devel httpd-apreq is subproject of the Apache HTTP Server Project whose committers develop and maintain the libapreq C library and its language bindings for Perl (contributions for additional language bindings are most welcome). libapreq is a safe, standards-compliant, high-performance library used for parsing HTTP cookies, query-strings and POST data. %package -n apache2-mod_apreq2 Summary: Filter Module for Apache2 based on libapreq2 Group: Productivity/Networking/Web/Servers Requires: %{name} = %{version}-%{release} Requires: apache2 Requires: %{apache_mmn} %description -n apache2-mod_apreq2 Filter module for Apache2, based on libapreq2. %package -n apache2-mod_apreq2-devel Summary: Filter Module for Apache2 based on libapreq2 Group: Development/Libraries/C and C++ Requires: libapreq2-devel = %{version}-%{release} Requires: apache2-devel %description -n apache2-mod_apreq2-devel Filter module for Apache2, based on libapreq2. This package contains the header. %package -n perl-Apache2-Request Summary: Perl Bindings for libapreq2 Group: Productivity/Networking/Web/Servers Provides: perl-Apache2-Cookie = %{version}-%{release} Provides: perl-Apache2-Upload = %{version}-%{release} Provides: perl-APR-Request = %{version}-%{release} %description -n perl-Apache2-Request Apache mod_perl2 bindings for libapreq2. #debug_package %prep %setup -q -n "libapreq2-%{version}" %patch1 %patch2 %__cp apreq2-config.in apreq2-config-build.in %patch3 %build %configure \ --with-perl=%__perl \ --enable-perl-glue \ --with-apache2-apxs=%apxs %__make apreq2-config %__mv apreq2-config apreq2-config-dist %__mv apreq2-config-build.in apreq2-config.in %__make apreq2-config %__make %{?jobs:-j%{jobs}} %install %makeinstall %__rm "%{buildroot}%{_libdir}/apache2"/*.{a,la} %__rm "%{buildroot}%{_bindir}/apreq2-config" %__install -m0755 apreq2-config-dist "%{buildroot}%{_bindir}/apreq2-config" %perl_process_packlist %if 0%{?suse_version} >= 1140 rm -rf $RPM_BUILD_ROOT/var/adm/perl-modules %endif %__install -d "%{buildroot}%{_libdir}/pkgconfig" cat<<EOF >"%{buildroot}%{_libdir}/pkgconfig/apreq2.pc" prefix=%{_prefix} exec_prefix=%{_exec_prefix} libdir=%{_libdir} includedir=%{_includedir} Name: libapreq2 Description: Library for parsing HTTP cookies, query-strings and POST data Version: %{version} Requires: apr-1 apr-util-1 Libs: -L${libdir} -lapreq2 Cflags: -I${includedir} EOF %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %clean %{?buildroot:%__rm -rf "%{buildroot}"} %files %defattr(-,root,root) %doc CHANGES LICENSE README STATUS NOTICE %{_libdir}/libapreq2.so.3 %{_libdir}/libapreq2.so.3.*.* %files -n libapreq2-devel %defattr(-,root,root) %{_bindir}/apreq2-config %{_includedir}/apreq2 %{_libdir}/libapreq2.so %{_libdir}/libapreq2.a %{_libdir}/libapreq2.la %{_libdir}/pkgconfig/apreq2.pc %files -n apache2-mod_apreq2 %defattr(-,root,root) %dir %{apache_libexecdir} %{apache_libexecdir}/mod_apreq2.so %files -n apache2-mod_apreq2-devel %defattr(-,root,root) %dir %{_includedir}/apache2 %{_includedir}/apache2/apreq2 %files -n perl-Apache2-Request %defattr(-,root,root) %dir %{perl_vendorarch}/Apache2 %{perl_vendorarch}/Apache2/Cookie.pm %{perl_vendorarch}/Apache2/Request.pm %{perl_vendorarch}/Apache2/Upload.pm %dir %{perl_vendorarch}/APR #%{perl_vendorarch}/APR/DummyVersions.pm %{perl_vendorarch}/APR/Request.pm %{perl_vendorarch}/APR/Request.pod %dir %{perl_vendorarch}/APR/Request %{perl_vendorarch}/APR/Request/*.pm %{perl_vendorarch}/APR/Request/*.pod %dir %{perl_vendorarch}/auto/APR %dir %{perl_vendorarch}/auto/APR/Request %{perl_vendorarch}/auto/APR/Request/* %dir %{perl_vendorarch}/auto/libapreq2 %doc %{perl_man3dir}/Apache2::Cookie.%{perl_man3ext}* %doc %{perl_man3dir}/Apache2::Request.%{perl_man3ext}* %doc %{perl_man3dir}/Apache2::Upload.%{perl_man3ext}* %doc %{perl_man3dir}/APR::Request.%{perl_man3ext}* %doc %{perl_man3dir}/APR::Request::*.%{perl_man3ext}* %if 0%{?suse_version} <= 1130 %{perl_vendorarch}/auto/libapreq2/.packlist /var/adm/perl-modules/libapreq2-3 %endif