diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6bc2eb1 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/github-url-from-git-1.1.1.tgz diff --git a/.nodejs010-nodejs-github-url-from-git.metadata b/.nodejs010-nodejs-github-url-from-git.metadata new file mode 100644 index 0000000..9fb2c19 --- /dev/null +++ b/.nodejs010-nodejs-github-url-from-git.metadata @@ -0,0 +1 @@ +1f89623453123ef9623956e264c60bf4c3cf5ccf SOURCES/github-url-from-git-1.1.1.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..b740930 --- /dev/null +++ b/SOURCES/LICENSE @@ -0,0 +1,22 @@ +(The MIT License) + +Copyright (c) 2013 TJ Holowaychuk + +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-github-url-from-git.spec b/SPECS/nodejs-github-url-from-git.spec new file mode 100644 index 0000000..d187b4e --- /dev/null +++ b/SPECS/nodejs-github-url-from-git.spec @@ -0,0 +1,72 @@ +%{?scl:%scl_package nodejs-github-url-from-git} +%{!?scl:%global pkg_name %{name}} + +%{?nodejs_find_provides_and_requires} + +Name: %{?scl_prefix}nodejs-github-url-from-git +Version: 1.1.1 +Release: 2.1%{?dist} +Summary: Parse a GitHub git URL and return the GitHub repository URL + +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch + +Group: Development/Libraries +#No license file included, "MIT" indicated in README and package.json +#A copy of the MIT license based on the version included with express, another +#node module by the same author, is included in Source1, and has been sent +#upstream: https://github.com/visionmedia/github-url-from-git/pull/5 +License: MIT +URL: https://github.com/visionmedia/node-github-url-from-git +Source0: http://registry.npmjs.org/github-url-from-git/-/github-url-from-git-%{version}.tgz +Source1: https://raw.github.com/tchollingsworth/node-github-url-from-git/154fb09296b79637e25952638782995ad6812612/LICENSE +BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: %{?scl_prefix}nodejs-devel + +#for tests +#BuildRequires: %{?scl_prefix}npm(mocha) +#BuildRequires: %{?scl_prefix}npm(should) +#BuildRequires: %{?scl_prefix}npm(better-assert) + +%description +%{summary}. + +%prep +%setup -q -n package + +#copy LICENSE file into %%_builddir so it works with %%doc +cp %{SOURCE1} LICENSE + +%build +#nothing to do + +%install +rm -rf %buildroot + +mkdir -p %{buildroot}%{nodejs_sitelib}/github-url-from-git +cp -pr index.js package.json %{buildroot}%{nodejs_sitelib}/github-url-from-git + +%nodejs_symlink_deps + +%check +%nodejs_symlink_deps --check +#mocha test.js --reporter spec --require should + +%clean +rm -rf %buildroot + +%files +%defattr(-,root,root,-) +%{nodejs_sitelib}/github-url-from-git +%doc Readme.md LICENSE History.md + +%changelog +* Wed Dec 11 2013 Tomas Hrcka - 1.1.1-2.1 +- enable scl support + +* Sat Jun 22 2013 T.C. Hollingsworth - 1.1.1-2 +- restrict to compatible arches + +* Sun Jun 02 2013 T.C. Hollingsworth - 1.1.1-1 +- initial package