[nodejs-stylus] Update to upstream release 0.42.2
Jamie Nguyen
jamielinux at fedoraproject.org
Mon Feb 24 19:51:53 UTC 2014
commit ad9f79aea7376807fcc8215a6b4fba778518bcf9
Author: Jamie Nguyen <j at jamielinux.com>
Date: Mon Feb 24 19:52:34 2014 +0000
Update to upstream release 0.42.2
.gitignore | 1 +
dl-docs.sh | 23 ---------------
dl-tests.sh | 23 ---------------
nodejs-stylus.spec | 37 +++++++++----------------
sources | 4 +--
stylus.1 | 76 ----------------------------------------------------
6 files changed, 15 insertions(+), 149 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index da38806..adc3feb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,3 +4,4 @@
/docs-0.35.0.tar.bz2
/stylus-0.35.1.tgz
/tests-0.35.0.tar.bz2
+/nodejs-stylus-0.42.2.tar.gz
diff --git a/nodejs-stylus.spec b/nodejs-stylus.spec
index 493572d..b090d33 100644
--- a/nodejs-stylus.spec
+++ b/nodejs-stylus.spec
@@ -1,26 +1,17 @@
%{?nodejs_find_provides_and_requires}
+%global commit aec6be924747d4a02335a1817e3cfb1705d34bc8
+
%global enable_tests 1
Name: nodejs-stylus
-Version: 0.35.1
+Version: 0.42.2
Release: 1%{?dist}
Summary: Robust, expressive, and feature-rich CSS super-set for Node.js
License: MIT
Group: System Environment/Libraries
URL: https://github.com/learnboost/stylus
-Source0: http://registry.npmjs.org/stylus/-/stylus-%{version}.tgz
-# The test files are not included in the npm tarball.
-# Source1 is generated by running Source10, which pulls from the upstream
-# version control repository.
-Source1: tests-0.35.0.tar.bz2
-# Source2 is generated by running Source20, which pulls from the upstream
-# version control repository.
-Source2: docs-0.35.0.tar.bz2
-# Custom man page for /usr/bin/stylus
-Source3: stylus.1
-Source10: dl-tests.sh
-Source20: dl-docs.sh
+Source0: https://github.com/learnboost/stylus/archive/%{commit}/%{name}-%{version}.tar.gz
BuildArch: noarch
%if 0%{?fedora} >= 19
@@ -32,6 +23,7 @@ ExclusiveArch: %{ix86} x86_64 %{arm} noarch
BuildRequires: nodejs-packaging
%if 0%{?enable_tests}
+BuildRequires: npm(css-parse)
BuildRequires: npm(debug)
BuildRequires: npm(mkdirp)
BuildRequires: npm(mocha)
@@ -50,9 +42,7 @@ optional compression and many more.
%prep
-%setup -q -n package
-%setup -q -T -D -a 1 -n package
-%setup -q -T -D -a 2 -n package
+%setup -q -n stylus-%{commit}
%build
@@ -70,29 +60,28 @@ mkdir -p %{buildroot}%{_bindir}
ln -sf %{nodejs_sitelib}/stylus/bin/stylus \
%{buildroot}%{_bindir}/stylus
-# Custom man page for /usr/bin/stylus
-mkdir -p %{buildroot}%{_mandir}/man1
-install -p -D -m0644 %{SOURCE2} \
- %{buildroot}%{_mandir}/man1/stylus.1
-
%nodejs_symlink_deps
%if 0%{?enable_tests}
%check
%nodejs_symlink_deps --check
-%{nodejs_sitelib}/mocha/bin/mocha --require should --bail --reporter dot
+%{nodejs_sitelib}/mocha/bin/mocha test/ test/middleware/ \
+ --require should --bail --reporter dot
%endif
%files
-%doc LICENSE Readme.md docs/
+%doc History.md LICENSE Readme.md docs/ examples/
%{nodejs_sitelib}/stylus
%{_bindir}/stylus
-%{_mandir}/man1/stylus.1*
%changelog
+* Sun Feb 23 2014 Jamie Nguyen <jamielinux at fedoraproject.org> - 0.42.2-1
+- update to upstream release 0.42.2
+- take Source0 from GitHub as the NPM tarball has some files stripped
+
* Tue Jul 30 2013 Jamie Nguyen <jamielinux at fedoraproject.org> - 0.35.1-1
- update to upstream release 0.35.1
- restrict to compatible arches
diff --git a/sources b/sources
index 9a4718f..ea6425d 100644
--- a/sources
+++ b/sources
@@ -1,3 +1 @@
-e906b03516d125853e2691cf80abd657 docs-0.35.0.tar.bz2
-baf21bc2f41402934a7f14735a26306f stylus-0.35.1.tgz
-012110f2e50d11b64ab1afaf6e59c262 tests-0.35.0.tar.bz2
+32eaf0fffcc2792c5fb2c56b9f405898 nodejs-stylus-0.42.2.tar.gz
More information about the scm-commits
mailing list