summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--composer.json30
-rwxr-xr-xmakesrc.sh2
-rw-r--r--php-nette-tokenizer.spec19
3 files changed, 46 insertions, 5 deletions
diff --git a/composer.json b/composer.json
new file mode 100644
index 0000000..810b289
--- /dev/null
+++ b/composer.json
@@ -0,0 +1,30 @@
+{
+ "name": "nette/tokenizer",
+ "description": "Nette Tokenizer",
+ "homepage": "https://nette.org",
+ "license": ["BSD-3-Clause", "GPL-2.0", "GPL-3.0"],
+ "authors": [
+ {
+ "name": "David Grudl",
+ "homepage": "https://davidgrudl.com"
+ },
+ {
+ "name": "Nette Community",
+ "homepage": "https://nette.org/contributors"
+ }
+ ],
+ "require": {
+ "php": ">=5.3.1"
+ },
+ "require-dev": {
+ "nette/tester": "~2.0",
+ "tracy/tracy": "^2.3"
+ },
+ "conflict": {
+ "nette/nette": "<2.2"
+ },
+ "autoload": {
+ "classmap": ["src/"]
+ },
+ "minimum-stability": "dev"
+}
diff --git a/makesrc.sh b/makesrc.sh
index e9a1ec5..87d223d 100755
--- a/makesrc.sh
+++ b/makesrc.sh
@@ -16,7 +16,7 @@ git clone https://github.com/$OWNER/$PROJECT.git $PROJECT-$COMMIT
echo "Getting commit..."
pushd $PROJECT-$COMMIT
git checkout $COMMIT
-cp composer.json ../composer-$VERSION.json
+cp composer.json ../composer.json
popd
echo "Archiving..."
diff --git a/php-nette-tokenizer.spec b/php-nette-tokenizer.spec
index 03cfe78..9673b02 100644
--- a/php-nette-tokenizer.spec
+++ b/php-nette-tokenizer.spec
@@ -6,7 +6,7 @@
#
# Please, preserve the changelog entries
#
-%global gh_commit cbb4920d166af495f83eb213f16512a421d44f63
+%global gh_commit 2ed42cc6c61317c847c2bfb96ae7a865dc88c331
#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.2.1
+Version: 2.2.2
%global specrel 1
Release: %{?gh_date:0.%{specrel}.%{?prever}%{!?prever:%{gh_date}git%{gh_short}}}%{!?gh_date:%{specrel}}%{?dist}
Summary: Nette Tokenizer
@@ -36,8 +36,10 @@ BuildRequires: php-composer(theseer/autoload)
BuildRequires: php(language) >= 5.3.1
BuildRequires: php-pcre
# From composer.json, "require-dev": {
-# "nette/tester": "~1.0"
+# "nette/tester": "~2.0",
+# "tracy/tracy": "^2.3"
BuildRequires: php-composer(%{gh_owner}/tester) >= 1.4
+BuildRequires: php-composer(tracy/tracy) >= 2.3
%endif
# from composer.json, "require": {
@@ -89,6 +91,12 @@ EOF
: Run test suite in sources tree
nette-tester --colors 0 -p php -c ./php.ini tests -s
+
+# remirepo:4
+if which php70; then
+ cat /etc/opt/remi/php70/php.ini /etc/opt/remi/php70/php.d/*ini >php.ini
+ php70 %{_bindir}/nette-tester --colors 0 -p php70 -c ./php.ini tests -s
+fi
%else
: Test suite disabled
%endif
@@ -109,5 +117,8 @@ rm -rf %{buildroot}
%changelog
+* Mon Jun 20 2016 Remi Collet <remi@fedoraproject.org> - 2.2.2-1
+- update to 2.2.2
+
* Sun Nov 1 2015 Remi Collet <remi@fedoraproject.org> - 2.2.1-1
-- initial package \ No newline at end of file
+- initial package