diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d798afc --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/editor-0.0.5.tgz diff --git a/.nodejs010-nodejs-editor.metadata b/.nodejs010-nodejs-editor.metadata new file mode 100644 index 0000000..d79180e --- /dev/null +++ b/.nodejs010-nodejs-editor.metadata @@ -0,0 +1 @@ +8c38877781f2547011c1aeffdbe50cafcc59794a SOURCES/editor-0.0.5.tgz diff --git a/README.md b/README.md deleted file mode 100644 index ce46a88..0000000 --- a/README.md +++ /dev/null @@ -1,5 +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 b/SOURCES/LICENSE new file mode 100644 index 0000000..2778bed --- /dev/null +++ b/SOURCES/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/SPECS/nodejs-editor.spec b/SPECS/nodejs-editor.spec new file mode 100644 index 0000000..9a7278c --- /dev/null +++ b/SPECS/nodejs-editor.spec @@ -0,0 +1,69 @@ +%{?scl:%scl_package nodejs-editor} +%{!?scl:%global pkg_name %{name}} + +%{?nodejs_find_provides_and_requires} + +Name: %{?scl_prefix}nodejs-editor +Version: 0.0.5 +Release: 1%{?dist} +Summary: Launch the default text editor from Node.js programs +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} 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: %{?scl_prefix}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 Jan 16 2014 Tomas Hrcka - 0.0.5-1 +- New upstream release 0.0.5 + +* Thu Nov 07 2013 Tomas Hrcka - 0.0.4-3.1 +- Software collections support + +* Sat Aug 03 2013 Fedora Release Engineering - 0.0.4-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Sat Jun 22 2013 T.C. Hollingsworth - 0.0.4-2 +- restrict to compatible arches + +* Thu May 30 2013 T.C. Hollingsworth - 0.0.4-1 +- initial package