[php-pear-MDB2-Schema] Initial import

Nick Bebout nb at fedoraproject.org
Mon Feb 28 15:42:14 UTC 2011


commit 1202dff193caa67a958528099079c736dbc7ed98
Author: Nick Bebout <nb at fedoraproject.org>
Date:   Mon Feb 28 09:41:53 2011 -0600

    Initial import

 .gitignore                |    1 +
 php-pear-MDB2-Schema.spec |   88 +++++++++++++++++++++++++++++++++++++++++++++
 sources                   |    1 +
 3 files changed, 90 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..9819257 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/MDB2_Schema-0.8.5.tgz
diff --git a/php-pear-MDB2-Schema.spec b/php-pear-MDB2-Schema.spec
new file mode 100644
index 0000000..6181a57
--- /dev/null
+++ b/php-pear-MDB2-Schema.spec
@@ -0,0 +1,88 @@
+%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}}
+%define ClassName MDB2_Schema
+
+Name:           php-pear-MDB2-Schema
+Version:        0.8.5
+Release:        1%{?dist}
+Summary:        Database Abstraction Layer
+
+Group:          Development/Libraries
+License:        BSD
+URL:            http://pear.php.net/package/MDB2_Schema
+Source0:        http://pear.php.net/get/%{ClassName}-%{version}.tgz
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildArch:      noarch
+BuildRequires:  php-pear-MDB2
+Requires:       php-pear(PEAR)
+Requires(post): %{__pear}
+Requires(postun): %{__pear}
+Provides:       php-pear(%{ClassName}) = %{version}
+
+%description
+XML based database schema manager
+
+%prep
+%setup -qc
+[ -f package2.xml ] || mv package.xml package2.xml
+mv package2.xml %{ClassName}-%{version}/%{ClassName}.xml
+cd %{ClassName}-%{version}
+
+
+%build
+cd %{ClassName}-%{version}
+# Empty build section, most likely nothing required.
+
+
+%install
+cd %{ClassName}-%{version}
+rm -rf $RPM_BUILD_ROOT docdir
+%{__pear} install --nodeps --packagingroot $RPM_BUILD_ROOT %{ClassName}.xml
+
+# Move documentation
+mkdir -p docdir
+mv $RPM_BUILD_ROOT%{pear_docdir}/* docdir
+
+# Clean up unnecessary files
+rm -rf $RPM_BUILD_ROOT%{pear_phpdir}/.??*
+
+# Remove files we don't need to ship
+rm -rf $RPM_BUILD_ROOT/var/www/html/mdb2_schematool
+rm -rf $RPM_BUILD_ROOT%{_bindir}/mdb2_schematool
+
+# Install XML package description
+install -d $RPM_BUILD_ROOT%{pear_xmldir}
+install -pm 644 %{ClassName}.xml $RPM_BUILD_ROOT%{pear_xmldir}
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%post
+%{__pear} install --nodeps --soft --force --register-only \
+    %{pear_xmldir}/%{ClassName}.xml >/dev/null ||:
+
+%postun
+if [ "$1" -eq "0" ]; then
+    %{__pear} uninstall --nodeps --ignore-errors --register-only \
+        %{ClassName} >/dev/null ||:
+fi
+
+
+%files
+%defattr(-,root,root,-)
+%doc %{ClassName}-%{version}/docdir/%{ClassName}/docs/*
+%{pear_xmldir}/%{ClassName}.xml
+%{pear_testdir}/%{ClassName}
+%{pear_phpdir}/MDB2/Schema.php
+%dir %{pear_phpdir}/MDB2/Schema
+%{pear_phpdir}/MDB2/Schema/*
+
+
+%changelog
+* Thu Feb 24 2011 Nick Bebout <nb at fedoraproject.org> 0.8.5-1
+- Update to latest release
+
+* Thu Jul 22 2010 Chris Adams <cmadams at hiwaay.net> 0.8.0-1
+- initial build
diff --git a/sources b/sources
index e69de29..55c358a 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+80512a099d79927a122d9baa8cef1bb4  MDB2_Schema-0.8.5.tgz


More information about the scm-commits mailing list