[packages/php-composer-pcre] Initial

arekm arekm at pld-linux.org
Sat Apr 4 00:10:37 CEST 2026


commit 2021033f0da5cc4af8d76184253683de303190bf
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sat Apr 4 00:04:42 2026 +0200

    Initial

 php-composer-pcre.spec | 38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)
---
diff --git a/php-composer-pcre.spec b/php-composer-pcre.spec
new file mode 100644
index 0000000..4abecd1
--- /dev/null
+++ b/php-composer-pcre.spec
@@ -0,0 +1,38 @@
+%define		pkgname	pcre
+Summary:	PCRE wrapping library that offers type-safe preg_* replacements
+Name:		php-composer-%{pkgname}
+Version:	3.3.2
+Release:	1
+License:	MIT
+Group:		Development/Libraries
+Source0:	https://github.com/composer/pcre/archive/%{version}/%{pkgname}-%{version}.tar.gz
+# Source0-md5:	413f0ddadd7d820d2e097e0d8bcf114d
+URL:		https://github.com/composer/pcre
+Requires:	php(core) >= 7.4
+Requires:	php(pcre)
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+PCRE wrapping library that offers type-safe preg_* replacements.
+
+Originally written as part of composer/composer, now extracted and
+made available as a stand-alone library.
+
+%prep
+%setup -q -n %{pkgname}-%{version}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{php_data_dir}/Composer/Pcre
+cp -a src/* $RPM_BUILD_ROOT%{php_data_dir}/Composer/Pcre
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc *.md LICENSE
+# NOTE: dir shared with composer
+%dir %{php_data_dir}/Composer
+%{php_data_dir}/Composer/Pcre
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php-composer-pcre.git/commitdiff/2021033f0da5cc4af8d76184253683de303190bf



More information about the pld-cvs-commit mailing list