1c5019e
%{?nodejs_find_provides_and_requires}
1c5019e
1c5019e
# This is a fork of the original tiny-lr: <https://github.com/mklabs/tiny-lr>.
1c5019e
# The maintainer of the fork has stated that the fork is only temporary and
1c5019e
# will cease to exist once the maintainer of the original software springs
1c5019e
# back to life. The fork has gained favour among other modules, notably the
1c5019e
# Grunt project, so we will ship the fork with the intention of Obsoleting it
1c5019e
# once the original tiny-lr has been revived.
1c5019e
1c5019e
# Versions of connect and express used in the test suite are outdated.
1c5019e
%global enable_tests 0
1c5019e
1c5019e
Name:       nodejs-tiny-lr-fork
1c5019e
Version:    0.0.5
293ef86
Release:    15%{?dist}
1c5019e
Summary:    A tiny LiveReload server implementation you can spawn in the background
1c5019e
License:    MIT
1c5019e
URL:        https://github.com/shama/tiny-lr
d699af8
Source0:    https://registry.npmjs.org/tiny-lr-fork/-/tiny-lr-fork-%{version}.tgz
1c5019e
1c5019e
BuildArch:  noarch
1c5019e
%if 0%{?fedora} >= 19
1c5019e
ExclusiveArch: %{nodejs_arches} noarch
1c5019e
%else
1c5019e
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
1c5019e
%endif
1c5019e
1c5019e
BuildRequires:  nodejs-packaging
1c5019e
1c5019e
%if 0%{?enable_tests}
1c5019e
BuildRequires:  npm(connect)
1c5019e
BuildRequires:  npm(debug)
1c5019e
BuildRequires:  npm(express)
1c5019e
BuildRequires:  npm(faye-websocket)
1c5019e
BuildRequires:  npm(mocha)
1c5019e
BuildRequires:  npm(noptify)
1c5019e
BuildRequires:  npm(qs)
1c5019e
BuildRequires:  npm(request)
1c5019e
BuildRequires:  npm(supertest)
1c5019e
%endif
1c5019e
1c5019e
%description
1c5019e
%{summary}.
1c5019e
1c5019e
1c5019e
%prep
1c5019e
%setup -q -n package
1c5019e
1c5019e
%nodejs_fixdep faye-websocket '~0.7'
07b960c
%nodejs_fixdep qs '^6.0.2'
c92643c
%nodejs_fixdep noptify '~0.0.3'
d699af8
%nodejs_fixdep debug '^2.2.0'
1c5019e
1c5019e
1c5019e
%build
1c5019e
#nothing to do
1c5019e
1c5019e
1c5019e
%install
1c5019e
mkdir -p %{buildroot}%{nodejs_sitelib}/tiny-lr-fork
1c5019e
cp -pr package.json lib/ tasks/ \
1c5019e
    %{buildroot}%{nodejs_sitelib}/tiny-lr-fork
1c5019e
1c5019e
mkdir -p %{buildroot}%{nodejs_sitelib}/tiny-lr-fork/bin
1c5019e
install -p -m755 bin/tiny-lr \
1c5019e
    %{buildroot}%{nodejs_sitelib}/tiny-lr-fork/bin/tiny-lr
1c5019e
install -p -m755 bin/update-livereload \
1c5019e
    %{buildroot}%{nodejs_sitelib}/tiny-lr-fork/bin/update-livereload
1c5019e
1c5019e
mkdir -p %{buildroot}%{_bindir}
1c5019e
ln -sf %{nodejs_sitelib}/tiny-lr-fork/bin/tiny-lr \
1c5019e
    %{buildroot}%{_bindir}/tiny-lr
1c5019e
ln -sf %{nodejs_sitelib}/tiny-lr-fork/bin/update-livereload \
1c5019e
    %{buildroot}%{_bindir}/update-livereload
1c5019e
1c5019e
%nodejs_symlink_deps
1c5019e
1c5019e
1c5019e
%if 0%{?enable_tests}
1c5019e
%check
1c5019e
%nodejs_symlink_deps --check
1c5019e
/usr/bin/mocha --reporter spec
1c5019e
%endif
1c5019e
1c5019e
1c5019e
%files
d699af8
%doc readme.md
d699af8
%license LICENSE-MIT
1c5019e
%{nodejs_sitelib}/tiny-lr-fork
1c5019e
%{_bindir}/tiny-lr
1c5019e
%{_bindir}/update-livereload
1c5019e
1c5019e
1c5019e
%changelog
293ef86
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.5-15
293ef86
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
293ef86
26d162d
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.5-14
26d162d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
26d162d
fb00808
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.5-13
fb00808
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
fb00808
43cd881
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.5-12
43cd881
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
43cd881
349a891
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.5-11
349a891
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
349a891
3079ab6
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.5-10
3079ab6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
3079ab6
9f0e541
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.5-9
9f0e541
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
9f0e541
f377c57
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.5-8
f377c57
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
f377c57
07b960c
* Wed Jan 20 2016 Tom Hughes <tom@compton.nu> - 0.0.5-7
07b960c
- Update npm(qs) dependency
07b960c
d699af8
* Tue Nov 24 2015 Tom Hughes <tom@compton.nu> - 0.0.5-6
d699af8
- update npm(debug) dependency
d699af8
d6aac22
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.5-5
d6aac22
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
d6aac22
6990701
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.5-4
6990701
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
6990701
c92643c
* Sun Apr 20 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.0.5-3
c92643c
- fix versioned dependencies
c92643c
1c5019e
* Sun Mar 30 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.0.5-2
1c5019e
- symlink to _bindir
1c5019e
1c5019e
* Sat Mar 29 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.0.5-1
1c5019e
- initial package