diff options
| author | Remi Collet <remi@remirepo.net> | 2026-03-10 15:46:55 +0100 |
|---|---|---|
| committer | Remi Collet <remi@php.net> | 2026-03-10 15:46:55 +0100 |
| commit | d4d42a04da73e487a3cbac3de80cfea34599776b (patch) | |
| tree | 7aa538e601e5dee62d5f49d223b01a9d05c94545 | |
| parent | c87f8d00affc117cc455c2624bf194d3674b74be (diff) | |
sources from github
| -rw-r--r-- | php-pecl-yaml.spec | 40 |
1 files changed, 18 insertions, 22 deletions
diff --git a/php-pecl-yaml.spec b/php-pecl-yaml.spec index a514d39..17b8de8 100644 --- a/php-pecl-yaml.spec +++ b/php-pecl-yaml.spec @@ -1,6 +1,6 @@ # remirepo spec file for php-pecl-yaml # -# Copyright (c) 2012-2025 Remi Collet +# Copyright (c) 2012-2026 Remi Collet # Fedora spec file for php-pecl-yaml # @@ -21,24 +21,30 @@ %global upstream_version 2.3.0 #global upstream_prever b2 -%global sources %{pecl_name}-%{upstream_version}%{?upstream_prever} +%global sources %{gh_proj}-%{upstream_version}%{?upstream_prever} %global _configure ../%{sources}/configure +# Github forge +%global gh_vend php +%global gh_proj pecl-file_formats-yaml +%global forgeurl https://github.com/%{gh_vend}/%{gh_proj} +%global tag %{upstream_version}%{?upstream_prever} + Summary: PHP Bindings for yaml Name: %{?scl_prefix}php-pecl-yaml Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}} -Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +%forgemeta +Release: 2%{?dist} License: MIT -URL: https://pecl.php.net/package/yaml +URL: %{forgeurl} -Source0: https://pecl.php.net/get/%{pecl_name}-%{upstream_version}%{?upstream_prever}.tgz +Source0: %{forgesource} ExcludeArch: %{ix86} BuildRequires: make BuildRequires: %{?dtsprefix}gcc BuildRequires: %{?scl_prefix}php-devel >= 7.1 -BuildRequires: %{?scl_prefix}php-pear BuildRequires: libyaml-devel Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api} @@ -66,11 +72,6 @@ Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSIO %prep %setup -c -q -# Remove test file to avoid regsitration -sed -e 's/role="test"/role="src"/' \ - -e '/LICENSE/s/role="doc"/role="src"/' \ - -i package.xml - cd %{sources} # Check upstream version (often broken) extver=$(sed -n '/#define PHP_YAML_VERSION/{s/.* "//;s/".*$//;p}' php_yaml.h) @@ -140,9 +141,6 @@ cd ../ZTS %make_install -C NTS -# Install XML package description -install -Dpm 644 package.xml %{buildroot}%{pecl_xmldir}/%{name}.xml - # install config file install -Dpm644 %{ini_name} %{buildroot}%{php_inidir}/%{ini_name} @@ -151,12 +149,6 @@ install -Dpm644 %{ini_name} %{buildroot}%{php_inidir}/%{ini_name} install -Dpm644 %{ini_name} %{buildroot}%{php_ztsinidir}/%{ini_name} %endif -# Documentation -cd %{sources} -for i in $(grep 'role="doc"' ../package.xml | sed -e 's/^.*name="//;s/".*$//') -do install -Dpm 644 $i %{buildroot}%{pecl_docdir}/%{pecl_name}/$i -done - %check cd %{sources} @@ -190,8 +182,8 @@ REPORT_EXIT_STATUS=1 \ %files %license %{sources}/LICENSE -%doc %{pecl_docdir}/%{pecl_name} -%{pecl_xmldir}/%{name}.xml +%doc %{sources}/CREDITS +%doc %{sources}/README %config(noreplace) %{php_inidir}/%{ini_name} %{php_extdir}/%{pecl_name}.so @@ -203,6 +195,10 @@ REPORT_EXIT_STATUS=1 \ %changelog +* Tue Mar 10 2026 Remi Collet <remi@remirepo.net> - 2.3.0-2 +- drop pear/pecl dependency +- sources from github + * Wed Nov 12 2025 Remi Collet <remi@remirepo.net> - 2.3.0-1 - update to 2.3.0 - drop patch merged upstream |
