forked from pool/apache2-mod_perl
Accepting request 433337 from Apache:Modules
1 OBS-URL: https://build.opensuse.org/request/show/433337 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/apache2-mod_perl?expand=0&rev=41
This commit is contained in:
@@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Oct 3 11:15:45 UTC 2016 - tchvatal@suse.com
|
||||||
|
|
||||||
|
- Remove unused icon and shorten the description a bit 1-2 migration
|
||||||
|
is quite irelevant in these days
|
||||||
|
- Move tests to %check phase
|
||||||
|
- Use proper group for devel subpackage
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Dec 16 14:04:10 UTC 2015 - vcizek@suse.com
|
Wed Dec 16 14:04:10 UTC 2015 - vcizek@suse.com
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package apache2-mod_perl
|
# spec file for package apache2-mod_perl
|
||||||
#
|
#
|
||||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -17,7 +17,6 @@
|
|||||||
|
|
||||||
|
|
||||||
%define srcname mod_perl
|
%define srcname mod_perl
|
||||||
|
|
||||||
Name: apache2-mod_perl
|
Name: apache2-mod_perl
|
||||||
Version: 2.0.9
|
Version: 2.0.9
|
||||||
Release: 0
|
Release: 0
|
||||||
@@ -50,10 +49,9 @@ Requires: perl-Tie-IxHash
|
|||||||
Requires: perl-URI
|
Requires: perl-URI
|
||||||
Requires: perl-libwww-perl
|
Requires: perl-libwww-perl
|
||||||
Requires: perl(Linux::Pid)
|
Requires: perl(Linux::Pid)
|
||||||
|
Conflicts: mod_perl
|
||||||
Obsoletes: mod_perl_2
|
Obsoletes: mod_perl_2
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
Conflicts: mod_perl
|
|
||||||
Icon: mod_perl.xpm
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The Apache/Perl integration project brings together the full power of
|
The Apache/Perl integration project brings together the full power of
|
||||||
@@ -69,29 +67,10 @@ gateway interface (CGI). mod_perl enables you to run Perl scripts in an
|
|||||||
embedded interpreter if the additional performance is needed, but may
|
embedded interpreter if the additional performance is needed, but may
|
||||||
require modifications to the scripts.
|
require modifications to the scripts.
|
||||||
|
|
||||||
Usage:
|
|
||||||
|
|
||||||
To load the module into Apache, run the command "a2enmod perl" as root.
|
|
||||||
|
|
||||||
To learn about the configuration, the best reference unequivocally is
|
|
||||||
http://perl.apache.org/docs/
|
|
||||||
|
|
||||||
For porting 1.0 applications to 2.0, the page
|
|
||||||
http://perl.apache.org/docs/2.0/user/porting/compat.html should give
|
|
||||||
the required information.
|
|
||||||
|
|
||||||
Most mod_perl handlers use the perl-script handler. Scripts can run in
|
|
||||||
"mod_perl mode" (preconfigured for URLs starting with /perl/) or "perl
|
|
||||||
cgi mode" (preconfigured for URLs starting /cgi-perl). Plain CGI
|
|
||||||
scripts can be run via /cgi-bin/. In all these cases, the script would
|
|
||||||
be placed inside the /srv/www/cgi-bin/ directory. Refer to
|
|
||||||
%{_sysconfdir}/apache2/conf.d/mod_perl.conf about this configuration.
|
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Embedded Perl for Apache - Development package
|
Summary: Embedded Perl for Apache - Development package
|
||||||
Group: Productivity/Networking/Web/Servers
|
Group: Development/Languages/Perl
|
||||||
Requires: %{name} = %{version}
|
Requires: %{name} = %{version}
|
||||||
Provides: apache2-mod_perl:%{_includedir}/apache2/modules/perl/modperl_cgi.h
|
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
The Apache/Perl integration project brings together the full power of
|
The Apache/Perl integration project brings together the full power of
|
||||||
@@ -108,16 +87,14 @@ software depending on apache2-mod_perl.
|
|||||||
%build
|
%build
|
||||||
perl Makefile.PL INSTALLDIRS=vendor MP_APXS=%{apache_apxs} MP_APR_CONFIG=%{_bindir}/apr-1-config MP_CCOPTS="%{apache_cflags} -fgnu89-inline"
|
perl Makefile.PL INSTALLDIRS=vendor MP_APXS=%{apache_apxs} MP_APR_CONFIG=%{_bindir}/apr-1-config MP_CCOPTS="%{apache_cflags} -fgnu89-inline"
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
#
|
|
||||||
# Run tests
|
%check
|
||||||
#
|
|
||||||
%if !0%{?qemu_user_space_build}
|
%if !0%{?qemu_user_space_build}
|
||||||
mkdir t/run
|
mkdir t/run
|
||||||
t/TEST -start-httpd -port select -startup_timeout 720
|
t/TEST -start-httpd -port select -startup_timeout 720
|
||||||
t/TEST -run-tests || true
|
t/TEST -run-tests || true
|
||||||
t/TEST -stop-httpd
|
t/TEST -stop-httpd
|
||||||
%endif
|
%endif
|
||||||
exit 0
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%perl_make_install
|
%perl_make_install
|
||||||
|
Reference in New Issue
Block a user