f624a91
# this is the 2.1.1-jquery.2.1.2 tag on github
f624a91
%global commit 2280ab78b0e19dc494f9c47fd1f4a42dd63c280d
118c9fe
%global shortcommit %(c=%{commit}; echo ${c:0:7})
118c9fe
118c9fe
Name:           js-sizzle
f624a91
Version:        2.1.1
98a97fd
Release:        10.jquery.2.1.2%{?dist}
118c9fe
Summary:        A pure-JavaScript CSS selector engine
118c9fe
BuildArch:      noarch
118c9fe
118c9fe
%global ver_x %(echo %{version} | cut -d. -f1)
118c9fe
%global ver_y %(echo %{version} | cut -d. -f2)
118c9fe
%global ver_z %(echo %{version} | cut -d. -f3)
118c9fe
118c9fe
License:        MIT     
118c9fe
URL:            http://sizzlejs.com/
118c9fe
Source0:        https://github.com/jquery/sizzle/archive/%{commit}/%{name}-%{commit}.tar.gz
118c9fe
118c9fe
# disable gzip-js during build
118c9fe
Patch1:         %{name}-disable-gzip-js.patch
118c9fe
118c9fe
BuildRequires:  web-assets-devel
118c9fe
BuildRequires:  nodejs-packaging
118c9fe
118c9fe
Provides:       %{name}-static = %{version}-%{release}
118c9fe
118c9fe
# for the benefit of those installing the review, will drop when importing
118c9fe
Obsoletes:      %{name}-source < %{version}
118c9fe
118c9fe
BuildRequires:  nodejs-grunt >= 0.4.4-3
118c9fe
BuildRequires:  npm(grunt-cli)
118c9fe
BuildRequires:  npm(grunt-contrib-uglify)
118c9fe
BuildRequires:  npm(load-grunt-tasks)
118c9fe
118c9fe
Requires:       web-assets-filesystem
118c9fe
118c9fe
%description
118c9fe
A pure-JavaScript CSS selector engine designed to be easily dropped in to a host
118c9fe
library.
118c9fe
118c9fe
%prep
118c9fe
%setup -qn sizzle-%{commit}
118c9fe
%patch1 -p1
118c9fe
118c9fe
#remove precompiled stuff
118c9fe
rm -rf dist/*
118c9fe
118c9fe
118c9fe
%build
118c9fe
%nodejs_symlink_deps --build
118c9fe
grunt -v compile uglify
118c9fe
118c9fe
118c9fe
# missing dependencies
118c9fe
#%%check
118c9fe
#grunt
118c9fe
118c9fe
118c9fe
%install
118c9fe
%global inslibdir %{buildroot}%{_jsdir}/sizzle
118c9fe
118c9fe
mkdir -p %{inslibdir}/%{version}
118c9fe
cp -p dist/* %{inslibdir}/%{version}
118c9fe
118c9fe
ln -s %{version} %{inslibdir}/latest
118c9fe
ln -s %{version} %{inslibdir}/%{ver_x}
118c9fe
ln -s %{version} %{inslibdir}/%{ver_x}.%{ver_y}
118c9fe
118c9fe
%files
118c9fe
%{_jsdir}/sizzle
f624a91
%doc AUTHORS.txt CONTRIBUTING.md LICENSE.txt README.md
118c9fe
118c9fe
118c9fe
%changelog
98a97fd
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.1-10.jquery.2.1.2
98a97fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
98a97fd
851f0aa
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.1-9.jquery.2.1.2
851f0aa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
851f0aa
3952770
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.1-8.jquery.2.1.2
3952770
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
3952770
3535c64
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.1-7.jquery.2.1.2
3535c64
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
3535c64
8fcca21
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.1-6.jquery.2.1.2
8fcca21
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
8fcca21
0977be0
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.1-5.jquery.2.1.2
0977be0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
0977be0
bc319e5
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.1-4.jquery.2.1.2
bc319e5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
bc319e5
01cac7c
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.1-3.jquery.2.1.2
01cac7c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
01cac7c
032c5e6
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.1-2.jquery.2.1.2
032c5e6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
032c5e6
f624a91
* Wed Mar 04 2015 T.C. Hollingsworth <tchollingsworth@gmail.com> - 2.1.1-1
f624a91
- new upstream release 2.1.1-jquery2.1.2
f624a91
5f58c5d
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.19-4
5f58c5d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
5f58c5d
118c9fe
* Tue Jun 03 2014 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.10.19-3
118c9fe
- follow the github SourceURL guidelines
118c9fe
118c9fe
* Sat May 31 2014 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.10.19-2
118c9fe
- drop sed hack now that grunt is fixed
118c9fe
118c9fe
* Fri May 30 2014 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.10.19-1
118c9fe
- update to 1.10.19
118c9fe
- use system packages for build
118c9fe
118c9fe
* Wed Mar 19 2014 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.10.16-0.1
118c9fe
- initial package