[php-pear-CodeGen-PECL] Initial import of php-pear-CodeGen-PECL

Robert Scheck robert at fedoraproject.org
Fri Feb 25 08:13:55 UTC 2011


commit cd8e10eac2154661bda572727fca48ceefbdc6a6
Author: Robert Scheck <robert at fedoraproject.org>
Date:   Fri Feb 25 09:13:50 2011 +0100

    Initial import of php-pear-CodeGen-PECL

 .gitignore                 |    1 +
 php-pear-CodeGen-PECL.spec |   85 ++++++++++++++++++++++++++++++++++++++++++++
 sources                    |    1 +
 3 files changed, 87 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..ad1d5ce 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+CodeGen_PECL-1.1.3.tgz
diff --git a/php-pear-CodeGen-PECL.spec b/php-pear-CodeGen-PECL.spec
new file mode 100644
index 0000000..40a7aac
--- /dev/null
+++ b/php-pear-CodeGen-PECL.spec
@@ -0,0 +1,85 @@
+%{!?__pear: %{expand: %%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:           3%{?dist}
+License:           PHP
+Group:             Development/Languages
+URL:               http://pear.php.net/package/%{pear_name}
+Source:            http://pear.php.net/get/%{pear_name}-%{version}.tgz
+Requires:          php-common >= 5.0.0, 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, php-pear(CodeGen) >= 1.0.7
+BuildArch:         noarch
+BuildRoot:         %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+%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 -qc
+
+# Create a "localized" php.ini to avoid build warning
+cp -pf /etc/php.ini .
+echo "date.timezone=UTC" >> php.ini
+
+# 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}
+rm -rf $RPM_BUILD_ROOT docdir
+PHPRC=../php.ini %{__pear} install --nodeps --packagingroot $RPM_BUILD_ROOT %{name}.xml
+
+# Move documentation
+mkdir -p docdir
+mv -f $RPM_BUILD_ROOT%{pear_docdir}/%{pear_name}/docs docdir/%{pear_name}
+
+# Clean up unnecessary files
+rm -rf $RPM_BUILD_ROOT%{pear_phpdir}/.??*
+
+# Install XML package description
+install -d $RPM_BUILD_ROOT%{pear_xmldir}
+install -p -m 644 %{name}.xml $RPM_BUILD_ROOT%{pear_xmldir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%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
+%defattr(-,root,root,-)
+%doc %{pear_name}-%{version}/docdir/%{pear_name}/*
+%{_bindir}/pecl-gen
+%{pear_xmldir}/%{name}.xml
+%{pear_phpdir}/CodeGen/PECL/
+
+%changelog
+* Thu Feb 24 2011 Robert Scheck <robert at fedoraproject.org> 1.0.7-3
+- Changed requirements to php-common/-pear(PEAR) (#662257 #c2)
+
+* Sat Dec 11 2010 Robert Scheck <robert at fedoraproject.org> 1.1.3-2
+- Corrected dependencies to match Fedora Packaging Guidelines
+
+* Sat Dec 11 2010 Robert Scheck <robert at fedoraproject.org> 1.1.3-1
+- Upgrade to 1.1.3
+- Initial spec file for Fedora and Red Hat Enterprise Linux
diff --git a/sources b/sources
index e69de29..a013630 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+6e5979ac00ec542f73f8e2d093c104bc  CodeGen_PECL-1.1.3.tgz


More information about the scm-commits mailing list