backport a couple of bugfixes from upstream

This commit is contained in:
Adam Williamson 2015-03-16 17:37:08 -07:00
commit feeb9d97cd
3 changed files with 138 additions and 1 deletions

View file

@ -11,7 +11,7 @@
Name: php-%{packagist_owner}-%{packagist_name}
Version: %{github_version}
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Efficient JavaScript minification
Group: Development/Libraries
@ -21,6 +21,10 @@ URL: https://github.com/%{github_owner}/%{github_name}
# https://fedoraproject.org/wiki/Packaging:SourceURL#Github
Source0: https://github.com/%{github_owner}/%{github_name}/archive/%{github_commit}/%{github_name}-%{github_commit}.tar.gz
# Backported bug fixes
Patch0: https://github.com/%{github_owner}/%{github_name}/commit/f3747ee91e3025b46e29b2128bbb83f63cbb7f2a.patch
Patch1: https://github.com/%{github_owner}/%{github_name}/dc3c4073c2060d62a8578848c5d222a8b7608df1.patch
BuildArch: noarch
# For tests
BuildRequires: php(language) >= %{php_min_ver}
@ -46,6 +50,8 @@ UglifyJS.
%prep
%setup -qn %{github_name}-%{github_commit}
%patch0 -p1
%patch1 -p1
%build
@ -70,6 +76,9 @@ cp -pr src/* %{buildroot}%{_datadir}/php/%{psr4_namespace}
%changelog
* Mon Mar 16 2015 Adam Williamson <awilliam@redhat.com> - 2.0.1-2
- backport a couple of bugfixes from upstream
* Thu Jan 01 2015 Adam Williamson <awilliam@redhat.com> - 2.0.1-1
- new release, adjust for upstream PSR-4 layout change, add licenses