remi pushed to php-andrewsville-php-token-reflection (master). "import from review #1207591"

notifications at fedoraproject.org notifications at fedoraproject.org
Fri May 22 05:26:24 UTC 2015


From f9871b6228a1e9e4d8d7970a3b9f33d32d739320 Mon Sep 17 00:00:00 2001
From: Remi Collet <remi at fedoraproject.org>
Date: Fri, 22 May 2015 07:23:37 +0200
Subject: import from review #1207591


diff --git a/.gitignore b/.gitignore
index e69de29..a29da05 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/php-andrewsville-php-token-reflection-1.4.0-e6d0ac2.tgz
diff --git a/php-andrewsville-php-token-reflection.spec b/php-andrewsville-php-token-reflection.spec
new file mode 100644
index 0000000..7c7ce9c
--- /dev/null
+++ b/php-andrewsville-php-token-reflection.spec
@@ -0,0 +1,95 @@
+# spec file for php-andrewsville-php-token-reflection
+#
+# Copyright (c) 2015 Remi Collet
+# License: CC-BY-SA
+# http://creativecommons.org/licenses/by-sa/4.0/
+#
+# Please, preserve the changelog entries
+#
+%global gh_commit    e6d0ac2baf66cdf154be34c3d2a2aa1bd4b426ee
+%global gh_short     %(c=%{gh_commit}; echo ${c:0:7})
+%global gh_owner     Andrewsville
+%global gh_project   PHP-Token-Reflection
+%global with_tests   %{?_without_tests:0}%{!?_without_tests:1}
+
+Name:           php-andrewsville-php-token-reflection
+Version:        1.4.0
+Release:        2%{?dist}
+Summary:        Library emulating the PHP internal reflection
+
+Group:          Development/Libraries
+License:        BSD
+URL:            https://github.com/%{gh_owner}/%{gh_project}
+# https://github.com/Andrewsville/PHP-Token-Reflection/issues/68
+# run mksrc.sh to create the tarball from a git snapshot
+Source0:        %{name}-%{version}-%{gh_short}.tgz
+Source1:        makesrc.sh
+
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildArch:      noarch
+BuildRequires:  php(language) >= 5.3
+%if %{with_tests}
+BuildRequires:  %{_bindir}/phpab
+BuildRequires:  %{_bindir}/phpunit
+%endif
+
+# From composer.json
+#       "php": ">=5.3.0",
+#       "ext-tokenizer": "*"
+Requires:       php(language) >= 5.3
+Requires:       php-tokenizer
+# From phpcompatifo report for 1.4.0
+Requires:       php-pcre
+Requires:       php-phar
+Requires:       php-reflection
+Requires:       php-spl
+
+Provides:       php-composer(andrewsville/php-token-reflection) = %{version}
+
+
+%description
+This library emulates the PHP reflection model using the tokenized PHP source.
+
+%prep
+%setup -q -n %{gh_project}-%{gh_commit}
+
+
+%build
+# Nothing
+
+
+%install
+rm -rf                 %{buildroot}
+mkdir -p               %{buildroot}%{_datadir}/php
+cp -pr TokenReflection %{buildroot}%{_datadir}/php/TokenReflection
+
+
+%if %{with_tests}
+%check
+: generate the bootstrap/autoloader
+%{_bindir}/phpab --output TokenReflection/bs.php TokenReflection
+
+: run test suite
+%{_bindir}/phpunit --bootstrap TokenReflection/bs.php \
+  tests || : results ignored for now, known upstream issues
+%endif
+
+
+%clean
+rm -rf %{buildroot}
+
+
+%files
+%defattr(-,root,root,-)
+%{!?_licensedir:%global license %%doc}
+%license LICENSE.md
+%doc README.md composer.json
+%{_datadir}/php/TokenReflection
+
+
+%changelog
+* Mon May  4 2015 Remi Collet <remi at fedoraproject.org> - 1.4.0-2
+- add mksrc.sh as source1, per review comment #1207591
+
+* Tue Mar 31 2015 Remi Collet <remi at fedoraproject.org> - 1.4.0-1
+- initial package
\ No newline at end of file
diff --git a/sources b/sources
index e69de29..830d05b 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+bfa250cc954dc40d1c6309914e10634e  php-andrewsville-php-token-reflection-1.4.0-e6d0ac2.tgz
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/php-andrewsville-php-token-reflection.git/commit/?h=master&id=f9871b6228a1e9e4d8d7970a3b9f33d32d739320


More information about the scm-commits mailing list