diff --git a/nodejs-jju.spec b/nodejs-jju.spec new file mode 100644 index 0000000..322df5a --- /dev/null +++ b/nodejs-jju.spec @@ -0,0 +1,47 @@ +%global npm_name jju +%{?nodejs_find_provides_and_requires} +%global enable_tests 1 +Name: nodejs-jju +Version: 1.2.1 +Release: 1 +Summary: A set of utilities to work with JSON / JSON5 documents +Url: https://github.com/rlidwka/jju +Source0: https://github.com/rlidwka/jju/archive/v%{version}.tar.gz +Source1: package.json +License: WTFPL +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch +BuildRequires: nodejs-packaging +%if 0%{?enable_tests} +BuildRequires: npm(js-yaml) mocha +%endif +%description +A set of utilities to work with JSON / JSON5 documents + +%prep +%autosetup -n jju-%{version} +rm -rf test/test_parse.js +cp %{SOURCE1} ./ +%nodejs_fixdep mocha + +%build + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/jju +cp -pr package.json *.js lib/ \ + %{buildroot}%{nodejs_sitelib}/jju +%{nodejs_symlink_deps} +%if 0%{?enable_tests} + +%check +%{nodejs_symlink_deps} --check +mocha test/*.js +%endif + +%files +%{nodejs_sitelib}/jju +%doc README.md + +%changelog +* Thu Aug 20 2020 yaokai - 1.2.1-1 +- Package init diff --git a/nodejs-jju.yaml b/nodejs-jju.yaml new file mode 100644 index 0000000..a948fd0 --- /dev/null +++ b/nodejs-jju.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: rlidwka/jju +tag_pattern: "^v" +seperator: "." diff --git a/package.json b/package.json new file mode 100644 index 0000000..f5a86e7 --- /dev/null +++ b/package.json @@ -0,0 +1 @@ +{"name":"jju","version":"1.2.1","description":"a set of utilities to work with JSON / JSON5 documents","author":{"name":"Alex Kocharin","email":"alex@kocharin.ru"},"repository":{"type":"git","url":"git://github.com/rlidwka/jju"},"bugs":{"url":"https://github.com/rlidwka/jju/issues"},"homepage":"http://rlidwka.github.io/jju/","devDependencies":{"mocha":">=1.21.0","js-yaml":">=3.1.0","eslint":"~0.4.2"},"scripts":{"test":"mocha test/*.js","lint":"eslint -c ./.eslint.yaml ./lib"},"keywords":["json","json5","parser","serializer","data"],"publishConfig":{"registry":"https://registry.npmjs.org/"},"license":{"type":"WTFPL","url":"http://www.wtfpl.net/txt/copying/"}} diff --git a/v1.2.1.tar.gz b/v1.2.1.tar.gz new file mode 100644 index 0000000..8837061 Binary files /dev/null and b/v1.2.1.tar.gz differ