Hello community,
here is the log from the commit of package apache2-mod_fcgid for
openSUSE:Factory checked in at 2019-07-04 15:42:57
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/apache2-mod_fcgid (Old)
and /work/SRC/openSUSE:Factory/.apache2-mod_fcgid.new.4615 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "apache2-mod_fcgid"
Thu Jul 4 15:42:57 2019 rev:31 rq:713070 version:2.3.9
Changes:
--------
--- /work/SRC/openSUSE:Factory/apache2-mod_fcgid/apache2-mod_fcgid.changes
2017-05-20 10:14:27.713112995 +0200
+++
/work/SRC/openSUSE:Factory/.apache2-mod_fcgid.new.4615/apache2-mod_fcgid.changes
2019-07-04 15:42:58.814081906 +0200
@@ -1,0 +2,5 @@
+Tue Jun 25 13:53:57 UTC 2019 - [email protected]
+
+- test via apache-rex instead
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ apache2-mod_fcgid.spec ++++++
--- /var/tmp/diff_new_pack.GjbRhu/_old 2019-07-04 15:42:59.738083350 +0200
+++ /var/tmp/diff_new_pack.GjbRhu/_new 2019-07-04 15:42:59.738083350 +0200
@@ -1,7 +1,7 @@
#
# spec file for package apache2-mod_fcgid
#
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 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
@@ -12,7 +12,7 @@
# 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/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
@@ -20,7 +20,7 @@
Version: 2.3.9
Release: 0
Summary: Alternative FastCGI module for Apache2
-License: GPL-2.0+
+License: GPL-2.0-or-later
Group: Productivity/Networking/Web/Servers
Url: http://httpd.apache.org/mod_fcgid/
Source:
http://mirror.synyx.de/apache/httpd/mod_fcgid/mod_fcgid-%{version}.tar.bz2
@@ -31,7 +31,8 @@
BuildRequires: apache-rpm-macros
BuildRequires: apache2-devel
# for testing
-BuildRequires: curl
+BuildRequires: apache-rex
+%apache_rex_deps
BuildRequires: perl-FastCGI
Requires: %{apache_mmn}
Requires: %{apache_suse_maintenance_mmn}
@@ -67,62 +68,7 @@
install -d -m 0755 %{buildroot}%{_localstatedir}/lib/apache2/fcgid/
%check
-set +x
-mkdir -p %{apache_test_module_dir}
-# create test configuration
-cp %{SOURCE1} %{apache_test_module_dir}/mod_fcgid-test.conf
-cat << EOF > %{apache_test_module_dir}/mod_fcgid-test-access.conf
-LogLevel debug
-<Directory %{apache_test_module_dir}/htdocs/fcgi-bin/>
- SetHandler fcgid-script
- Options +ExecCGI
-%if 0%{?apache_access_syntax_version} >= 24
- Require local
-%else
- Allow from localhost
-%endif
-</Directory>
-EOF
-mkdir -p "%{apache_test_module_dir}%{_localstatedir}/lib/apache2/fcgid/"
-sed -i
"s:%{_localstatedir}/lib:%{apache_test_module_dir}%{_localstatedir}/lib:"
%{apache_test_module_dir}/mod_fcgid-test.conf
-mkdir -p %{apache_test_module_dir}/htdocs/fcgi-bin/
-# create a fcgi script
-cat << 'EOF' > %{apache_test_module_dir}/htdocs/fcgi-bin/showenv.pl
-#!/usr/bin/perl
-use FCGI;
-my $request = FCGI::Request();
-while ($request->Accept() >= 0) {
- print "Content-Type: text/plain\r\n\r\n";
- foreach my $env (keys %ENV) {
- print "env $env = $ENV{$env}\n";
- }
- print STDERR 'request received'
-}
-EOF
-chmod 755 %{apache_test_module_dir}/htdocs/fcgi-bin/showenv.pl
-# start apache
-%apache_test_module_start_apache -m fcgid -i
mod_fcgid-test.conf:mod_fcgid-test-access.conf
-# get the document
-%apache_test_module_curl -d /fcgi-bin/showenv.pl -o
%{apache_test_module_dir}/output.txt
-# check the output
-echo
-echo 'Testing /fcgi-bin/showenv.pl output'
-exit_code=0
-grep 'HTTP_ACCEPT' %{apache_test_module_dir}/output.txt || exit_code=1
-grep 'REQUEST_METHOD' %{apache_test_module_dir}/output.txt || exit_code=1
-echo 'The output from stderr was logged in error_log'
-grep 'request received' %{apache_test_module_dir}/error_log || exit_code=2
-if [ $exit_code -eq 0 ]; then
- echo 'SUCCESS'
-else
- echo 'FAILED, error_log:'
- cat %{apache_test_module_dir}/error_log
-fi
-echo
-# stop apache
-%apache_test_module_stop_apache
-set -x
-exit $exit_code
+%apache_rex_check -m modules/fcgid/.libs mod_fcgid-basic
%files
%defattr(-,root,root)