8
0

Accepting request 432861 from home:scarabeus_iv:branches:Apache:Modules

- 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

OBS-URL: https://build.opensuse.org/request/show/432861
OBS-URL: https://build.opensuse.org/package/show/Apache:Modules/apache2-mod_perl?expand=0&rev=64
This commit is contained in:
2016-10-05 11:43:00 +00:00
committed by Git OBS Bridge
parent c360c9bf67
commit 7604b2741a
3 changed files with 13 additions and 108 deletions

View File

@@ -1,7 +1,7 @@
#
# 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
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,6 @@
%define srcname mod_perl
Name: apache2-mod_perl
Version: 2.0.9
Release: 0
@@ -50,10 +49,9 @@ Requires: perl-Tie-IxHash
Requires: perl-URI
Requires: perl-libwww-perl
Requires: perl(Linux::Pid)
Conflicts: mod_perl
Obsoletes: mod_perl_2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Conflicts: mod_perl
Icon: mod_perl.xpm
%description
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
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
Summary: Embedded Perl for Apache - Development package
Group: Productivity/Networking/Web/Servers
Group: Development/Languages/Perl
Requires: %{name} = %{version}
Provides: apache2-mod_perl:%{_includedir}/apache2/modules/perl/modperl_cgi.h
%description devel
The Apache/Perl integration project brings together the full power of
@@ -108,16 +87,14 @@ software depending on apache2-mod_perl.
%build
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}
#
# Run tests
#
%check
%if !0%{?qemu_user_space_build}
mkdir t/run
t/TEST -start-httpd -port select -startup_timeout 720
t/TEST -run-tests || true
t/TEST -stop-httpd
%endif
exit 0
%install
%perl_make_install