Blame php-phpunit-php-token-stream3.spec

f701299
# remirepo/fedora spec file for php-phpunit-php-token-stream3
f701299
#
5a98ede
# Copyright (c) 2010-2019 Christof Damian, Remi Collet
f701299
#
f701299
# License: MIT
f701299
# http://opensource.org/licenses/MIT
f701299
#
f701299
# Please, preserve the changelog entries
f701299
#
baa7c15
%global bootstrap    0
1a1bd39
%global gh_commit    995192df77f63a59e47f025390d2d1fdf8f425ff
f701299
%global gh_short     %(c=%{gh_commit}; echo ${c:0:7})
f701299
%global gh_owner     sebastianbergmann
f701299
%global gh_project   php-token-stream
f701299
%global pk_vendor    phpunit
f701299
%global pk_project   %{gh_project}
f701299
%global major        3
f701299
%global php_home     %{_datadir}/php
f701299
# Fake NS for directory layout
f701299
%global ns_vendor    SebastianBergmann
f701299
%global ns_project   PhpTokenStream
f701299
%if %{bootstrap}
f701299
%global with_tests   0%{?_with_tests:1}
f701299
%else
f701299
%global with_tests   0%{!?_without_tests:1}
f701299
%endif
f701299
f701299
Name:           php-%{pk_vendor}-%{pk_project}%{major}
1a1bd39
Version:        3.1.1
5a98ede
Release:        1%{?dist}
f701299
Summary:        Wrapper around PHP tokenizer extension
f701299
f701299
License:        BSD
f701299
URL:            https://github.com/%{gh_owner}/%{gh_project}
f701299
Source0:        https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{name}-%{version}-%{gh_short}.tar.gz
f701299
f701299
BuildArch:      noarch
f701299
BuildRequires:  php-fedora-autoloader-devel
f701299
%if %{with_tests}
f701299
BuildRequires:  php(language) >= 7.1
f701299
BuildRequires:  php-tokenizer
f701299
# from composer.json, "require-dev": {
f701299
#        "phpunit/phpunit": "^7.0"
f701299
BuildRequires:  phpunit7
f701299
BuildRequires:  php-pcre
f701299
BuildRequires:  php-spl
f701299
%endif
f701299
f701299
# from composer.json
f701299
#        "php": "^7.1",
f701299
#        "ext-tokenizer": "*"
f701299
Requires:       php(language) >= 7.1
f701299
Requires:       php-tokenizer
f701299
# from phpcompatinfo report for version 2.0.1
f701299
Requires:       php-pcre
f701299
Requires:       php-spl
f701299
# Autoloader
f701299
Requires:       php-composer(fedora/autoloader)
f701299
f701299
Provides:       php-composer(%{pk_vendor}/%{pk_project}) = %{version}
f701299
f701299
f701299
%description
f701299
Wrapper around PHP tokenizer extension.
f701299
f701299
Autoloader: %{php_home}/%{ns_vendor}/%{ns_project}%{major}/autoload.php
f701299
f701299
f701299
%prep
f701299
%setup -q -n %{gh_project}-%{gh_commit}
f701299
f701299
f701299
%build
f701299
# Generate the Autoloader
f701299
%{_bindir}/phpab --template fedora --output src/autoload.php src
f701299
f701299
f701299
%install
f701299
mkdir -p   %{buildroot}%{php_home}/%{ns_vendor}
f701299
cp -pr src %{buildroot}%{php_home}/%{ns_vendor}/%{ns_project}%{major}
f701299
f701299
f701299
%check
f701299
%if %{with_tests}
f701299
mkdir vendor
f701299
touch vendor/autoload.php
f701299
f701299
: Run upstream test suite
f701299
ret=0
5a98ede
for cmd in php php71 php72 php73 php74; do
f701299
  if which $cmd; then
f701299
    $cmd -d auto_prepend_file=%{buildroot}%{php_home}/%{ns_vendor}/%{ns_project}%{major}/autoload.php \
f701299
      %{_bindir}/phpunit7  --verbose || ret=1
f701299
  fi
f701299
done
f701299
exit $ret
f701299
%else
f701299
: bootstrap build with test suite disabled
f701299
%endif
f701299
f701299
f701299
%files
f701299
%license LICENSE
f701299
%doc composer.json
f701299
%doc *.md
f701299
%dir %{php_home}/%{ns_vendor}
f701299
     %{php_home}/%{ns_vendor}/%{ns_project}%{major}
f701299
f701299
f701299
%changelog
1a1bd39
* Tue Sep 17 2019 Remi Collet <remi@remirepo.net> - 3.1.1-1
1a1bd39
- update to 3.1.1
1a1bd39
9beb860
* Thu Jul 25 2019 Remi Collet <remi@remirepo.net> - 3.1.0-1
9beb860
- update to 3.1.0
9beb860
5a98ede
* Mon Jul  8 2019 Remi Collet <remi@remirepo.net> - 3.0.2-1
5a98ede
- update to 3.0.2
5a98ede
53cc222
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.1-2
53cc222
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
53cc222
8d94a09
* Tue Oct 30 2018 Remi Collet <remi@remirepo.net> - 3.0.1-1
8d94a09
- update to 3.0.1
8d94a09
33b1d6a
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-2
33b1d6a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
33b1d6a
baa7c15
* Wed Feb  7 2018 Remi Collet <remi@remirepo.net> - 3.0.0-1
baa7c15
- normal build
baa7c15
f701299
* Fri Feb  2 2018 Remi Collet <remi@remirepo.net> - 3.0.0-0
f701299
- update to 3.0.0
f701299
- rename to php-phpunit-php-token-stream3
f701299
- move to /usr/share/php/SebastianBergmann/PhpTokenStream3
f701299
- raise dependency on PHP 7.1
f701299
- use phpunit7
f701299
- bootstrap build
f701299
f701299
* Tue Nov 28 2017 Remi Collet <remi@remirepo.net> - 2.0.2-1
f701299
- Update to 2.0.2
f701299
f701299
* Mon Nov  6 2017 Remi Collet <remi@remirepo.net> - 2.0.1-1
f701299
- rename to php-phpunit-php-token-stream2
f701299
f701299
* Mon Aug 21 2017 Remi Collet <remi@remirepo.net> - 2.0.1-1
f701299
- Update to 2.0.1
f701299
f701299
* Fri Aug  4 2017 Remi Collet <remi@remirepo.net> - 2.0.0-1
f701299
- Update to 2.0.0
f701299
- raise dependency on PHP 7.0
f701299
- switch to phpunit6
f701299
f701299
* Mon Feb 27 2017 Remi Collet <remi@fedoraproject.org> - 1.4.11-1
f701299
- Update to 1.4.11
f701299
f701299
* Thu Feb 23 2017 Remi Collet <remi@fedoraproject.org> - 1.4.10-1
f701299
- Update to 1.4.10
f701299
f701299
* Wed Nov 16 2016 Remi Collet <remi@fedoraproject.org> - 1.4.9-1
f701299
- Update to 1.4.9
f701299
- switch to fedora/autoloader
f701299
f701299
* Tue Sep 15 2015 Remi Collet <remi@fedoraproject.org> - 1.4.8-1
f701299
- Update to 1.4.8
f701299
f701299
* Tue Sep 15 2015 Remi Collet <remi@fedoraproject.org> - 1.4.7-1
f701299
- Update to 1.4.7 (broken)
f701299
f701299
* Fri Aug 21 2015 Remi Collet <remi@fedoraproject.org> - 1.4.6-1
f701299
- Update to 1.4.6
f701299
f701299
* Thu Aug 13 2015 Remi Collet <remi@fedoraproject.org> - 1.4.5-1
f701299
- Update to 1.4.5
f701299
f701299
* Thu Aug 13 2015 Remi Collet <remi@fedoraproject.org> - 1.4.4-1
f701299
- Update to 1.4.4
f701299
f701299
* Thu Jul  2 2015 Remi Collet <remi@fedoraproject.org> - 1.4.3-2
f701299
- fix autoloader
f701299
f701299
* Fri Jun 19 2015 Remi Collet <remi@fedoraproject.org> - 1.4.3-1
f701299
- Update to 1.4.3
f701299
f701299
* Fri Jun 12 2015 Remi Collet <remi@fedoraproject.org> - 1.4.2-1
f701299
- Update to 1.4.2
f701299
f701299
* Wed Apr  8 2015 Remi Collet <remi@fedoraproject.org> - 1.4.1-1
f701299
- Update to 1.4.1
f701299
f701299
* Sun Jan 18 2015 Remi Collet <remi@fedoraproject.org> - 1.4.0-1
f701299
- Update to 1.3.0
f701299
f701299
* Sun Aug 31 2014 Remi Collet <remi@fedoraproject.org> - 1.3.0-1
f701299
- Update to 1.3.0
f701299
- enable tests during build
f701299
f701299
* Wed Jun 25 2014 Remi Collet <remi@fedoraproject.org> - 1.2.2-5
f701299
- composer dependencies
f701299
f701299
* Wed Apr 30 2014 Remi Collet <remi@fedoraproject.org> - 1.2.2-3
f701299
- cleanup pear registry
f701299
f701299
* Tue Apr 29 2014 Remi Collet <remi@fedoraproject.org> - 1.2.2-2
f701299
- sources from github
f701299
f701299
* Mon Mar 03 2014 Remi Collet <remi@fedoraproject.org> - 1.2.2-1
f701299
- Update to 1.2.2
f701299
f701299
* Fri Sep 13 2013 Remi Collet <remi@fedoraproject.org> - 1.2.1-1
f701299
- Update to 1.2.1
f701299
f701299
* Mon Aug 05 2013 Remi Collet <remi@fedoraproject.org> - 1.2.0-1
f701299
- Update to 1.2.0
f701299
f701299
* Mon Jul 29 2013 Remi Collet <remi@fedoraproject.org> - 1.1.7-1
f701299
- Update to 1.1.7
f701299
f701299
* Sat Oct  6 2012 Remi Collet <RPMS@FamilleCollet.com> - 1.1.5-1
f701299
- upstream 1.1.5
f701299
f701299
* Mon Sep 24 2012 Remi Collet <RPMS@FamilleCollet.com> - 1.1.4-1
f701299
- upstream 1.1.4
f701299
f701299
* Thu Feb 23 2012 Remi Collet <RPMS@FamilleCollet.com> - 1.1.3-1
f701299
- upstream 1.1.3
f701299
f701299
* Mon Jan 16 2012 Remi Collet <RPMS@FamilleCollet.com> - 1.1.2-1
f701299
- upstream 1.1.2
f701299
f701299
* Fri Nov 11 2011 Remi Collet <remi@fedoraproject.org> - 1.1.1-1
f701299
- upstream 1.1.1, rebuild for remi repository
f701299
f701299
* Thu Nov 10 2011 Christof Damian <christof@damian.net> - 1.1.1-1
f701299
- upstream 1.1.1
f701299
f701299
* Tue Nov 01 2011 Remi Collet <remi@fedoraproject.org> - 1.1.0-1
f701299
- upstream 1.1.0
f701299
- no more phptok script in bindir
f701299
f701299
* Sun Dec  5 2010 Remi Collet <RPMS@FamilleCollet.com> - 1.0.1-1
f701299
- rebuild for remi repository
f701299
f701299
* Sat Dec  4 2010 Christof Damian <christof@damian.net> - 1.0.1-1
f701299
- upstream 1.0.1
f701299
f701299
* Sun Sep 26 2010 Christof Damian <christof@damian.net> - 1.0.0-1
f701299
- upstream 1.0.0 final 
f701299
f701299
* Sat Jul 31 2010 Christof Damian <christof@damian.net> - 1.0.0-1.RC1
f701299
- upstream 1.0.0RC1
f701299
f701299
* Mon Jun 21 2010 Christof Damian <christof@damian.net> - 1.0.0-1.beta1
f701299
- upstream 1.0.0beta1
f701299
- included phptok script
f701299
- macros for version workaround
f701299
f701299
* Tue Feb 23 2010 Remi Collet <RPMS@FamilleCollet.com> - 0.9.1-2
f701299
- rebuild for remi repository
f701299
f701299
* Tue Feb 23 2010 Christof Damian <christof@damian.net> - 0.9.1-2
f701299
- fix spelling
f701299
f701299
* Thu Feb 4 2010 Christof Damian <christof@damian.net> 0.9.1-1
f701299
- initial packaging