diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b604643 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/spdx-expression-parse-1.0.1.tgz diff --git a/.nodejs010-nodejs-spdx-expression-parse.metadata b/.nodejs010-nodejs-spdx-expression-parse.metadata new file mode 100644 index 0000000..7029e6f --- /dev/null +++ b/.nodejs010-nodejs-spdx-expression-parse.metadata @@ -0,0 +1 @@ +bb4f2ed00d50473a949f7a333d84ecc1ab6d483d SOURCES/spdx-expression-parse-1.0.1.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-expression-parse.spec b/SPECS/nodejs-spdx-expression-parse.spec new file mode 100644 index 0000000..5391cc4 --- /dev/null +++ b/SPECS/nodejs-spdx-expression-parse.spec @@ -0,0 +1,74 @@ +%{?scl:%scl_package nodejs-spdx-expression-parse} +%{!?scl:%global pkg_name %{name}} + +# spec file for package nodejs-nodejs-spdx-expression-parse + +%global npm_name spdx-expression-parse +%{?nodejs_find_provides_and_requires} + +%global enable_tests 0 + +Name: %{?scl_prefix}nodejs-spdx-expression-parse +Version: 1.0.1 +Release: 1%{?dist} +Summary: parse SPDX license expressions +Url: https://github.com/kemitchell/spdx-expression-parse.js#readme +Source0: https://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz +License: (MIT AND CC-BY-3.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(jison) +BuildRequires: %{?scl_prefix}npm(replace-require-self) +BuildRequires: %{?scl_prefix}npm(uglify-js) +%endif + +BuildRequires: %{?scl_prefix}npm(spdx-exceptions) +BuildRequires: %{?scl_prefix}npm(spdx-license-ids) + +Requires: %{?scl_prefix}npm(spdx-exceptions) +Requires: %{?scl_prefix}npm(spdx-license-ids) + +%description +parse SPDX license expressions + +%prep +%setup -q -n package + +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-expression-parse + +%doc README.md + +%changelog +* Mon Nov 23 2015 Tomas Hrcka - 1.0.1-1 +- Initial build