%{!?__pear: %global __pear %{_bindir}/pear} %global pear_name CodeGen_PECL Summary: Tool to generate PECL extensions from an XML description Name: php-pear-CodeGen-PECL Version: 1.1.3 Release: 26%{?dist} License: PHP URL: https://pear.php.net/package/%{pear_name} Source0: https://pear.php.net/get/%{pear_name}-%{version}.tgz Patch0: php-pear-CodeGen-PECL-1.1.3-php54.patch Requires: php-common >= 5.4.0 Requires: php-pear(CodeGen) >= 1.0.7 Requires(post): %{__pear} Requires(postun): %{__pear} Provides: php-pear(%{pear_name}) = %{version} BuildRequires: php-pear >= 1:1.4.9-1.2 BuildRequires: php-pear(CodeGen) >= 1.0.7 BuildArch: noarch %description CodeGen_PECL (formerly known as PECL_Gen) is a pure PHP replacement for the ext_skel shell script that comes with the PHP 4 source. It reads in configuration options, function prototypes and code fragments from an XML description file and then generates a complete ready-to-compile PECL extension. %prep %setup -q -c %patch0 -p0 -b .php54 # Package is V2 cd %{pear_name}-%{version} mv -f ../package.xml %{name}.xml %build cd %{pear_name}-%{version} # Empty build section, most likely nothing required. %install cd %{pear_name}-%{version} %{__pear} install --nodeps --packagingroot $RPM_BUILD_ROOT %{name}.xml # Clean up unnecessary files rm -rf $RPM_BUILD_ROOT%{pear_metadir}/.??* # Install XML package description install -D -p -m 0644 %{name}.xml $RPM_BUILD_ROOT%{pear_xmldir}/%{name}.xml %check find . -name "*.php" -type f -print0 | xargs -n 1 -0 php -l %post %{__pear} install --nodeps --soft --force --register-only %{pear_xmldir}/%{name}.xml > /dev/null || : %postun if [ $1 -eq 0 ]; then %{__pear} uninstall --nodeps --ignore-errors --register-only %{pear_name} > /dev/null || : fi %files %doc %{pear_docdir}/%{pear_name} %{_bindir}/pecl-gen %{pear_xmldir}/%{name}.xml %{pear_phpdir}/CodeGen/PECL/ %changelog * Thu Jun 16 2022 Robert Scheck 1.1.3-26 - Updated patch to avoid warnings and errors with PHP 8.0 * Fri Jan 21 2022 Fedora Release Engineering - 1.1.3-25 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Sep 16 2021 Robert Scheck 1.1.3-24 - Updated patch to avoid warnings and errors with PHP 5.4 and 7.2 * Fri Jul 23 2021 Fedora Release Engineering - 1.1.3-23 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jan 27 2021 Fedora Release Engineering - 1.1.3-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 1.1.3-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Jan 30 2020 Fedora Release Engineering - 1.1.3-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jul 26 2019 Fedora Release Engineering - 1.1.3-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 1.1.3-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 1.1.3-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Feb 09 2018 Fedora Release Engineering - 1.1.3-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 1.1.3-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 1.1.3-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Feb 04 2016 Fedora Release Engineering - 1.1.3-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jun 18 2015 Fedora Release Engineering - 1.1.3-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 1.1.3-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sun Aug 04 2013 Fedora Release Engineering - 1.1.3-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Sat Feb 23 2013 Robert Scheck 1.1.3-9 - Fixed pear metadata directory location (#914355) * Thu Feb 14 2013 Fedora Release Engineering - 1.1.3-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Thu Aug 02 2012 Remi Collet - 1.1.3-7 - doc in /usr/share/doc/pear per PHP Guildelines * Sun Jul 22 2012 Robert Scheck 1.1.3-6 - Added patch to generate PHP 5.4 compilable C code * Fri Jul 20 2012 Fedora Release Engineering - 1.1.3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Sat Jan 14 2012 Fedora Release Engineering - 1.1.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Thu Feb 24 2011 Robert Scheck 1.1.3-3 - Changed requirements to php-common/-pear(PEAR) (#662257 #c2) * Sat Dec 11 2010 Robert Scheck 1.1.3-2 - Corrected dependencies to match Fedora Packaging Guidelines * Sat Dec 11 2010 Robert Scheck 1.1.3-1 - Upgrade to 1.1.3 - Initial spec file for Fedora and Red Hat Enterprise Linux