diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..11a2119 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/github-url-from-git-1.4.0.tgz diff --git a/.rh-nodejs4-nodejs-github-url-from-git.metadata b/.rh-nodejs4-nodejs-github-url-from-git.metadata new file mode 100644 index 0000000..5209c7d --- /dev/null +++ b/.rh-nodejs4-nodejs-github-url-from-git.metadata @@ -0,0 +1 @@ +285e6b520819001bde128674704379e4ff03e0de SOURCES/github-url-from-git-1.4.0.tgz diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +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..ecf0962 --- /dev/null +++ b/SPECS/nodejs-github-url-from-git.spec @@ -0,0 +1,78 @@ +%{?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.4.0 +Release: 2%{?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 + +%changelog +* Sun Feb 14 2016 Zuzana Svetlikova - 1.4.0-2 +- rebuilt + +* Fri Jan 09 2015 Tomas Hrcka - 1.4.0-1 +- New upstream release 1.4.0 + +* 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