summaryrefslogtreecommitdiffstats
path: root/php-nette-forms.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-nette-forms.spec')
-rw-r--r--php-nette-forms.spec76
1 files changed, 47 insertions, 29 deletions
diff --git a/php-nette-forms.spec b/php-nette-forms.spec
index 0c1eeb9..0cf5b1b 100644
--- a/php-nette-forms.spec
+++ b/php-nette-forms.spec
@@ -6,7 +6,7 @@
#
# Please, preserve the changelog entries
#
-%global gh_commit 30b4887e8661ee53c06a7683508f1a888a1b944b
+%global gh_commit c2618a144a7cd0a1f41143e18387d9c48cef91cb
#global gh_date 20150728
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner nette
@@ -17,7 +17,7 @@
%global with_tests 0%{!?_without_tests:1}
Name: php-%{gh_owner}-%{gh_project}
-Version: 2.3.12
+Version: 2.4.3
%global specrel 1
Release: %{?gh_date:0.%{specrel}.%{?prever}%{!?prever:%{gh_date}git%{gh_short}}}%{!?gh_date:%{specrel}}%{?dist}
Summary: Nette Forms: greatly facilitates web forms
@@ -33,36 +33,36 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: php-composer(theseer/autoload)
%if %{with_tests}
-BuildRequires: php(language) >= 5.3.1
-BuildRequires: php-composer(%{gh_owner}/component-model) >= 2.2
+BuildRequires: php(language) >= 5.6
+BuildRequires: php-composer(%{gh_owner}/component-model) >= 2.3
BuildRequires: php-composer(%{gh_owner}/http) >= 2.2
-BuildRequires: php-composer(%{gh_owner}/utils) >= 2.3.10
+BuildRequires: php-composer(%{gh_owner}/utils) >= 2.4
BuildRequires: php-pcre
BuildRequires: php-spl
# From composer.json, "require-dev": {
-# "nette/di": "~2.3",
-# "nette/tester": "~1.3"
-# "latte/latte": "~2.3.2"
-# "tracy/tracy": "~2.2"
-BuildRequires: php-composer(%{gh_owner}/di) >= 2.3
-BuildRequires: php-composer(%{gh_owner}/tester) >= 1.3
-BuildRequires: php-composer(latte/latte) >= 2.3.2
-BuildRequires: php-composer(tracy/tracy) >= 2.2
+# "nette/di": "~2.4",
+# "nette/tester": "~2.0"
+# "latte/latte": "~2.4"
+# "tracy/tracy": "~2.4"
+BuildRequires: php-composer(%{gh_owner}/di) >= 2.4
+BuildRequires: php-composer(%{gh_owner}/tester) >= 2.0
+BuildRequires: php-composer(latte/latte) >= 2.4
+BuildRequires: php-composer(tracy/tracy) >= 2.4
%endif
# from composer.json, "require": {
-# "php": ">=5.3.1"
-# "nette/component-model": "~2.2.0",
+# "php": ">=5.6.0"
+# "nette/component-model": "~2.3",
# "nette/http": "~2.2",
-# "nette/utils": "~2.3.10"
-Requires: php(language) >= 5.3.1
-Requires: php-composer(%{gh_owner}/component-model) >= 2.2.0
-Requires: php-composer(%{gh_owner}/component-model) < 2.3
+# "nette/utils": "~2.4"
+Requires: php(language) >= 5.6
+Requires: php-composer(%{gh_owner}/component-model) >= 2.3
+Requires: php-composer(%{gh_owner}/component-model) < 3
Requires: php-composer(%{gh_owner}/http) >= 2.2
Requires: php-composer(%{gh_owner}/http) < 3
-Requires: php-composer(%{gh_owner}/utils) >= 2.3.10
+Requires: php-composer(%{gh_owner}/utils) >= 2.4
Requires: php-composer(%{gh_owner}/utils) < 3
-# from phpcompatinfo report for version 2.3.6
+# from phpcompatinfo report for version 2.4.1
Requires: php-pcre
Requires: php-spl
@@ -109,9 +109,6 @@ rm -rf %{buildroot}%{php_home}/%{ns_vendor}/assets
%check
%if %{with_tests}
-: Generate configuration
-cat /etc/php.ini /etc/php.d/*ini >php.ini
-echo 'session.save_path = "/tmp"' >>php.ini
export LANG=fr_FR.utf8
: Generate autoloader
@@ -126,7 +123,22 @@ require_once '%{buildroot}%{php_home}/%{ns_vendor}/%{ns_project}/autoload.php';
EOF
: Run test suite in sources tree
-%{_bindir}/nette-tester --colors 0 -p php -c ./php.ini tests -s
+# remirepo:11
+run=0
+ret=0
+if which php56; then
+ php56 %{_bindir}/nette-tester --colors 0 -p php56 -C tests -s
+ run=1
+fi
+if which php71; then
+ php71 %{_bindir}/nette-tester --colors 0 -p php71 -C tests -s
+ run=1
+fi
+if [ $run -eq 0 ]; then
+%{_bindir}/nette-tester --colors 0 -p php -C tests -s
+# remirepo:2
+fi
+exit $ret
%else
: Test suite disabled
%endif
@@ -149,11 +161,17 @@ rm -rf %{buildroot}
%changelog
-* Wed Dec 21 2016 Remi Collet <remi@fedoraproject.org> - 2.3.12-1
-- update to 2.3.12
+* Wed Dec 21 2016 Remi Collet <remi@fedoraproject.org> - 2.4.3-1
+- update to 2.4.3
-* Tue Sep 27 2016 Remi Collet <remi@fedoraproject.org> - 2.3.11-1
-- update to 2.3.11
+* Tue Sep 27 2016 Remi Collet <remi@fedoraproject.org> - 2.4.2-1
+- update to 2.4.2
+
+* Thu Aug 4 2016 Remi Collet <remi@fedoraproject.org> - 2.4.1-1
+- update to 2.4.1
+- raise dependency on PHP >= 5.6
+- raise dependency on nette/utils >= 2.4
+- raise dependency on nette/component-model >= 2.3
* Fri Jul 1 2016 Remi Collet <remi@fedoraproject.org> - 2.3.10-1
- update to 2.3.10