diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d192ea7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/spdx-license-ids-65e54db322c2819df71ef6e8c6883d4147ff999e.tar.gz diff --git a/.rh-nodejs6-nodejs-spdx-license-ids.metadata b/.rh-nodejs6-nodejs-spdx-license-ids.metadata new file mode 100644 index 0000000..4d26d27 --- /dev/null +++ b/.rh-nodejs6-nodejs-spdx-license-ids.metadata @@ -0,0 +1 @@ +99d22f340b251dc02c0142454a8ccb19d4673290 SOURCES/spdx-license-ids-65e54db322c2819df71ef6e8c6883d4147ff999e.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..cdbf6cf --- /dev/null +++ b/SPECS/nodejs-spdx-license-ids.spec @@ -0,0 +1,80 @@ +%{?scl:%scl_package nodejs-spdx-license-ids} +%{!?scl:%global pkg_name %{name}} + +# spec file for package nodejs-nodejs-spdx-license-ids + +#%global commit 05c7466fcd62c8642006ef354c95064fcade3a03 1.0.1 version +%global commit 65e54db322c2819df71ef6e8c6883d4147ff999e + +%global npm_name spdx-license-ids +%{?nodejs_find_provides_and_requires} + +%global enable_tests 0 + +Name: %{?scl_prefix}nodejs-spdx-license-ids +Version: 1.2.0 +Release: 1%{?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 +* Sun Feb 14 2016 Zuzana Svetlikova - 1.2.0-1 +- Update + +* 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