diff --git a/.gitignore b/.gitignore index e69de29..a703217 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/far-0.0.7.tgz diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..fdc3a98 --- /dev/null +++ b/LICENSE @@ -0,0 +1,19 @@ +Copyright (C) 2013 Felix Geisendörfer + +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/nodejs-far.spec b/nodejs-far.spec new file mode 100644 index 0000000..7cc589f --- /dev/null +++ b/nodejs-far.spec @@ -0,0 +1,52 @@ +%global srcname far + +Name: nodejs-%{srcname} +Version: 0.0.7 +Release: 1%{?dist} +Summary: Find and run Node.js files +License: MIT +URL: https://github.com/felixge/node-far +Source0: https://registry.npmjs.org/%{srcname}/-/%{srcname}-%{version}.tgz +Source1: https://raw.githubusercontent.com/felixge/node-far/master/LICENSE + +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch + +BuildRequires: nodejs-packaging +BuildRequires: nodejs-oop + +%description +%{summary}. + +%prep +%setup -q -n package +rm -rf node_modules +find . -name '*\.un~' -delete +cp -p %{SOURCE1} . + +%build +#nothing to do + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/%{srcname} +cp -pr package.json index.js lib/ bin/ \ + %{buildroot}%{nodejs_sitelib}/%{srcname} + +mkdir -p %{buildroot}%{_bindir} +ln -s %{nodejs_sitelib}/%{srcname}/bin/node-far %{buildroot}%{_bindir}/node-far + +%nodejs_symlink_deps + +%check +%nodejs_symlink_deps --check +./bin/node-far test/ -i 'test-.*\.js$' -e '.*-fail\.js$' + +%files +%doc Readme.md +%license LICENSE +%{nodejs_sitelib}/%{srcname} +%{_bindir}/node-far + +%changelog +* Sat Oct 3 2015 Piotr Popieluch - 0.0.7-1 +- Initial package diff --git a/sources b/sources index e69de29..0b3ecf8 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +ac018707e7646fa24a3b2f497a455969 far-0.0.7.tgz