diff --git a/.gitignore b/.gitignore index e69de29..7023392 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/linify-1.0.1.tgz diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..dfb0b19 --- /dev/null +++ b/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2013 Forbes Lindesay + +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. \ No newline at end of file diff --git a/nodejs-linify.spec b/nodejs-linify.spec new file mode 100644 index 0000000..249a064 --- /dev/null +++ b/nodejs-linify.spec @@ -0,0 +1,79 @@ +# This macro is needed at the start for building on EL6 +%{?nodejs_find_provides_and_requires} + +%global enable_tests 0 + +%global npm_name linify + +Name: nodejs-%{npm_name} +Version: 1.0.1 +Release: 4%{?dist} +Summary: Transform a file's line endings from `\\r\\n` to `\\n` +Group: Development/Libraries + +License: MIT +URL: https://github.com/ForbesLindesay/%{npm_name} +Source0: http://registry.npmjs.org/linify/-/%{npm_name}-%{version}.tgz +# LICENSE file from Github +# https://raw.githubusercontent.com/ForbesLindesay/linify/master/LICENSE +# Upsteram has b een asked to include license text in tarball +Source1: LICENSE + +BuildRequires: nodejs-devel +BuildRequires: nodejs-packaging + +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch + +%description +Transform a file's line endings from `\\r\\n` to `\\n`. + +%prep +%setup -q -n package +cp -p %{SOURCE1} . + +%nodejs_fixdep commander ">= 1.2.0" + + +%build +%nodejs_symlink_deps --build + + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/linify +cp -pr lib index.js .js package.json %{buildroot}%{nodejs_sitelib}/linify > /dev/null 2>&1 || : +mkdir -p %{buildroot}%{nodejs_sitelib}/linify/bin +install -p -D -m0755 bin/cli.js %{buildroot}%{nodejs_sitelib}/linify/bin/cli.js + +mkdir -p %{buildroot}%{_bindir} +ln -sf %{nodejs_sitelib}/linify/bin/cli.js \ + %{buildroot}%{_bindir}/linify-nodejs + +%nodejs_symlink_deps + +%check +%if 0%{enable_tests} +%nodejs_symlink_deps --check +%endif + + +%files +%{!?_licensedir:%global license %%doc} +%license LICENSE +%doc readme.md +%{nodejs_sitelib}/linify/ +%{_bindir}/linify-nodejs + +%changelog +* Wed Nov 12 2014 Eduardo Mayorga Téllez - 1.0.1-4 +- Adding license file from Github +- Removing prepublish.js + +* Mon Aug 25 2014 Eduardo Mayorga Téllez - 1.0.1-3 +- Fixing dependency issues + +* Sun Aug 17 2014 Eduardo Mayorga Téllez - 1.0.1-2 +- Adding symlink to bin/cli.js in %%files + +* Thu Jul 24 2014 Eduardo Mayorga Téllez - 1.0.1-1 +- Initial packaging diff --git a/sources b/sources index e69de29..2976180 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +688a1658cbf1578d932ad64b93991062 linify-1.0.1.tgz