From c69097e82186762cba1324f122dacf16aebc09eb Mon Sep 17 00:00:00 2001 From: Piotr Popieluch Date: Feb 27 2017 19:13:15 +0000 Subject: Initial import (#1424660). --- diff --git a/.gitignore b/.gitignore index e69de29..2cf269a 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/nodejs-vary-1.1.0.tar.gz diff --git a/nodejs-vary.spec b/nodejs-vary.spec new file mode 100644 index 0000000..153072d --- /dev/null +++ b/nodejs-vary.spec @@ -0,0 +1,43 @@ +%global srcname vary + +Name: nodejs-%{srcname} +Version: 1.1.0 +Release: 1%{?dist} +Summary: Node.js module to Manipulate the HTTP Vary header +License: MIT +URL: https://github.com/jshttp/vary +Source0: https://github.com/jshttp/%{srcname}/archive/v%{version}/%{name}-%{version}.tar.gz +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch +BuildRequires: nodejs-packaging +BuildRequires: npm(mocha) +BuildRequires: npm(supertest) + +%description +%{summary}. + +%prep +%autosetup -n %{srcname}-%{version} + +%build + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/%{srcname} +cp -pr package.json index.js \ + %{buildroot}%{nodejs_sitelib}/%{srcname} + +%nodejs_symlink_deps + +%check +%nodejs_symlink_deps --check +%{__nodejs} -e 'require("./")' +mocha --reporter spec --check-leaks test/ + +%files +%doc README.md HISTORY.md +%license LICENSE +%{nodejs_sitelib}/%{srcname} + +%changelog +* Fri Feb 17 2017 - 1.1.0-1 +- Initial package diff --git a/sources b/sources index e69de29..059daef 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +SHA512 (nodejs-vary-1.1.0.tar.gz) = 11bf8c2d34534d05d69e8e13a2a39a31dd5adcf59e8ac6c9e2c4f83fd0e4d174575d80d587936b51b85e6a4f3d69425eefd3dca6f77ee27a3d90a58f9077e213