Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
isv:cpanel:dev:EA4
scl-php72-meta
ea-php72-meta.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ea-php72-meta.spec of Package scl-php72-meta
# Defining the package namespace %global ns_name ea %global ns_dir /opt/cpanel %global _scl_prefix %{ns_dir} %global scl_name_base %{ns_name}-php %global scl_macro_base %{ns_name}_php %global scl_name_version 72 %global scl %{scl_name_base}%{scl_name_version} %scl_package %scl Summary: Package that installs PHP 7.2 Name: %scl_name Version: 7.2.34 Vendor: cPanel, Inc. # Doing release_prefix this way for Release allows for OBS-proof versioning, See EA-4590 for more details %define release_prefix 3 Release: %{release_prefix}%{?dist}.cpanel Group: Development/Languages License: GPLv2+ Source0: macros-build Source1: README Source2: LICENSE Source3: whm_feature_addon BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: scl-utils-build BuildRequires: help2man # Temporary work-around BuildRequires: iso-codes Requires: %{?scl_prefix}php-common Requires: %{?scl_prefix}php-cli # Our code requires that pear be installed when the meta package is installed Requires: %{?scl_prefix}pear %description This is the main package for %scl Software Collection, that install PHP 7.2 language. %package runtime Summary: Package that handles %scl Software Collection. Group: Development/Languages Requires: scl-utils %description runtime Package shipping essential scripts to work with %scl Software Collection. %package build Summary: Package shipping basic build configuration Group: Development/Languages Requires: scl-utils-build %description build Package shipping essential configuration macros to build %scl Software Collection. %package scldevel Summary: Package shipping development files for %scl Group: Development/Languages Provides: ea-php-scldevel = %{version} Conflicts: ea-php-scldevel > %{version}, ea-php-scldevel < %{version} %description scldevel Package shipping development files, especially usefull for development of packages depending on %scl Software Collection. %prep %setup -c -T cat <<EOF | tee enable export PATH=%{_bindir}:%{_sbindir}\${PATH:+:\${PATH}} export MANPATH=%{_mandir}:\${MANPATH} EOF # generate rpm macros file for depended collections cat << EOF | tee scldev %%scl_%{scl_macro_base} %{scl} %%scl_prefix_%{scl_macro_base} %{scl_prefix} EOF # This section generates README file from a template and creates man page # from that file, expanding RPM macros in the template file. cat >README <<'EOF' %{expand:%(cat %{SOURCE1})} EOF # copy the license file so %%files section sees it cp %{SOURCE2} . %build # generate a helper script that will be used by help2man cat >h2m_helper <<'EOF' #!/bin/bash [ "$1" == "--version" ] && echo "%{scl_name} %{version} Software Collection" || cat README EOF chmod a+x h2m_helper # generate the man page help2man -N --section 7 ./h2m_helper -o %{scl_name}.7 %install [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} install -D -m 644 enable %{buildroot}%{_scl_scripts}/enable install -D -m 644 scldev %{buildroot}%{_root_sysconfdir}/rpm/macros.%{scl_name_base}-scldevel install -D -m 644 %{scl_name}.7 %{buildroot}%{_mandir}/man7/%{scl_name}.7 mkdir -p %{buildroot}/opt/cpanel/ea-php72/root/etc mkdir -p %{buildroot}/opt/cpanel/ea-php72/root/usr/share/doc mkdir -p %{buildroot}/opt/cpanel/ea-php72/root/usr/include mkdir -p %{buildroot}/opt/cpanel/ea-php72/root/usr/share/man/man1 mkdir -p %{buildroot}/opt/cpanel/ea-php72/root/usr/bin mkdir -p %{buildroot}/opt/cpanel/ea-php72/root/usr/var/cache mkdir -p %{buildroot}/opt/cpanel/ea-php72/root/usr/var/tmp mkdir -p %{buildroot}/opt/cpanel/ea-php72/root/usr/%{_lib} mkdir -p %{buildroot}/usr/local/cpanel/whostmgr/addonfeatures install %{SOURCE3} %{buildroot}/usr/local/cpanel/whostmgr/addonfeatures/%{name} # Even if this package doesn't use it we need to do this because if another # package does (e.g. pear licenses) it will be created and unowned by any RPM %if 0%{?_licensedir:1} mkdir %{buildroot}/%{_licensedir} %endif %scl_install tmp_version=$(echo %{scl_name_version} | sed -re 's/([0-9])([0-9])/\1\.\2/') sed -e 's/@SCL@/%{scl_macro_base}%{scl_name_version}/g' -e "s/@VERSION@/${tmp_version}/g" %{SOURCE0} \ | tee -a %{buildroot}%{_root_sysconfdir}/rpm/macros.%{scl}-config # Remove empty share/[man|locale]/ directories find %{buildroot}/opt/cpanel/%{scl}/root/usr/share/man/ -type d -empty -delete find %{buildroot}/opt/cpanel/%{scl}/root/usr/share/locale/ -type d -empty -delete mkdir -p %{buildroot}/opt/cpanel/%{scl}/root/usr/share/locale %clean [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} %files %files runtime %defattr(-,root,root) %doc README LICENSE %scl_files %{_mandir}/man7/%{scl_name}.* %dir /opt/cpanel/ea-php72/root/etc %dir /opt/cpanel/ea-php72/root/usr %dir /opt/cpanel/ea-php72/root/usr/share %dir /opt/cpanel/ea-php72/root/usr/share/doc %dir /opt/cpanel/ea-php72/root/usr/include %dir /opt/cpanel/ea-php72/root/usr/share/man %dir /opt/cpanel/ea-php72/root/usr/bin %dir /opt/cpanel/ea-php72/root/usr/var %dir /opt/cpanel/ea-php72/root/usr/var/cache %dir /opt/cpanel/ea-php72/root/usr/var/tmp %dir /opt/cpanel/ea-php72/root/usr/%{_lib} %attr(644, root, root) /usr/local/cpanel/whostmgr/addonfeatures/%{name} %if 0%{?_licensedir:1} %dir %{_licensedir} %endif %files build %defattr(-,root,root) %{_root_sysconfdir}/rpm/macros.%{scl}-config %files scldevel %defattr(-,root,root) %{_root_sysconfdir}/rpm/macros.%{scl_name_base}-scldevel %changelog * Wed May 10 2023 Brian Mendoza <brian.mendoza@cpanel.net> - 7.2.34-3 - ZC-10936: Clean up Makefile and remove debug-package-nil * Mon Jun 28 2021 Travis Holloway <t.holloway@cpanel.net> - 7.2.34-2 - EA-9013: Disable %check section * Thu Oct 01 2020 Cory McIntire <cory@cpanel.net> - 7.2.34-1 - EA-9338: Update scl-php72 from v7.2.33 to v7.2.34 * Thu Aug 06 2020 Cory McIntire <cory@cpanel.net> - 7.2.33-1 - EA-9222: Update scl-php72 from v7.2.32 to v7.2.33 * Thu Jul 09 2020 Cory McIntire <cory@cpanel.net> - 7.2.32-1 - EA-9152: Update scl-php72 from v7.2.31 to v7.2.32 * Thu May 14 2020 Cory McIntire <cory@cpanel.net> - 7.2.31-1 - EA-9067: Update scl-php72 from v7.2.30 to v7.2.31 * Thu Apr 23 2020 Daniel Muey <dan@cpanel.net> - 7.2.30-2 - ZC-6611: Do not package empty share directories * Fri Apr 17 2020 Cory McIntire <cory@cpanel.net> - 7.2.30-1 - EA-9015: Update scl-php72 from v7.2.29 to v7.2.30 * Thu Mar 19 2020 Cory McIntire <cory@cpanel.net> - 7.2.29-1 - EA-8931: Update scl-php72 from v7.2.28 to v7.2.29 * Thu Feb 20 2020 Cory McIntire <cory@cpanel.net> - 7.2.28-1 - EA-8873: Update scl-php72 from v7.2.27 to v7.2.28 * Fri Feb 07 2020 Tim Mullin <tim@cpanel.net> - 7.2.27-2 - EA-8854: Fix circular dependencies in our PHP packages * Thu Jan 23 2020 Cory McIntire <cory@cpanel.net> - 7.2.27-1 - EA-8850: Update scl-php72 from v7.2.26 to v7.2.27 * Wed Dec 18 2019 Cory McIntire <cory@cpanel.net> - 7.2.26-1 - EA-8797: Update scl-php72 from v7.2.25 to v7.2.26 * Thu Nov 21 2019 Cory McIntire <cory@cpanel.net> - 7.2.25-1 - EA-8760: Update scl-php72 from v7.2.24 to v7.2.25 * Thu Oct 24 2019 Cory McIntire <cory@cpanel.net> - 7.2.24-1 - EA-8718: Update scl-php72 from v7.2.23 to v7.2.24 * Fri Sep 27 2019 Cory McIntire <cory@cpanel.net> - 7.2.23-1 - EA-8670: Update scl-php72 from v7.2.22 to v7.2.23 * Tue Sep 03 2019 Cory McIntire <cory@cpanel.net> - 7.2.22-1 - EA-8635: Update scl-php72 from v7.2.21 to v7.2.22 * Thu Aug 01 2019 Cory McIntire <cory@cpanel.net> - 7.2.21-1 - EA-8593: Update scl-php72 from v7.2.20 to v7.2.21 * Fri Jul 05 2019 Cory McIntire <cory@cpanel.net> - 7.2.20-1 - EA-8560: Update scl-php72 from v7.2.19 to v7.2.20 * Fri May 31 2019 Cory McIntire <cory@cpanel.net> - 7.2.19-1 - EA-8514: Update scl-php72 from v7.2.18 to v7.2.19 * Thu May 02 2019 Cory McIntire <cory@cpanel.net> - 7.2.18-1 - EA-8427: Update scl-php72 from v7.2.17 to v7.2.18 * Thu Apr 04 2019 Cory McIntire <cory@cpanel.net> - 7.2.17-1 - Updated to version 7.2.17 via update_pkg.pl (EA-8320) * Fri Mar 15 2019 Tim Mullin <tim@cpanel.net> - 7.2.16-2 - EA-8291: Fix pear installing before php-cli when installing ea-php72 * Thu Mar 07 2019 Cory McIntire <cory@cpanel.net> - 7.2.16-1 - Updated to version 7.2.16 via update_pkg.pl (EA-8271) * Thu Feb 07 2019 Cory McIntire <cory@cpanel.net> - 7.2.15-1 - Updated to version 7.2.15 via update_pkg.pl (EA-8209) * Thu Jan 10 2019 Cory McIntire <cory@cpanel.net> - 7.2.14-1 - Updated to version 7.2.14 via update_pkg.pl (EA-8129) * Thu Dec 06 2018 Cory McIntire <cory@cpanel.net> - 7.2.13-1 - Updated to version 7.2.13 via update_pkg.pl (EA-8044) * Thu Nov 08 2018 Cory McIntire <cory@cpanel.net> - 7.2.12-1 - Updated to version 7.2.12 via update_pkg.pl (EA-7999) * Fri Oct 26 2018 Tim Mullin <tim@cpanel.net> - 7.2.11-2 - EA-7957: Added ea-apache24-mod_proxy_fcgi as a dependency of php-fpm. * Thu Oct 11 2018 Cory McIntire <cory@cpanel.net> - 7.2.11-1 - Updated to version 7.2.11 via update_pkg.pl (EA-7908) * Thu Sep 13 2018 Cory McIntire <cory@cpanel.net> - 7.2.10-1 - Updated to version 7.2.10 via update_pkg.pl (EA-7837) * Sun Aug 19 2018 Cory McIntire <cory@cpanel.net> - 7.2.9-1 - Updated to version 7.2.9 via update_pkg.pl (EA-7781) * Thu Jul 19 2018 Cory McIntire <cory@cpanel.net> - 7.2.8-1 - Updated to version 7.2.8 via update_pkg.pl (EA-7703) * Mon Jun 25 2018 Cory McIntire <cory@cpanel.net> - 7.2.7-1 - Updated to version 7.2.7 via update_pkg.pl (EA-7595) * Fri May 25 2018 Cory McIntire <cory@cpanel.net> - 7.2.6-1 - Updated to version 7.2.6 via update_pkg.pl (EA-7510) * Thu Apr 26 2018 Cory McIntire <cory@cpanel.net> - 7.2.5-1 - Updated to version 7.2.5 via update_pkg.pl (EA-7430) * Mon Apr 02 2018 Daniel Muey <dan@cpanel.net> - 7.2.4-1 - EA-7343: Update to v7.2.4, drop v7.2.3 * Thu Mar 01 2018 Daniel Muey <dan@cpanel.net> - 7.2.3-1 - EA-7289: Update to v7.2.3, drop v7.2.2 * Thu Feb 15 2018 Daniel Muey <dan@cpanel.net> - 7.2.2-2 - EA-5277: Add conflicts for ea-php##-scldevel packages * Fri Feb 02 2018 Daniel Muey <dan@cpanel.net> - 7.2.2-1 - Updated to version 7.2.2 via update_pkg.pl (EA-7208) * Wed Jan 17 2018 Daniel Muey <dan@cpanel.net> - 7.2.1-4 - EA-6958: Ensure ownership of _licensedir if it is set * Tue Jan 09 2018 Dan Muey <dan@cpanel.net> - 7.2.1-3 - ZC-3247: Add support for the allowed-php list to WHM’s Feature Lists * Tue Jan 09 2018 Rishwanth Yeddula <rish@cpanel.net> - 7.2.1-2 - ZC-3242: Ensure the runtime package requires the meta package * Fri Jan 05 2018 Jacob Perkins <jacob.perkins@cpanel.net> - 7.2.1-1 - EA-7075: Update 7.2.1 from 7.2.0 * Mon Dec 04 2017 Cory McIntire <cory@cpanel.net> - 7.2.0-8 - EA-6992: Update 7.2.0 dropping from RC status * Mon Nov 27 2017 Cory McIntire <cory@cpanel.net> - 7.2.0-7.RC6 - EA-3099: Update 7.2.0 from RC5 to RC6 * Fri Nov 03 2017 Dan Muey <dan@cpanel.net> - 7.2.0-6.RC5 - EA-3999: adjust files to get better cleanup on uninstall * Fri Oct 27 2017 Jacob Perkins <jacob.perkins@cpanel.net> - 7.2.0-5.RC5 - EA-6923: Update 7.2.0 from RC3 to RC5 * Mon Oct 02 2017 <dan@cpanel.net> - 7.2.0-4.RC3 - EA-6857: Update 7.2.0 from RC1 to RC3 * Thu Aug 31 2017 <dan@cpanel.net> - 7.2.0-2.RC1 - EA-6758: Update 7.2.0 from beta3 to RC1 * Thu Aug 17 2017 <dan@cpanel.net> - 7.2.0-1.beta3 - ZC-2785: Initial packaging
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor