summaryrefslogtreecommitdiffstats
path: root/php-doctrine-orm.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-doctrine-orm.spec')
-rw-r--r--php-doctrine-orm.spec18
1 files changed, 15 insertions, 3 deletions
diff --git a/php-doctrine-orm.spec b/php-doctrine-orm.spec
index d104c2e..2ca75e6 100644
--- a/php-doctrine-orm.spec
+++ b/php-doctrine-orm.spec
@@ -13,8 +13,8 @@
%global github_owner doctrine
%global github_name orm
-%global github_version 2.7.0
-%global github_commit 4d763ca4c925f647b248b9fa01b5f47aa3685d62
+%global github_version 2.7.1
+%global github_commit 445796af0e873d9bd04f2502d322a7d5009b6846
%global composer_vendor doctrine
%global composer_project orm
@@ -71,6 +71,8 @@ Source1: %{name}-get-source.sh
# 1) Add she-bang
# 2) Auto-load using Doctrine\Common\ClassLoader
Patch0: %{name}-bin.patch
+# get rid of ocramius/package-versions
+Patch1: %{name}-version.patch
BuildArch: noarch
# Tests
@@ -213,7 +215,14 @@ Autoloader: %{phpdir}/Doctrine/ORM/autoload.php
: Patch bin script
%patch0 -p1 -b .rpm
-sed -i 's#__PHPDIR__#%{phpdir}#g' bin/doctrine.php
+sed -e 's#__PHPDIR__#%{phpdir}#g' -i \
+ bin/doctrine.php
+
+%patch1 -p1 -b .rpm
+sed -e 's/@VERSION@/%{version}/' -i \
+ lib/Doctrine/ORM/Tools/Console/ConsoleRunner.php \
+ tests/Doctrine/Tests/ORM/Tools/Console/ConsoleRunnerTest.php
+find lib -name \*.rpm -delete
: Remove empty file
rm -f lib/Doctrine/ORM/README.markdown
@@ -310,6 +319,9 @@ exit $RETURN_CODE
%changelog
+* Mon Feb 17 2020 Remi Collet <remi@remirepo.net> - 2.7.1-1
+- update to 2.7.1
+
* Tue Nov 19 2019 Remi Collet <remi@remirepo.net> - 2.7.0-1
- update to 2.7.0
- add dependency on doctrine/event-manager