package init

This commit is contained in:
wangxiao65 2020-09-01 13:56:10 +08:00
parent db6f2c81bd
commit f06e512efe
5 changed files with 86 additions and 0 deletions

BIN
jade-1.3.1.tgz Normal file

Binary file not shown.

View File

@ -0,0 +1,19 @@
From 53cf5c6494db69f2ff1d8b3032bc0687a16e3ab4 Mon Sep 17 00:00:00 2001
From: Jamie Nguyen <j@jamielinux.com>
Date: Sun, 2 Mar 2014 17:07:55 +0000
Subject: [PATCH] Fix test/cases/some.styl import path
---
test/cases/some.styl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/cases/some.styl b/test/cases/some.styl
index f77222d..331dc01 100644
--- a/test/cases/some.styl
+++ b/test/cases/some.styl
@@ -1 +1 @@
-@import "some-included"
+@import "./test/cases/some-included"
--
1.8.5.3

62
nodejs-jade.spec Normal file
View File

@ -0,0 +1,62 @@
%{?nodejs_find_provides_and_requires}
%global enable_tests 0
Name: nodejs-jade
Version: 1.3.1
Release: 1
Summary: Jade template engine for Node.js
License: MIT
URL: https://github.com/visionmedia/jade
Source0: http://registry.npmjs.org/jade/-/jade-%{version}.tgz
Source1: tests-%{version}.tar.bz2
Patch0: %{name}-1.2.0-Fix-test-import-path.patch
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
BuildRequires: nodejs-packaging
%if 0%{?enable_tests}
BuildRequires: coffee-script npm(character-parser) npm(constantinople) npm(less) npm(markdown)
BuildRequires: npm(mocha) npm(monocle) npm(should) npm(stylus) npm(transformers) npm(with)
BuildRequires: uglify-js
%endif
%description
Jade is a high performance template engine heavily influenced by Haml and
implemented with JavaScript for Node.js.
%prep
%setup -q -n package
%setup -T -D -a 1 -q -n package
%patch0 -p1
%nodejs_fixdep character-parser '~1.2'
%nodejs_fixdep commander '>=2.1.0'
%nodejs_fixdep constantinople '~2.0'
%nodejs_fixdep mkdirp '^0.5.1'
%nodejs_fixdep monocle '~1.1.51'
%nodejs_fixdep transformers '>=2.1.0'
%nodejs_fixdep with '~3.0'
%build
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/jade
cp -pr package.json index.js jade.js lib/ runtime.js \
%{buildroot}%{nodejs_sitelib}/jade
mkdir -p %{buildroot}%{nodejs_sitelib}/jade/bin
install -p -D -m0755 bin/jade.js %{buildroot}%{nodejs_sitelib}/jade/bin/jade.js
mkdir -p %{buildroot}%{_bindir}
ln -sf %{nodejs_sitelib}/jade/bin/jade.js \
%{buildroot}%{_bindir}/jade-nodejs
%nodejs_symlink_deps
%if 0%{?enable_tests}
%check
%nodejs_symlink_deps --check
%{nodejs_sitelib}/mocha/bin/mocha -R spec
%endif
%files
%doc jade-language.md jade.md LICENSE README.md Readme_zh-cn.md jade.md
%{nodejs_sitelib}/jade
%{_bindir}/jade-nodejs
%changelog
* Thu Aug 20 2020 wangxiao <wangxiao65@huawei.com> - 1.3.1-1
- Package init

5
nodejs-jade.yaml Normal file
View File

@ -0,0 +1,5 @@
git_url: https://github.com/visionmedia/jade
version_control: github
src_repo: visionmedia/jade
tag_prefix: ""
seperator: "."

BIN
tests-1.3.1.tar.bz2 Normal file

Binary file not shown.