From c650c8e7187752c42faabd32256a831df5830262 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Feb 09 2020 22:26:47 +0000 Subject: Tidy up spec file --- diff --git a/nodejs-bytes.spec b/nodejs-bytes.spec index 634f7d0..4ee21b6 100644 --- a/nodejs-bytes.spec +++ b/nodejs-bytes.spec @@ -1,47 +1,50 @@ -%global npmname bytes +%{?nodejs_find_provides_and_requires} -Name: nodejs-%{npmname} -Version: 3.1.0 -Release: 1%{?dist} -Summary: Utility to parse a string bytes to bytes and vice-versa -License: MIT -URL: https://github.com/visionmedia/bytes.js +Name: nodejs-bytes +Version: 3.1.0 +Release: 1%{?dist} +Summary: Utility to parse a string bytes to bytes and vice-versa -# Use github URL to include tests. -Source0: https://github.com/visionmedia/bytes.js/archive/%{version}/%{name}-%{version}.tar.gz - -BuildArch: noarch - -ExclusiveArch: %{nodejs_arches} noarch +License: MIT +URL: https://www.npmjs.com/package/bytes +Source0: https://github.com/visionmedia/bytes.js/archive/%{version}/%{name}-%{version}.tar.gz +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch BuildRequires: nodejs-packaging BuildRequires: npm(mocha) + %description %summary + %prep -%autosetup -n bytes.js-%{version} +%autosetup -p 1 -n bytes.js-%{version} + %build -#nothing to do + + %install mkdir -p %{buildroot}%{nodejs_sitelib}/bytes cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/bytes - %nodejs_symlink_deps + %check %nodejs_symlink_deps --check mocha --check-leaks --reporter spec + %files %doc History.md Readme.md %license LICENSE %{nodejs_sitelib}/bytes + %changelog * Fri Feb 07 2020 Ben Rosser - 3.1.0-1 - Update to latest upstream release, 3.1.0