summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2016-04-18 09:19:02 +0200
committerRemi Collet <fedora@famillecollet.com>2016-04-18 09:19:02 +0200
commit1135dbc1baa63ef5338b9e71d2cc9fd769b4fe43 (patch)
tree89b02905e7ee09bbd4f0f3fd20fdad90b45e0334
parent400ccf0512be29baff6117e141a1cc40dd09bbed (diff)
php-bartlett-umlwriter: allow sebastian/version 2.0
-rw-r--r--composer.json46
-rw-r--r--php-bartlett-umlwriter.spec16
2 files changed, 59 insertions, 3 deletions
diff --git a/composer.json b/composer.json
new file mode 100644
index 0000000..494b2cb
--- /dev/null
+++ b/composer.json
@@ -0,0 +1,46 @@
+{
+ "name": "bartlett/umlwriter",
+ "description": "Create UML class diagrams from your PHP source.",
+ "keywords": ["UML", "Graphviz", "PlantUML"],
+ "type": "library",
+ "license": "BSD-3-Clause",
+ "homepage": "http://php5.laurent-laville.org/umlwriter/",
+ "support": {
+ "source": "https://github.com/llaville/umlwriter",
+ "issues": "https://github.com/llaville/umlwriter/issues"
+ },
+ "require": {
+ "php": ">=5.4.0",
+ "symfony/console": "~2.5",
+ "sebastian/version": "~1.0"
+ },
+ "require-dev": {
+ "bartlett/php-reflect": "~4.0",
+ "andrewsville/php-token-reflection": "~1.4"
+ },
+ "suggest": {
+ "bartlett/php-reflect": "Reverse-engine, default solution",
+ "andrewsville/php-token-reflection": "Reverse-engine, alternative solution"
+ },
+ "authors": [
+ {
+ "name": "Laurent Laville",
+ "email": "pear@laurent-laville.org",
+ "homepage": "https://github.com/llaville",
+ "role": "Lead"
+ }
+ ],
+ "bin": [
+ "bin/umlwriter"
+ ],
+ "autoload": {
+ "psr-4": {
+ "Bartlett\\": "src/Bartlett"
+ }
+ },
+ "autoload-dev": {
+ "psr-4": {
+ "Bartlett\\Tests\\UmlWriter\\": "tests/"
+ }
+ }
+}
diff --git a/php-bartlett-umlwriter.spec b/php-bartlett-umlwriter.spec
index e903705..bbbf7c4 100644
--- a/php-bartlett-umlwriter.spec
+++ b/php-bartlett-umlwriter.spec
@@ -21,7 +21,7 @@
Name: php-bartlett-umlwriter
Version: 1.1.0
-%global specrel 1
+%global specrel 3
Release: %{?gh_date:0.%{specrel}.%{?prever}%{!?prever:%{gh_date}git%{gh_short}}}%{!?gh_date:%{specrel}}%{?dist}
Summary: Create UML class diagrams from your PHP source
@@ -60,7 +60,7 @@ Requires: php-spl
Requires: php-composer(symfony/console) >= 2.5
Requires: php-composer(symfony/console) < 3
Requires: php-composer(sebastian/version) >= 1.0
-Requires: php-composer(sebastian/version) < 2
+Requires: php-composer(sebastian/version) < 3
# "require-dev": {
# "bartlett/php-reflect": "~4.0",
# "andrewsville/php-token-reflection": "~1.4"
@@ -120,6 +120,12 @@ install -D -p -m 755 bin/umlwriter %{buildroot}%{_bindir}/umlwriter
%{_bindir}/phpunit \
--bootstrap %{buildroot}%{_datadir}/php/Bartlett/UmlWriter/autoload.php \
--verbose
+
+if which php70; then
+ php70 %{_bindir}/phpunit \
+ --bootstrap %{buildroot}%{_datadir}/php/Bartlett/UmlWriter/autoload.php \
+ --verbose
+fi
%else
: Test suite disabled
%endif
@@ -135,6 +141,10 @@ install -D -p -m 755 bin/umlwriter %{buildroot}%{_bindir}/umlwriter
%changelog
+* Mon Apr 18 2016 Remi Collet <remi@fedoraproject.org> - 1.1.0-3
+- allow sebastian/version 2.0
+- run test suite with both PHP 5 and 7 when available
+
* Thu Dec 10 2015 Remi Collet <remi@fedoraproject.org> - 1.1.0-1
- update to 1.1.0
- raise dependency on php >= 5.4.0
@@ -173,4 +183,4 @@ install -D -p -m 755 bin/umlwriter %{buildroot}%{_bindir}/umlwriter
- open https://github.com/llaville/umlwriter/issues/2 runtime issue
* Tue Mar 24 2015 Remi Collet <remi@fedoraproject.org> - 1.0.0-0.1.RC1
-- Initial RPM package, version 1.0.0RC1 \ No newline at end of file
+- Initial RPM package, version 1.0.0RC1