diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e8f3eb5 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/spdx-license-ids-05c7466fcd62c8642006ef354c95064fcade3a03.tar.gz diff --git a/.nodejs010-nodejs-spdx-license-ids.metadata b/.nodejs010-nodejs-spdx-license-ids.metadata new file mode 100644 index 0000000..9e7a1af --- /dev/null +++ b/.nodejs010-nodejs-spdx-license-ids.metadata @@ -0,0 +1 @@ +b81e34505daef9dfeff4265a336d0f9e5ef9da33 SOURCES/spdx-license-ids-05c7466fcd62c8642006ef354c95064fcade3a03.tar.gz 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-license-ids.spec b/SPECS/nodejs-spdx-license-ids.spec new file mode 100644 index 0000000..2bb0310 --- /dev/null +++ b/SPECS/nodejs-spdx-license-ids.spec @@ -0,0 +1,77 @@ +%{?scl:%scl_package nodejs-spdx-license-ids} +%{!?scl:%global pkg_name %{name}} + +# spec file for package nodejs-nodejs-spdx-license-ids + +%global commit 05c7466fcd62c8642006ef354c95064fcade3a03 + +%global npm_name spdx-license-ids +%{?nodejs_find_provides_and_requires} + +%global enable_tests 0 + +Name: %{?scl_prefix}nodejs-spdx-license-ids +Version: 1.0.1 +Release: 2%{?dist} +Summary: A list of SPDX license identifiers +Url: https://github.com/shinnn/spdx-license-ids +Source0: https://github.com/shinnn/spdx-license-ids/archive/%{commit}/%{npm_name}-%{commit}.tar.gz +License: Unlicense + +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch + +BuildRequires: %{?scl_prefix}nodejs-devel + +%if 0%{?enable_tests} +BuildRequires: %{?scl_prefix}npm(@shinnn/eslintrc) +BuildRequires: %{?scl_prefix}npm(each-async) +BuildRequires: %{?scl_prefix}npm(eslint) +BuildRequires: %{?scl_prefix}npm(got) +BuildRequires: %{?scl_prefix}npm(istanbul-coveralls) +BuildRequires: %{?scl_prefix}npm(istanbul) +BuildRequires: %{?scl_prefix}npm(require-bower-files) +BuildRequires: %{?scl_prefix}npm(rm-rf) +BuildRequires: %{?scl_prefix}npm(stringify-object) +BuildRequires: %{?scl_prefix}npm(tape) +%endif + +%description +A list of SPDX license identifiers + +%prep +%setup -q -n %{npm_name}-%{commit} + +chmod -x README.md +chmod -x build.js bower.json + +%build +#nothing to do + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name} + +cp -pr package.json bower.json build.js spdx-license-ids.json spdx-license-ids-browser.js \ + %{buildroot}%{nodejs_sitelib}/%{npm_name} + +%{nodejs_symlink_deps} + +%if 0%{?enable_tests} + +%check +%{nodejs_symlink_deps} --check +node --harmony_arrow_functions test.js +%endif + +%files +%{nodejs_sitelib}/spdx-license-ids + +%doc README.md +%license LICENSE + +%changelog +* Wed Nov 25 2015 Tomas Hrcka - 1.0.1-2 +- Enable scl macros + +* Wed Jun 10 2015 Zuzana Svetlikova - 1.0.1-1 +- Initial build