Compare commits
27 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4bd92b6844 | ||
|
|
42b1f4cdf9 | ||
|
|
06eeec8d9b | ||
|
|
ba0dcc64d8 | ||
|
|
1046eb8ebf | ||
|
|
f7f2cd9d7f | ||
|
|
4b34f51f1a | ||
|
|
23a721c808 | ||
|
|
3e070e366b | ||
|
|
79a47b061a | ||
|
|
ecf435cb1d | ||
|
|
0661ad9a20 | ||
|
|
1b73662800 | ||
|
|
10e4d452ae | ||
|
|
dcf2e77e7e | ||
|
|
6bf5eca490 | ||
|
|
970918074f | ||
|
|
7cf9d2ad9d | ||
|
|
cd7ece8bf6 | ||
|
|
a82187b7f7 | ||
|
|
26e4dc5c66 | ||
|
|
65f74d8f07 | ||
|
|
81e04ce32e | ||
|
|
63ea9c8ec3 | ||
|
|
292a1811b0 | ||
|
|
70eddac799 | ||
|
|
3ac61b450a |
1 changed files with 93 additions and 13 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
#
|
#
|
||||||
# RPM spec file for php-PHPParser
|
# RPM spec file for php-PHPParser
|
||||||
#
|
#
|
||||||
# Copyright (c) 2012-2015 Shawn Iwinski <shawn.iwinski@gmail.com>
|
# Copyright (c) 2012-2021 Shawn Iwinski <shawn.iwinski@gmail.com>
|
||||||
#
|
#
|
||||||
# License: MIT
|
# License: MIT
|
||||||
# http://opensource.org/licenses/MIT
|
# http://opensource.org/licenses/MIT
|
||||||
|
|
@ -9,6 +9,9 @@
|
||||||
# Please preserve changelog entries
|
# Please preserve changelog entries
|
||||||
#
|
#
|
||||||
|
|
||||||
|
# Outdated, see php-nikic-php-parser4
|
||||||
|
%bcond_with tests
|
||||||
|
|
||||||
%global github_owner nikic
|
%global github_owner nikic
|
||||||
%global github_name PHP-Parser
|
%global github_name PHP-Parser
|
||||||
%global github_version 1.4.1
|
%global github_version 1.4.1
|
||||||
|
|
@ -22,11 +25,11 @@
|
||||||
|
|
||||||
Name: php-%{lib_name_old}
|
Name: php-%{lib_name_old}
|
||||||
Version: %{github_version}
|
Version: %{github_version}
|
||||||
Release: 1%{?dist}
|
Release: 25%{?dist}
|
||||||
Summary: A PHP parser written in PHP
|
Summary: A PHP parser written in PHP - version 1
|
||||||
|
|
||||||
Group: Development/Libraries
|
# Automatically converted from old format: BSD - review is highly recommended.
|
||||||
License: BSD
|
License: LicenseRef-Callaway-BSD
|
||||||
URL: https://github.com/%{github_owner}/%{github_name}
|
URL: https://github.com/%{github_owner}/%{github_name}
|
||||||
# Upstream tarball don't provide test suite
|
# Upstream tarball don't provide test suite
|
||||||
# Use mksrc.sh to generate a git snapshot tarball
|
# Use mksrc.sh to generate a git snapshot tarball
|
||||||
|
|
@ -39,7 +42,9 @@ Patch0: %{name}-command.patch
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# For tests
|
# For tests
|
||||||
BuildRequires: php(language) >= %{php_min_ver}
|
BuildRequires: php(language) >= %{php_min_ver}
|
||||||
|
%if %{with tests}
|
||||||
BuildRequires: %{_bindir}/phpunit
|
BuildRequires: %{_bindir}/phpunit
|
||||||
|
%endif
|
||||||
# For tests: phpcompatinfo (computed from version 1.4.1)
|
# For tests: phpcompatinfo (computed from version 1.4.1)
|
||||||
BuildRequires: php-ctype
|
BuildRequires: php-ctype
|
||||||
BuildRequires: php-filter
|
BuildRequires: php-filter
|
||||||
|
|
@ -53,7 +58,6 @@ BuildRequires: php-xmlwriter
|
||||||
Requires: php(language) >= %{php_min_ver}
|
Requires: php(language) >= %{php_min_ver}
|
||||||
Requires: php-tokenizer
|
Requires: php-tokenizer
|
||||||
# phpcompatinfo (computed from version 1.4.1)
|
# phpcompatinfo (computed from version 1.4.1)
|
||||||
Requires: php-cli
|
|
||||||
Requires: php-filter
|
Requires: php-filter
|
||||||
Requires: php-pcre
|
Requires: php-pcre
|
||||||
Requires: php-spl
|
Requires: php-spl
|
||||||
|
|
@ -66,14 +70,17 @@ Provides: php-composer(nikic/php-parser) = %{version}
|
||||||
%description
|
%description
|
||||||
A PHP parser written in PHP to simplify static analysis and code manipulation.
|
A PHP parser written in PHP to simplify static analysis and code manipulation.
|
||||||
|
|
||||||
To use this library, you just have to add, in your project:
|
This package provides the library version 1.
|
||||||
require_once '%{_datadir}/php/%{lib_name}/autoload.php';
|
The php-nikic-php-parser3 package provides the library version 3.
|
||||||
|
The php-nikic-php-parser4 package provides the library version 4.
|
||||||
|
|
||||||
|
Autoloader: '%{_datadir}/php/%{lib_name}/autoload.php';
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{github_name}-%{github_short}
|
%setup -q -n %{github_name}-%{github_short}
|
||||||
|
|
||||||
%patch0 -p0 -b .rpm
|
%patch -P0 -p0 -b .rpm
|
||||||
rm lib/%{lib_name}/*rpm
|
rm lib/%{lib_name}/*rpm
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -90,26 +97,99 @@ mkdir -p -m 755 %{buildroot}%{_datadir}/php/%{lib_name_old}
|
||||||
ln -s ../%{lib_name}/Autoloader.php \
|
ln -s ../%{lib_name}/Autoloader.php \
|
||||||
%{buildroot}%{_datadir}/php/%{lib_name_old}/Autoloader.php
|
%{buildroot}%{_datadir}/php/%{lib_name_old}/Autoloader.php
|
||||||
|
|
||||||
install -Dpm 755 bin/php-parse.php %{buildroot}%{_bindir}/php-parse
|
|
||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
%if %{with tests}
|
||||||
%{_bindir}/phpunit \
|
%{_bindir}/phpunit \
|
||||||
--bootstrap %{buildroot}%{_datadir}/php/%{lib_name}/autoload.php \
|
--bootstrap %{buildroot}%{_datadir}/php/%{lib_name}/autoload.php \
|
||||||
|
--filter '^((?!(testResolveLocations)).)*$' \
|
||||||
--verbose
|
--verbose
|
||||||
|
%else
|
||||||
|
: Test suite disabled
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%{!?_licensedir:%global license %%doc}
|
%{!?_licensedir:%global license %%doc}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc *.md doc grammar composer.json
|
%doc *.md doc grammar composer.json
|
||||||
%{_bindir}/php-parse
|
|
||||||
%{_datadir}/php/%{lib_name_old}
|
%{_datadir}/php/%{lib_name_old}
|
||||||
%{_datadir}/php/%{lib_name}
|
%{_datadir}/php/%{lib_name}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.1-25
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat Jan 18 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.1-24
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Sep 4 2024 Miroslav Suchý <msuchy@redhat.com> - 1.4.1-23
|
||||||
|
- convert license to SPDX
|
||||||
|
|
||||||
|
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.1-22
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.1-21
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.1-20
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.1-19
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.1-18
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.1-17
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.1-16
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.1-15
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Mar 30 2021 Remi Collet <remi@fedoraproject.org> - 1.4.1-14
|
||||||
|
- outdated package, disable test suite
|
||||||
|
|
||||||
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.1-13
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.1-12
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Feb 4 2020 Remi Collet <remi@fedoraproject.org> - 1.4.1-11
|
||||||
|
- skip 1 failed test with 7.4
|
||||||
|
|
||||||
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.1-11
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.1-10
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.1-9
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.1-8
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.1-7
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.1-6
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.1-5
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri May 20 2016 Remi Collet <remi@fedoraproject.org> - 1.4.1-4
|
||||||
|
- drop the php-parse command, provided by php-nikic-php-parser
|
||||||
|
|
||||||
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.1-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||||
|
|
||||||
* Sun Sep 20 2015 Remi Collet <remi@fedoraproject.org> - 1.4.1-1
|
* Sun Sep 20 2015 Remi Collet <remi@fedoraproject.org> - 1.4.1-1
|
||||||
- update to 1.4.1
|
- update to 1.4.1
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue