[nodejs-tiny-lr-fork] Initial import
Jamie Nguyen
jamielinux at fedoraproject.org
Mon Mar 31 19:19:37 UTC 2014
commit 1c5019e2bc31ef0a589ea33a24d0a079d0116e94
Author: Jamie Nguyen <j at jamielinux.com>
Date: Mon Mar 31 20:19:43 2014 +0100
Initial import
.gitignore | 1 +
nodejs-tiny-lr-fork.spec | 97 ++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 99 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..80f4492 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/tiny-lr-fork-0.0.5.tgz
diff --git a/nodejs-tiny-lr-fork.spec b/nodejs-tiny-lr-fork.spec
new file mode 100644
index 0000000..8fc9894
--- /dev/null
+++ b/nodejs-tiny-lr-fork.spec
@@ -0,0 +1,97 @@
+%{?nodejs_find_provides_and_requires}
+
+# This is a fork of the original tiny-lr: <https://github.com/mklabs/tiny-lr>.
+# The maintainer of the fork has stated that the fork is only temporary and
+# will cease to exist once the maintainer of the original software springs
+# back to life. The fork has gained favour among other modules, notably the
+# Grunt project, so we will ship the fork with the intention of Obsoleting it
+# once the original tiny-lr has been revived.
+
+# Versions of connect and express used in the test suite are outdated.
+%global enable_tests 0
+
+Name: nodejs-tiny-lr-fork
+Version: 0.0.5
+Release: 2%{?dist}
+Summary: A tiny LiveReload server implementation you can spawn in the background
+License: MIT
+Group: System Environment/Libraries
+URL: https://github.com/shama/tiny-lr
+Source0: http://registry.npmjs.org/tiny-lr-fork/-/tiny-lr-fork-%{version}.tgz
+
+BuildArch: noarch
+%if 0%{?fedora} >= 19
+ExclusiveArch: %{nodejs_arches} noarch
+%else
+ExclusiveArch: %{ix86} x86_64 %{arm} noarch
+%endif
+
+BuildRequires: nodejs-packaging
+
+%if 0%{?enable_tests}
+BuildRequires: npm(connect)
+BuildRequires: npm(debug)
+BuildRequires: npm(express)
+BuildRequires: npm(faye-websocket)
+BuildRequires: npm(mocha)
+BuildRequires: npm(noptify)
+BuildRequires: npm(qs)
+BuildRequires: npm(request)
+BuildRequires: npm(supertest)
+%endif
+
+%description
+%{summary}.
+
+
+%prep
+%setup -q -n package
+
+%nodejs_fixdep faye-websocket '~0.7'
+%nodejs_fixdep qs '~0.6.6'
+
+
+%build
+#nothing to do
+
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/tiny-lr-fork
+cp -pr package.json lib/ tasks/ \
+ %{buildroot}%{nodejs_sitelib}/tiny-lr-fork
+
+mkdir -p %{buildroot}%{nodejs_sitelib}/tiny-lr-fork/bin
+install -p -m755 bin/tiny-lr \
+ %{buildroot}%{nodejs_sitelib}/tiny-lr-fork/bin/tiny-lr
+install -p -m755 bin/update-livereload \
+ %{buildroot}%{nodejs_sitelib}/tiny-lr-fork/bin/update-livereload
+
+mkdir -p %{buildroot}%{_bindir}
+ln -sf %{nodejs_sitelib}/tiny-lr-fork/bin/tiny-lr \
+ %{buildroot}%{_bindir}/tiny-lr
+ln -sf %{nodejs_sitelib}/tiny-lr-fork/bin/update-livereload \
+ %{buildroot}%{_bindir}/update-livereload
+
+%nodejs_symlink_deps
+
+
+%if 0%{?enable_tests}
+%check
+%nodejs_symlink_deps --check
+/usr/bin/mocha --reporter spec
+%endif
+
+
+%files
+%doc LICENSE-MIT readme.md
+%{nodejs_sitelib}/tiny-lr-fork
+%{_bindir}/tiny-lr
+%{_bindir}/update-livereload
+
+
+%changelog
+* Sun Mar 30 2014 Jamie Nguyen <jamielinux at fedoraproject.org> - 0.0.5-2
+- symlink to _bindir
+
+* Sat Mar 29 2014 Jamie Nguyen <jamielinux at fedoraproject.org> - 0.0.5-1
+- initial package
diff --git a/sources b/sources
index e69de29..9fceca3 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+ba202fcf8f6daa77017c042abf553bdb tiny-lr-fork-0.0.5.tgz
More information about the scm-commits
mailing list