Search
j0ke.net Open Build Service
>
Projects
>
SUSE
:
Manager
:
1.2
>
libapreq2-3
> libapreq2-3.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File libapreq2-3.spec of Package libapreq2-3
# # spec file for package libapreq2-3 (Version 2.12) # # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild %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.12 Release: 0.2.9 Summary: Safe, Standards-compliant, High-Performance Library for HTTP Source: http://mirrors.isc.org/pub/apache/httpd/libapreq/libapreq2-%{version}.tar.gz 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: The Apache Software License BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: apache2-mod_perl-devel perl perl-ExtUtils-XSBuilder BuildRequires: apache2-devel libapr-util1-devel libapr1-devel openldap2-devel %if 0%{?suse_version} > 1020 BuildRequires: libexpat-devel %else BuildRequires: expat %endif BuildRequires: gcc glibc-devel make 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 License: The Apache Software License Summary: Include Files and Libraries mandatory for Development with libapreq2. 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 This package contains all necessary include files and libraries needed to develop applications that make use of libapreq2. %package -n apache2-mod_apreq2 License: The Apache Software License 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 License: The Apache Software License 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 License: The Apache Software License 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} Requires: apache2-mod_apreq2 %description -n perl-Apache2-Request Apache mod_perl2 bindings for libapreq2. %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 %__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 ln -sf %{apache_libexecdir}/mod_apreq2.so %{buildroot}%{apache_libexecdir}/mod_apreq.so %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %clean %__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 %{apache_libexecdir}/mod_apreq.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 %{perl_vendorarch}/auto/libapreq2/.packlist %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}* /var/adm/perl-modules/%{name} # vim: set sw=3 ts=3 noet: # Local Variables: # mode: rpm-spec # tab-width: 3 # End: %changelog * Thu Dec 9 2010 mc@suse.de - initial release