[php-phpunit-DbUnit] initial import

Remi Collet remi at fedoraproject.org
Fri Nov 5 19:26:12 UTC 2010


commit 7c23e2abda44ab2a7d322de369f649ac4d10c0c2
Author: remi <fedora at famillecollet.com>
Date:   Fri Nov 5 20:23:47 2010 +0100

    initial import

 .gitignore              |    2 +
 php-phpunit-DbUnit.spec |   93 +++++++++++++++++++++++++++++++++++++++++++++++
 sources                 |    1 +
 3 files changed, 96 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..50b6592 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1,2 @@
+/DbUnit-1.0.0.tgz
+package.xml
diff --git a/php-phpunit-DbUnit.spec b/php-phpunit-DbUnit.spec
new file mode 100644
index 0000000..6a4b8f0
--- /dev/null
+++ b/php-phpunit-DbUnit.spec
@@ -0,0 +1,93 @@
+%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}}
+%global pear_name DbUnit
+%global channel pear.phpunit.de
+
+Name:           php-phpunit-DbUnit
+Version:        1.0.0
+Release:        1%{?dist}
+Summary:        DbUnit port for PHP/PHPUnit
+
+Group:          Development/Libraries
+License:        BSD
+URL:            http://pear.phpunit.de
+Source0:        http://pear.phpunit.de/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})
+
+Requires(post): %{__pear}
+Requires(postun): %{__pear}
+Requires:       php-common >= 5.2.7
+Requires:       php-pear(%{channel}/PHPUnit) >= 3.5.0
+Requires:       php-pear(pear.symfony-project.com/YAML) >= 1.0.2
+
+Provides:       php-pear(%{channel}/%{pear_name}) = %{version}
+
+
+%description
+DbUnit port for PHP/PHPUnit
+
+%prep
+%setup -q -c
+# Create a "localized" php.ini to avoid build warning
+cp /etc/php.ini .
+echo "date.timezone=UTC" >>php.ini
+
+cd %{pear_name}-%{version}
+# package.xml is V2
+mv ../package.xml %{name}.xml
+
+
+%build
+cd %{pear_name}-%{version}
+# Empty build section, most likely nothing required.
+
+
+%install
+rm -rf $RPM_BUILD_ROOT docdir
+cd %{pear_name}-%{version}
+PHPRC=../php.ini %{__pear} install --nodeps --packagingroot $RPM_BUILD_ROOT %{name}.xml
+
+# Move documentation
+mkdir -p docdir
+mv $RPM_BUILD_ROOT%{pear_docdir}/%{pear_name} ../docdir
+
+
+# Clean up unnecessary files
+rm -rf $RPM_BUILD_ROOT%{pear_phpdir}/.??*
+
+# Install XML package description
+mkdir -p $RPM_BUILD_ROOT%{pear_xmldir}
+install -pm 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 \
+        %{channel}/%{pear_name} >/dev/null || :
+fi
+
+
+%files
+%defattr(-,root,root,-)
+%doc docdir/*
+%{pear_xmldir}/%{name}.xml
+%{pear_phpdir}/PHPUnit/Extensions/Database
+%{_bindir}/dbunit
+
+
+%changelog
+* Sun Sep 26 2010 Remi Collet <Fedora at famillecollet.com> - 1.0.0-1
+- initial generated spec + clean
+
+
diff --git a/sources b/sources
index e69de29..971290b 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+07b6b9d544c08b54aea840ed05a99ed0  DbUnit-1.0.0.tgz


More information about the scm-commits mailing list