diff --git a/.gitignore b/.gitignore index e69de29..f5e136e 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/editor-0.0.4.tgz diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..2778bed --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +Copyright 2013 James Halliday (mail@substack.net) + +This project is free software released under the MIT/X11 license: + +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-editor.spec b/nodejs-editor.spec new file mode 100644 index 0000000..5416640 --- /dev/null +++ b/nodejs-editor.spec @@ -0,0 +1,53 @@ +%{?nodejs_find_provides_and_requires} + +Name: nodejs-editor +Version: 0.0.4 +Release: 1%{?dist} +Summary: Launch the default text editor from Node.js programs +BuildArch: noarch + +Group: Development/Libraries +#package.json indicates MIT, but no license file included +#upstream notified in https://github.com/substack/node-editor/pull/5 +#we're including a copy of the MIT license based off a copy from another +#project by the same author indicating the same license in order to comply +#with the terms of the MIT license +License: MIT +URL: https://github.com/substack/node-editor +Source0: http://registry.npmjs.org/editor/-/editor-%{version}.tgz +Source1: https://raw.github.com/tchollingsworth/node-editor/05d7fbfcf22329db9aae5c676b0721045e7974d5/LICENSE +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: nodejs-devel + +%description +%{summary}. + +%prep +%setup -q -n package + +#copy LICENSE file to %%{_builddir} so it works with %%doc +cp %{SOURCE1} . + +%build +#nothing to do + +%install +rm -rf %buildroot + +mkdir -p %{buildroot}%{nodejs_sitelib}/editor +cp -pr index.js package.json %{buildroot}%{nodejs_sitelib}/editor + +%nodejs_symlink_deps + +%clean +rm -rf %buildroot + +%files +%defattr(-,root,root,-) +%{nodejs_sitelib}/editor +%doc README.markdown LICENSE example + +%changelog +* Thu May 30 2013 T.C. Hollingsworth - 0.0.4-1 +- initial package diff --git a/sources b/sources index e69de29..50d788c 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +dd661bf54ba1944a0d21f02c6a0316e5 editor-0.0.4.tgz