diff options
author | Remi Collet <remi@remirepo.net> | 2017-07-12 09:07:56 +0200 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2017-07-12 09:07:56 +0200 |
commit | e41508b53b249f5ae60efddf79899d495aa19f8f (patch) | |
tree | 002bba9da95c58e60316959ca00f0bdee4c95992 /phan.spec | |
parent | f45cb25a356f8164e05e54038344f7aee08397bf (diff) |
v0.8.5
Diffstat (limited to 'phan.spec')
-rw-r--r-- | phan.spec | 42 |
1 files changed, 28 insertions, 14 deletions
@@ -6,7 +6,7 @@ # # Please, preserve the changelog entries # -%global gh_commit 9dbe813f09122c7799e1c197c5a70d3c279867a2 +%global gh_commit 52307bfc60c1fd682536e2145bd3e52bbb142a23 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner etsy #global gh_date 20150820 @@ -15,7 +15,7 @@ %global with_tests 0%{!?_without_tests:1} Name: %{gh_project} -Version: 0.8.4 +Version: 0.8.5 Release: 1%{?gh_date?%{gh_date}git%{gh_short}}%{?dist} Summary: A static analyzer for PHP @@ -25,7 +25,6 @@ URL: https://github.com/%{gh_owner}/%{gh_project} Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{gh_project}-%{version}-%{?gh_short}.tar.gz # Use fedora autoloader -Source1: %{name}-autoload.php Patch0: %{name}-autoload.patch BuildArch: noarch @@ -94,9 +93,23 @@ and narrow types based on conditionals. %setup -q -n %{gh_project}-%{gh_commit} %patch0 -p1 -b .rpm -cp %{SOURCE1} src/%{psr0}/autoload.php + +cat << 'EOF' | tee src/autoload.php +<?php +/* Autoloader for etsy/phan and its dependencies */ + +require_once '/usr/share/php/Fedora/Autoloader/autoload.php'; +\Fedora\Autoloader\Autoload::addPsr4('Phan\\', __DIR__ . '/Phan'); +\Fedora\Autoloader\Dependencies::required([ + [ + '/usr/share/php/Symfony3/Component/Console/autoload.php', + '/usr/share/php/Symfony/Component/Console/autoload.php', + ], +]); +EOF find . -name \*.rpm -delete +chmod +x src/phan.php %build @@ -105,29 +118,24 @@ find . -name \*.rpm -delete %install : Library -mkdir -p %{buildroot}%{_datadir}/php -cp -pr src/%{psr0} %{buildroot}%{_datadir}/php/%{psr0} - -: Relocated tools -cp -pr src/*php %{buildroot}%{_datadir}/php/%{psr0}/ -install -Dpm 755 src/phan.php %{buildroot}%{_datadir}/php/%{psr0}/phan.php -install -Dpm 755 src/prep.php %{buildroot}%{_datadir}/php/%{psr0}/prep.php +mkdir -p %{buildroot}%{_datadir}/php/ +cp -pr src %{buildroot}%{_datadir}/php/%{psr0} : Commands mkdir -p %{buildroot}%{_bindir} ln -s ../share/php/%{psr0}/phan.php %{buildroot}%{_bindir}/phan -ln -s ../share/php/%{psr0}/prep.php %{buildroot}%{_bindir}/phan-prep +install -Dpm 755 phan_client %{buildroot}%{_bindir}/phan-client %check %if %{with_tests} cat << 'EOF' | tee tests/autoload.php <?php -require '%{buildroot}%{_datadir}/php/%{psr0}/Bootstrap.php'; +require '%{buildroot}%{_datadir}/php/%{psr0}/Phan/Bootstrap.php'; \Fedora\Autoloader\Autoload::addPsr4('Phan\\Tests\\', __DIR__ . '/Phan'); EOF -# Notice request and grpc must be disabled +# NOTICE mosquitto, request and grpc must be disabled %{_bindir}/phpunit6 -d memory_limit=1G --bootstrap tests/autoload.php --verbose @@ -146,6 +154,12 @@ EOF %changelog +* Wed Jul 12 2017 Remi Collet <remi@remirepo.net> - 0.8.5-1 +- Update to 0.8.5 +- installation layout match upstream tree +- remove phan-prep command (only an example) +- add phan-client command + * Wed Jun 14 2017 Remi Collet <remi@remirepo.net> - 0.8.4-1 - Update to 0.8.4 - allow Symfony 3 |