[php-gliph] Updated to 0.1.5
Shawn Iwinski
siwinski at fedoraproject.org
Wed Nov 6 16:30:53 UTC 2013
commit 65c704f01c69f6257cf7df3584670f1e10c9f9c7
Author: Shawn Iwinski <siwinski at redhat.com>
Date: Wed Nov 6 11:30:54 2013 -0500
Updated to 0.1.5
- Removed tests (git export-ignored upstream)
.gitignore | 1 +
php-gliph.spec | 39 ++++++++++-----------------------------
sources | 1 +
3 files changed, 12 insertions(+), 29 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index a47043c..cb0f88e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
/php-gliph-0.1.4-8da23c6397354e9acc7a7e6f8d2a782fdf21ab54.tar.gz
+/php-gliph-0.1.5-f57d0416c63697336bcfea54f96d2c1f3c8cc6a5.tar.gz
diff --git a/php-gliph.spec b/php-gliph.spec
index e1b0ee0..5324ee1 100644
--- a/php-gliph.spec
+++ b/php-gliph.spec
@@ -1,16 +1,14 @@
%global github_owner sdboyer
%global github_name gliph
-%global github_version 0.1.4
-%global github_commit 8da23c6397354e9acc7a7e6f8d2a782fdf21ab54
-%global github_date 20131024
-%global github_release %{github_date}git%(c=%{github_commit}; echo ${c:0:7})
+%global github_version 0.1.5
+%global github_commit f57d0416c63697336bcfea54f96d2c1f3c8cc6a5
%global lib_name Gliph
%global php_min_ver 5.3.0
Name: php-%{github_name}
Version: %{github_version}
-Release: 1.%{github_release}%{?dist}
+Release: 1%{?dist}
Summary: A graph library for PHP
Group: Development/Libraries
@@ -19,13 +17,6 @@ URL: https://github.com/%{github_owner}/%{github_name}
Source0: %{url}/archive/%{github_commit}/%{name}-%{version}-%{github_commit}.tar.gz
BuildArch: noarch
-# For tests
-BuildRequires: php(language) >= %{php_min_ver}
-BuildRequires: php-pear(pear.phpunit.de/PHPUnit) >= 3.7.0
-BuildRequires: php-pear(pear.phpunit.de/PHPUnit) < 3.8.0
-# For tests: phpcompatinfo
-BuildRequires: php-reflection
-BuildRequires: php-spl
Requires: php(language) >= %{php_min_ver}
# phpcompatinfo
@@ -41,22 +32,6 @@ Neo4J (http://neo4j.org/).
%prep
%setup -q -n %{github_name}-%{github_commit}
-# Create PHPUnit bootstrap for tests
-( cat <<'BOOTSTRAP'
-<?php
-spl_autoload_register(function ($class) {
- $src = str_replace('\\', '/', str_replace('_', '/', $class)).'.php';
- @include_once $src;
-});
-BOOTSTRAP
-) > bootstrap.php
-
-# Create phpunit.xml with updated PHPUnit bootstrap and no colors
-cat phpunit.xml.dist | \
- sed -e 's#tests/bootstrap.php#bootstrap.php#' \
- -e 's#colors="true"#colors="false"#' > \
- phpunit.xml
-
%build
# Empty build section, nothing to build
@@ -68,7 +43,9 @@ cp -rp src/%{lib_name} %{buildroot}%{_datadir}/php/
%check
-%{_bindir}/phpunit -d include_path="./src:./tests:.:%{pear_phpdir}"
+# As of version 0.1.5, "phpunit.xml.dist" and "/tests" are git export-ignored
+# therefore the RPM source tarball does not contain tests. Upstream will be
+# contacted to revert the git export-ignore so tests may be run here.
%files
@@ -77,6 +54,10 @@ cp -rp src/%{lib_name} %{buildroot}%{_datadir}/php/
%changelog
+* Wed Nov 06 2013 Shawn Iwinski <shawn.iwinski at gmail.com> 0.1.5-1
+- Updated to 0.1.5
+- Removed tests (git export-ignored upstream)
+
* Thu Oct 24 2013 Shawn Iwinski <shawn.iwinski at gmail.com> 0.1.4-1.20131024git8da23c6
- Updated to latest snapshot (commit 8da23c6397354e9acc7a7e6f8d2a782fdf21ab54)
which includes LICENSE
diff --git a/sources b/sources
index db539ed..7870c2f 100644
--- a/sources
+++ b/sources
@@ -1 +1,2 @@
8fde39d8ee5539e67969e2e65198f544 php-gliph-0.1.4-8da23c6397354e9acc7a7e6f8d2a782fdf21ab54.tar.gz
+21cbcb6f24c146880c7ae2542465d74b php-gliph-0.1.5-f57d0416c63697336bcfea54f96d2c1f3c8cc6a5.tar.gz
More information about the scm-commits
mailing list