[packages/php-symfony-polyfill-ctype] Initial
arekm
arekm at pld-linux.org
Tue May 5 00:05:07 CEST 2026
commit 281841291d2902985d2b1e8874cec6f08f1e8cc7
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Tue May 5 00:04:52 2026 +0200
Initial
php-symfony-polyfill-ctype.spec | 57 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 57 insertions(+)
---
diff --git a/php-symfony-polyfill-ctype.spec b/php-symfony-polyfill-ctype.spec
new file mode 100644
index 0000000..aff2426
--- /dev/null
+++ b/php-symfony-polyfill-ctype.spec
@@ -0,0 +1,57 @@
+%define php_min_version 7.2
+%define upname polyfill-ctype
+Summary: Symfony polyfill for ctype functions
+Name: php-symfony-polyfill-ctype
+Version: 1.37.0
+Release: 1
+License: MIT
+Group: Development/Languages/PHP
+Source0: https://github.com/symfony/polyfill-ctype/archive/v%{version}/%{upname}-%{version}.tar.gz
+# Source0-md5: 0bb501590ae323e70551cece62902191
+URL: https://github.com/symfony/polyfill-ctype
+BuildRequires: phpab
+BuildRequires: rpmbuild(macros) >= 1.610
+Requires: php(core) >= %{php_min_version}
+Requires: php-dirs >= 1.6
+Provides: php(ctype-polyfill)
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Symfony polyfill providing the ctype_* functions when the PHP ctype
+extension is missing. PLD's PHP ships with ctype enabled, so the
+polyfill normally short-circuits to the native implementation; the
+package exists to satisfy composer-style consumers that hard-require
+symfony/polyfill-ctype on the autoload path.
+
+%prep
+%setup -q -n %{upname}-%{version}
+
+%build
+phpab -n -e 'bootstrap*.php' -o autoload.classmap.php .
+
+cat > autoload.php <<'EOF'
+<?php
+require_once __DIR__ . '/autoload.classmap.php';
+require_once __DIR__ . '/bootstrap.php';
+EOF
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{php_data_dir}/Symfony/Polyfill/Ctype
+cp -a Ctype.php bootstrap.php bootstrap80.php autoload.classmap.php autoload.php \
+ $RPM_BUILD_ROOT%{php_data_dir}/Symfony/Polyfill/Ctype
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README.md
+%dir %{php_data_dir}/Symfony/Polyfill
+%dir %{php_data_dir}/Symfony/Polyfill/Ctype
+%{php_data_dir}/Symfony/Polyfill/Ctype/Ctype.php
+%{php_data_dir}/Symfony/Polyfill/Ctype/autoload.classmap.php
+%{php_data_dir}/Symfony/Polyfill/Ctype/autoload.php
+%{php_data_dir}/Symfony/Polyfill/Ctype/bootstrap.php
+%{php_data_dir}/Symfony/Polyfill/Ctype/bootstrap80.php
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/php-symfony-polyfill-ctype.git/commitdiff/281841291d2902985d2b1e8874cec6f08f1e8cc7
More information about the pld-cvs-commit
mailing list