summaryrefslogtreecommitdiffstats
path: root/php73.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2023-06-20 16:07:31 +0200
committerRemi Collet <remi@php.net>2023-06-20 16:07:31 +0200
commit5d5f13b2f302ab6eb5e339a73fac949aa75927f6 (patch)
tree493c109cd9f2e6676fe3b66227e787ca2e5dd9b1 /php73.spec
parentbaa5ec69fe090f7df637a6c7d9aa5d7281c547ff (diff)
define %scl_vendor and %_scl_prefix in macros.php81-configHEADmaster
redefine %__phpize and %__phpconfig move man page out of scl tree improve the man page
Diffstat (limited to 'php73.spec')
-rw-r--r--php73.spec22
1 files changed, 14 insertions, 8 deletions
diff --git a/php73.spec b/php73.spec
index 029d1ab..ca63b73 100644
--- a/php73.spec
+++ b/php73.spec
@@ -1,7 +1,7 @@
# remirepo spec file for php73 SCL metapackage
#
-# Copyright (c) 2018-2019 Remi Collet
-# License: CC-BY-SA
+# Copyright (c) 2018-2023 Remi Collet
+# License: CC-BY-SA-4.0
# http://creativecommons.org/licenses/by-sa/4.0/
#
# Please, preserve the changelog entries
@@ -33,9 +33,9 @@
Summary: Package that installs PHP 7.3
Name: %scl_name
-Version: 2.0
+Version: 7.3
Release: 1%{?dist}
-License: GPLv2+
+License: GPL-2.0-or-later
Source0: macros-build
Source1: README
@@ -157,7 +157,7 @@ cp %{SOURCE2} .
# 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
+[ "$1" == "--version" ] && echo "%{scl_name} Software Collection (PHP %{version})" || cat README
EOF
chmod a+x h2m_helper
@@ -173,7 +173,7 @@ install -D -m 644 envmod %{buildroot}%{_scl_scripts}/%{scl_name}
install -D -m 644 envmod %{buildroot}%{_root_datadir}/Modules/modulefiles/%{scl_name}
%endif
install -D -m 644 scldev %{buildroot}%{macrosdir}/macros.%{scl_name_base}-scldevel
-install -D -m 644 %{scl_name}.7 %{buildroot}%{_mandir}/man7/%{scl_name}.7
+install -D -m 644 %{scl_name}.7 %{buildroot}%{_root_mandir}/man7/%{scl_name}.7
install -d -m 755 %{buildroot}%{_datadir}/licenses
install -d -m 755 %{buildroot}%{_datadir}/doc/pecl
@@ -185,7 +185,7 @@ install -d -m 755 %{buildroot}%{_localstatedir}/lib/pear/pkgxml
cat %{buildroot}%{_root_sysconfdir}/rpm/macros.%{scl}-config
# Add the scl_package_override macro
-sed -e 's/@SCL@/%{scl}/g' %{SOURCE0} \
+sed -e 's/@SCL@/%{scl}/g;s:@PREFIX@:/opt/%{scl_vendor}:;s/@VENDOR@/%{scl_vendor}/' %{SOURCE0} \
| tee -a %{buildroot}%{_root_sysconfdir}/rpm/macros.%{scl}-config
# Move in correct location, if needed
@@ -232,7 +232,7 @@ restorecon -R %{_localstatedir} &>/dev/null || :
%license LICENSE
%doc README
%scl_files
-%{_mandir}/man7/%{scl_name}.*
+%{_root_mandir}/man7/%{scl_name}.*
%{?_licensedir:%{_datadir}/licenses}
%{_datadir}/tests
%if ! %{with_modules}
@@ -260,6 +260,12 @@ restorecon -R %{_localstatedir} &>/dev/null || :
%changelog
+* Tue Jun 20 2023 Remi Collet <remi@remirepo.net> 7.3-1
+- define %%scl_vendor and %%_scl_prefix in macros.php81-config
+- redefine %%__phpize and %%__phpconfig
+- move man page out of scl tree
+- improve the man page
+
* Wed Feb 20 2019 Remi Collet <remi@remirepo.net> 2.0-1
- add syspaths sub package providing system-wide wrappers