diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..de31b03 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/jsonpointer-2.0.0.tgz diff --git a/.rh-nodejs6-nodejs-jsonpointer.metadata b/.rh-nodejs6-nodejs-jsonpointer.metadata new file mode 100644 index 0000000..c80d082 --- /dev/null +++ b/.rh-nodejs6-nodejs-jsonpointer.metadata @@ -0,0 +1 @@ +3af1dd20fe85463910d469a385e33017d2a030d9 SOURCES/jsonpointer-2.0.0.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/SOURCES/LICENSE.md b/SOURCES/LICENSE.md new file mode 100644 index 0000000..6b3cca1 --- /dev/null +++ b/SOURCES/LICENSE.md @@ -0,0 +1,20 @@ +Copyright (c) 2011-2015 Jan Lehnardt jan@apache.org & Marc Bachmann https://github.com/marcbachmann + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + diff --git a/SPECS/nodejs-jsonpointer.spec b/SPECS/nodejs-jsonpointer.spec new file mode 100644 index 0000000..f50c699 --- /dev/null +++ b/SPECS/nodejs-jsonpointer.spec @@ -0,0 +1,53 @@ +%{?scl:%scl_package nodejs-jsonpointer} +%{!?scl:%global pkg_name %{name}} +%{?nodejs_find_provides_and_requires} + +%global enable_tests 0 +%global npm_name jsonpointer + +Name: %{?scl_prefix}nodejs-%{npm_name} +Version: 2.0.0 +Release: 2%{?dist} +Summary: Simple JSON Addressing +License: MIT +URL: http://github.com/janl/node-jsonpointer/issues +Source0: http://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz +Source1: https://github.com/janl/node-jsonpointer/blob/4.0.0/LICENSE.md +BuildRequires: %{?scl_prefix}nodejs-devel +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch + +%description +Simple JSON Addressing. + +%prep +%setup -q -n package +cp %{SOURCE1} . + +rm -rf node_modules + +%build + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name} +cp -pfr jsonpointer.js package.json %{buildroot}%{nodejs_sitelib}/%{npm_name} +# If any binaries are included, symlink them to bindir here + + +%nodejs_symlink_deps + +%if 0%{?enable_tests} +%check +#not running tests in RHSCL +%endif + +%files +%{nodejs_sitelib}/%{npm_name} + +%doc LICENSE.md +%doc README.md + +%changelog +* Tue Sep 20 2016 Zuzana Svetlikova - 2.0.0-2 +- Initial build +