From 7747e24ad07c40d9112ec1ef8bfcdace4116007c Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: May 31 2016 08:19:59 +0000 Subject: import rh-nodejs4-nodejs-spdx-correct-1.0.2-2.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..237fb23 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/spdx-correct-1.0.2.tgz diff --git a/.rh-nodejs4-nodejs-spdx-correct.metadata b/.rh-nodejs4-nodejs-spdx-correct.metadata new file mode 100644 index 0000000..0448c17 --- /dev/null +++ b/.rh-nodejs4-nodejs-spdx-correct.metadata @@ -0,0 +1 @@ +4b3073d933ff51f3912f03ac5519498a4150db40 SOURCES/spdx-correct-1.0.2.tgz diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SPECS/nodejs-spdx-correct.spec b/SPECS/nodejs-spdx-correct.spec new file mode 100644 index 0000000..cc58b74 --- /dev/null +++ b/SPECS/nodejs-spdx-correct.spec @@ -0,0 +1,76 @@ +%{?scl:%scl_package nodejs-spdx-correct} +%{!?scl:%global pkg_name %{name}} + +# spec file for package nodejs-nodejs-spdx-correct + +%global npm_name spdx-correct +%{?nodejs_find_provides_and_requires} + +%global enable_tests 0 + +Name: %{?scl_prefix}nodejs-spdx-correct +Version: 1.0.2 +Release: 2%{?dist} +Summary: correct invalid SPDX identifiers +Url: https://github.com/kemitchell/spdx-correct.js#readme +Source0: https://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz +License: Apache-2.0 + +BuildArch: noarch + +%if 0%{?fedora} >= 19 +ExclusiveArch: %{nodejs_arches} noarch +%else +ExclusiveArch: %{ix86} x86_64 %{arm} noarch +%endif + +BuildRequires: %{?scl_prefix}nodejs-devel + +%if 0%{?enable_tests} +BuildRequires: %{?scl_prefix}npm(defence-cli) +BuildRequires: %{?scl_prefix}npm(replace-require-self) +BuildRequires: %{?scl_prefix}npm(spdx-expression-parse) +BuildRequires: %{?scl_prefix}npm(tape) +%endif + +BuildRequires: %{?scl_prefix}npm(spdx-license-ids) + +Requires: %{?scl_prefix}npm(spdx-license-ids) + +%description +correct invalid SPDX identifiers + +%prep +%setup -q -n package +%nodejs_fixdep spdx-license-ids '>=1.0.1' +rm -rf node_modules + +%build + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name} + +cp -pr package.json *.js \ +%{buildroot}%{nodejs_sitelib}/%{npm_name} + +%{nodejs_symlink_deps} + +%if 0%{?enable_tests} + +%check +%{nodejs_symlink_deps} --check + +%endif + +%files +%{nodejs_sitelib}/spdx-correct + +%doc README.md +%doc LICENSE + +%changelog +* Sun Feb 14 2016 Zuzana Svetlikova - 1.0.2-2 +- rebuilt + +* Mon Nov 23 2015 Tomas Hrcka - 1.0.2-1 +- Initial build