[php-theseer-fDOMDocument] import from review

Remi Collet remi at fedoraproject.org
Sun Nov 18 18:44:22 UTC 2012


commit 8d5976330822c54d5ef684a9206054c5a990dd12
Author: Remi Collet <remi at fedoraproject.org>
Date:   Sun Nov 18 19:43:31 2012 +0100

    import from review

 .gitignore                    |    1 +
 php-theseer-fDOMDocument.spec |  106 +++++++++++++++++++++++++++++++++++++++++
 sources                       |    1 +
 3 files changed, 108 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..7a52785 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/fDOMDocument-1.3.2.tgz
diff --git a/php-theseer-fDOMDocument.spec b/php-theseer-fDOMDocument.spec
new file mode 100644
index 0000000..2d8f9be
--- /dev/null
+++ b/php-theseer-fDOMDocument.spec
@@ -0,0 +1,106 @@
+%{!?pear_metadir: %global pear_metadir %{pear_phpdir}}
+%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}}
+%global pear_name fDOMDocument
+%global channel   pear.netpirates.net
+
+Name:           php-theseer-fDOMDocument
+Version:        1.3.2
+Release:        1%{?dist}
+Summary:        An Extension to PHP standard DOM
+
+Group:          Development/Libraries
+License:        BSD
+URL:            https://github.com/theseer/fDOMDocument
+Source0:        http://%{channel}/get/%{pear_name}-%{version}.tgz
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildArch:      noarch
+BuildRequires:  php-pear(PEAR) >= 1.9.1
+BuildRequires:  php-channel(%{channel})
+# For test
+BuildRequires:  php-pear(pear.phpunit.de/PHPUnit)
+BuildRequires:  php-dom
+BuildRequires:  php-libxml
+
+Requires:       php-pear(PEAR) >= 1.9.1
+Requires:       php-channel(%{channel})
+Requires:       php-common >= 5.3.3
+Requires:       php-dom
+Requires:       php-libxml
+Requires(post): %{__pear}
+Requires(postun): %{__pear}
+
+Provides:       php-pear(%{channel}/%{pear_name}) = %{version}
+
+
+%description
+An Extension to PHP's standard DOM to add various convenience methods
+and exceptions by default
+
+
+%prep
+%setup -q -c
+
+# Package.xml is V2
+mv package.xml %{pear_name}-%{version}/%{name}.xml
+
+
+%build
+cd %{pear_name}-%{version}
+# Empty build section, most likely nothing required.
+
+
+%install
+rm -rf %{buildroot}
+cd %{pear_name}-%{version}
+
+%{__pear} install --nodeps --packagingroot %{buildroot} %{name}.xml
+
+# Clean up unnecessary files
+rm -rf %{buildroot}%{pear_metadir}/.??*
+
+# Install XML package description
+mkdir -p %{buildroot}%{pear_xmldir}
+install -pm 644 %{name}.xml %{buildroot}%{pear_xmldir}
+
+
+%check
+cd %{pear_name}-%{version}
+sed -e s:autoload:TheSeer/fDOMDocument/autoload: \
+    phpunit.xml.dist >phpunit.xml
+phpunit -d date.timezone=UTC
+
+
+%clean
+rm -rf %{buildroot}
+
+
+%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 \
+    %{channel}/%{pear_name} >/dev/null || :
+fi
+
+
+%files
+%defattr(-,root,root,-)
+%doc %{pear_docdir}/%{pear_name}
+%{pear_xmldir}/%{name}.xml
+%{pear_phpdir}/TheSeer/%{pear_name}
+%{pear_testdir}/%{pear_name}
+
+
+%changelog
+* Sun Oct 28 2012 Remi Collet <remi at fedoraproject.org> - 1.3.2-1
+- Version 1.3.2 (stable) - API 1.3.0 (stable)
+- run test units
+
+* Thu Oct 11 2012 Remi Collet <remi at fedoraproject.org> - 1.3.1-1
+- Version 1.3.1 (stable) - API 1.3.0 (stable)
+- Initial packaging
+
diff --git a/sources b/sources
index e69de29..22917b2 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+b5674e09058f9b8e6b2e42732ba7b6de  fDOMDocument-1.3.2.tgz


More information about the scm-commits mailing list