[php-doctrine-dbal] Initial import (#1047110)

Shawn Iwinski siwinski at fedoraproject.org
Mon Jan 6 19:26:12 UTC 2014


commit ea756d89d7901ed541b8816d349d0e78b3df7a5f
Author: Shawn Iwinski <siwinski at redhat.com>
Date:   Mon Jan 6 14:26:15 2014 -0500

    Initial import (#1047110)

 .gitignore             |    1 +
 php-doctrine-dbal.spec |  106 ++++++++++++++++++++++++++++++++++++++++++++++++
 sources                |    1 +
 3 files changed, 108 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..ca5af65 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/php-doctrine-dbal-2.4.2-fec965d330c958e175c39e61c3f6751955af32d0.tar.gz
diff --git a/php-doctrine-dbal.spec b/php-doctrine-dbal.spec
new file mode 100644
index 0000000..043da26
--- /dev/null
+++ b/php-doctrine-dbal.spec
@@ -0,0 +1,106 @@
+%global github_owner   doctrine
+%global github_name    dbal
+%global github_version 2.4.2
+%global github_commit  fec965d330c958e175c39e61c3f6751955af32d0
+
+# "php": ">=5.3.2"
+%global php_min_ver             5.3.2
+# "doctrine/common": "~2.4"
+%global doctrine_common_min_ver 2.4
+%global doctrine_common_max_ver 3.0
+# "symfony/console": "~2.0"
+%global symfony_console_min_ver 2.0
+%global symfony_console_max_ver 3.0
+
+Name:      php-%{github_owner}-%{github_name}
+Version:   %{github_version}
+Release:   1%{?github_release}%{?dist}
+Summary:   Doctrine Database Abstraction Layer (DBAL)
+
+Group:     Development/Libraries
+License:   MIT
+URL:       http://www.doctrine-project.org/projects/dbal.html
+Source0:   https://github.com/%{github_owner}/%{github_name}/archive/%{github_commit}/%{name}-%{github_version}-%{github_commit}.tar.gz
+
+BuildArch: noarch
+
+Requires:  php(language)       >= %{php_min_ver}
+Requires:  php-doctrine-common >= %{doctrine_common_min_ver}
+Requires:  php-doctrine-common <  %{doctrine_common_max_ver}
+Requires:  php-symfony-console >= %{symfony_console_min_ver}
+Requires:  php-symfony-console <  %{symfony_console_max_ver}
+# phpcompatinfo (computed from v2.4.2)
+Requires:  php-date
+Requires:  php-json
+Requires:  php-pcre
+Requires:  php-pdo
+Requires:  php-spl
+
+# PEAR
+Provides:  php-pear(pear.doctrine-project.org/DoctrineDBAL) = %{version}
+# Rename
+Obsoletes: php-doctrine-DoctrineDBAL < %{version}
+Provides:  php-doctrine-DoctrineDBAL = %{version}
+
+%description
+The Doctrine database abstraction & access layer (DBAL) offers a lightweight
+and thin runtime layer around a PDO-like API and a lot of additional, horizontal
+features like database schema introspection and manipulation through an OO API.
+
+The fact that the Doctrine DBAL abstracts the concrete PDO API away through the
+use of interfaces that closely resemble the existing PDO API makes it possible
+to implement custom drivers that may use existing native or self-made APIs. For
+example, the DBAL ships with a driver for Oracle databases that uses the oci8
+extension under the hood.
+
+
+%prep
+%setup -q -n %{github_name}-%{github_commit}
+
+# Make a single executable
+echo '#!%{_bindir}/php' > bin/doctrine-dbal
+sed 's#Doctrine/Common/ClassLoader.php#%{_datadir}/php/Doctrine/Common/ClassLoader.php#' \
+    bin/doctrine-dbal.php >> bin/doctrine-dbal
+
+# Remove empty file
+rm -f lib/Doctrine/DBAL/README.markdown
+
+# Remove executable bits
+chmod a-x \
+    lib/Doctrine/DBAL/Types/JsonArrayType.php \
+    lib/Doctrine/DBAL/Types/SimpleArrayType.php
+
+
+%build
+# Empty build section, nothing required
+
+
+%install
+mkdir -p %{buildroot}/%{_datadir}/php
+cp -rp lib/Doctrine %{buildroot}/%{_datadir}/php/
+
+mkdir -p %{buildroot}/%{_bindir}
+install -pm 0755 bin/doctrine-dbal %{buildroot}/%{_bindir}/
+
+
+%check
+# No upstream tests provided in source
+
+
+%files
+%doc LICENSE *.md UPGRADE composer.json
+%{_datadir}/php/Doctrine/DBAL
+%{_bindir}/doctrine-dbal
+
+
+%changelog
+* Sat Jan 04 2014 Shawn Iwinski <shawn.iwinski at gmail.com> 2.4.2-1
+- Updated to 2.4.2
+- Conditional %%{?dist}
+
+* Tue Dec 31 2013 Shawn Iwinski <shawn.iwinski at gmail.com> 2.4.1-2.20131231gitd08b11c
+- Updated to latest snapshot
+- Removed patches (pulled into latest snapshot)
+
+* Sun Dec 29 2013 Shawn Iwinski <shawn.iwinski at gmail.com> 2.4.1-1
+- Initial package
diff --git a/sources b/sources
index e69de29..ac9112d 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+0910670e281b3921bc0cdb9cb0339c04  php-doctrine-dbal-2.4.2-fec965d330c958e175c39e61c3f6751955af32d0.tar.gz


More information about the scm-commits mailing list