Skip to content
This repository has been archived by the owner on Feb 18, 2022. It is now read-only.

Commit

Permalink
Move httpd module to a mod_php subpackage
Browse files Browse the repository at this point in the history
  • Loading branch information
carlwgeorge committed Apr 25, 2019
1 parent eda7786 commit 19abe51
Showing 1 changed file with 20 additions and 17 deletions.
37 changes: 20 additions & 17 deletions php73.spec
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,6 @@ Patch300: php-5.6.3-datetests.patch


BuildRequires: bzip2-devel, curl-devel >= 7.9
# ensure we build with stock httpd, not httpd24u
BuildRequires: httpd-devel < 2.4.10
BuildRequires: pam-devel
BuildRequires: libstdc++-devel, openssl-devel
BuildRequires: sqlite-devel >= 3.6.0
Expand All @@ -147,16 +145,27 @@ BuildRequires: libargon2-devel
# used for tests
BuildRequires: %{_bindir}/ps


%description
PHP is an HTML-embedded scripting language. PHP attempts to make it
easy for developers to write dynamically generated web pages. PHP also
offers built-in database integration for several commercial and
non-commercial database management systems, so writing a
database-enabled webpage with PHP is fairly simple. The most common
use of PHP coding is probably as a replacement for CGI scripts.

%package -n mod_%{name}
Summary: PHP module for the Apache HTTP Server
# ensure we build with stock httpd, not httpd24u
BuildRequires: httpd-devel < 2.4.10
Requires: httpd-mmn = %{_httpd_mmn}
Requires: php-common%{?_isa} = %{version}-%{release}
%if %{with_zts}
Provides: php-zts = %{version}-%{release}
Provides: php-zts%{?_isa} = %{version}-%{release}
%endif

Requires: httpd-mmn = %{_httpd_mmn}
Requires: php-common%{?_isa} = %{version}-%{release}
# php engine for Apache httpd webserver
Provides: php(httpd)

# safe replacement
Provides: php = %{version}-%{release}
Provides: php%{?_isa} = %{version}-%{release}
Expand All @@ -165,16 +174,9 @@ Provides: mod_php = %{version}-%{release}
Provides: mod_php%{?_isa} = %{version}-%{release}
Conflicts: mod_php < %{version}-%{release}

%description
PHP is an HTML-embedded scripting language. PHP attempts to make it
easy for developers to write dynamically generated web pages. PHP also
offers built-in database integration for several commercial and
non-commercial database management systems, so writing a
database-enabled webpage with PHP is fairly simple. The most common
use of PHP coding is probably as a replacement for CGI scripts.

The php package contains the module (often referred to as mod_php)
which adds support for the PHP language to Apache HTTP Server.
%description -n mod_%{name}
The mod_%{name} package contains the module which adds support for the PHP
language to Apache HTTP Server.

%package cli
Summary: Command-line interface for PHP
Expand Down Expand Up @@ -1524,7 +1526,7 @@ rm -f README.{Zeus,QNX,CVS-RULES}
%post embedded -p /sbin/ldconfig
%postun embedded -p /sbin/ldconfig

%files
%files -n mod_%{name}
%{_httpd_moddir}/libphp7.so
%if %{with_zts}
%{_httpd_moddir}/libphp7-zts.so
Expand Down Expand Up @@ -1675,6 +1677,7 @@ rm -f README.{Zeus,QNX,CVS-RULES}
%changelog
* Wed Apr 17 2019 Matt Linscott <matt.linscott@gmail.com> - 7.3.4-2
- Initial port from Fedora to IUS
- Move httpd module to a mod_php subpackage

* Tue Apr 2 2019 Remi Collet <remi@remirepo.net> - 7.3.4-1
- Update to 7.3.4 - http://www.php.net/releases/7_3_4.php
Expand Down

0 comments on commit 19abe51

Please sign in to comment.