Compare commits
No commits in common. "rawhide" and "f23" have entirely different histories.
1 changed files with 14 additions and 94 deletions
|
|
@ -1,8 +1,8 @@
|
||||||
#
|
#
|
||||||
# Fedora spec file for php-patchwork-jsqueeze
|
# Fedora spec file for php-patchwork-jsqueeze
|
||||||
#
|
#
|
||||||
# Copyright (c) 2016-2021 Adam Williamson <awilliam@redhat.com>
|
# Copyright (c) 2016 Adam Williamson <awilliam@redhat.com>
|
||||||
# Shawn Iwinski <shawn@iwin.ski>
|
# Shawn Iwinski <shawn@iwin.ski>
|
||||||
#
|
#
|
||||||
# License: MIT
|
# License: MIT
|
||||||
# http://opensource.org/licenses/MIT
|
# http://opensource.org/licenses/MIT
|
||||||
|
|
@ -21,25 +21,22 @@
|
||||||
# "php": ">=5.3.0"
|
# "php": ">=5.3.0"
|
||||||
%global php_min_ver 5.3.0
|
%global php_min_ver 5.3.0
|
||||||
|
|
||||||
%if 0%{?fedora}
|
# Build using "--without tests" to disable tests
|
||||||
%bcond_without tests
|
%global with_tests 0%{!?_without_tests:1}
|
||||||
%else
|
|
||||||
%bcond_with tests
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%{!?phpdir: %global phpdir %{_datadir}/php}
|
%{!?phpdir: %global phpdir %{_datadir}/php}
|
||||||
|
|
||||||
Name: php-%{composer_vendor}-%{composer_project}
|
Name: php-%{composer_vendor}-%{composer_project}
|
||||||
Version: %{github_version}
|
Version: %{github_version}
|
||||||
Release: 22%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Efficient JavaScript minification
|
Summary: Efficient JavaScript minification
|
||||||
|
|
||||||
# Automatically converted from old format: ASL 2.0 or GPLv2 - review is highly recommended.
|
Group: Development/Libraries
|
||||||
License: Apache-2.0 OR GPL-2.0-only
|
License: ASL 2.0 or GPLv2
|
||||||
URL: https://github.com/%{github_owner}/%{github_name}
|
URL: https://github.com/%{github_owner}/%{github_name}
|
||||||
|
|
||||||
# GitHub export does not include tests.
|
# GitHub export does not include tests.
|
||||||
# Run php-patchwork-jsqueeze-get-source.sh to create full source.
|
# Run php-patchwork-jsqueeze.sh to create full source.
|
||||||
Source0: %{name}-%{github_version}-%{github_commit}.tar.gz
|
Source0: %{name}-%{github_version}-%{github_commit}.tar.gz
|
||||||
Source1: %{name}-get-source.sh
|
Source1: %{name}-get-source.sh
|
||||||
|
|
||||||
|
|
@ -47,10 +44,10 @@ BuildArch: noarch
|
||||||
# Autoloader
|
# Autoloader
|
||||||
BuildRequires: %{_bindir}/phpab
|
BuildRequires: %{_bindir}/phpab
|
||||||
# Tests
|
# Tests
|
||||||
%if %{with tests}
|
%if %{with_tests}
|
||||||
## composer.json
|
## composer.json
|
||||||
BuildRequires: php(language) >= %{php_min_ver}
|
BuildRequires: php(language) >= %{php_min_ver}
|
||||||
BuildRequires: phpunit9
|
BuildRequires: php-composer(phpunit/phpunit)
|
||||||
## phpcompatinfo (computed from version 2.0.5)
|
## phpcompatinfo (computed from version 2.0.5)
|
||||||
BuildRequires: php-pcre
|
BuildRequires: php-pcre
|
||||||
%endif
|
%endif
|
||||||
|
|
@ -93,29 +90,16 @@ cp -pr src/* %{buildroot}%{phpdir}/Patchwork/
|
||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%if %{with tests}
|
%if %{with_tests}
|
||||||
: Create tests autoloader
|
%{_bindir}/phpunit --verbose \
|
||||||
cat << 'EOF' | tee tests/bootstrap.php
|
--bootstrap %{buildroot}%{phpdir}/Patchwork/autoload-jsqueeze.php
|
||||||
<?php
|
|
||||||
require "%{buildroot}%{phpdir}/Patchwork/autoload-jsqueeze.php";
|
|
||||||
class_alias("PHPUnit\\Framework\\TestCase", "PHPUnit_Framework_TestCase");
|
|
||||||
EOF
|
|
||||||
|
|
||||||
: Run upstream test suite
|
|
||||||
ret=0
|
|
||||||
for cmd in php php74 php80 php81
|
|
||||||
do
|
|
||||||
if which $cmd; then
|
|
||||||
$cmd %{_bindir}/phpunit9 --verbose || ret=1
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
exit $ret
|
|
||||||
%else
|
%else
|
||||||
: Tests skipped
|
: Tests skipped
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
|
%{!?_licensedir:%global license %%doc}
|
||||||
%license LICENSE.*
|
%license LICENSE.*
|
||||||
%doc *.md
|
%doc *.md
|
||||||
%doc composer.json
|
%doc composer.json
|
||||||
|
|
@ -125,70 +109,6 @@ exit $ret
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.5-22
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
|
||||||
|
|
||||||
* Sat Jan 18 2025 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.5-21
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
|
||||||
|
|
||||||
* Wed Aug 7 2024 Miroslav Suchý <msuchy@redhat.com> - 2.0.5-20
|
|
||||||
- convert license to SPDX
|
|
||||||
|
|
||||||
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.5-19
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
|
||||||
|
|
||||||
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.5-18
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
||||||
|
|
||||||
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.5-17
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
||||||
|
|
||||||
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.5-16
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
||||||
|
|
||||||
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.5-15
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
||||||
|
|
||||||
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.5-14
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
||||||
|
|
||||||
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.5-13
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
||||||
|
|
||||||
* Wed Dec 8 2021 Remi Collet <remi@fedoraproject.org> - 2.0.5-12
|
|
||||||
- disable test suite on EL
|
|
||||||
- switch to phpunit9
|
|
||||||
|
|
||||||
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.5-11
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
||||||
|
|
||||||
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.5-10
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
||||||
|
|
||||||
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.5-9
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
||||||
|
|
||||||
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.5-8
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
||||||
|
|
||||||
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.5-7
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
||||||
|
|
||||||
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.5-6
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
||||||
|
|
||||||
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.5-5
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
||||||
|
|
||||||
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.5-4
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
||||||
|
|
||||||
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.5-3
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
||||||
|
|
||||||
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.5-2
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
||||||
|
|
||||||
* Mon Oct 10 2016 Shawn Iwinski <shawn@iwin.ski> - 2.0.5-1
|
* Mon Oct 10 2016 Shawn Iwinski <shawn@iwin.ski> - 2.0.5-1
|
||||||
- Update to 2.0.5 (RHBZ #1383300, #1383302)
|
- Update to 2.0.5 (RHBZ #1383300, #1383302)
|
||||||
- Add spec license
|
- Add spec license
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue