Blame SPECS/nodejs-github-url-from-git.spec

ec2f37
%{?scl:%scl_package nodejs-github-url-from-git}
ec2f37
%{!?scl:%global pkg_name %{name}}
ec2f37
ec2f37
%{?nodejs_find_provides_and_requires}
ec2f37
ec2f37
Name:           %{?scl_prefix}nodejs-github-url-from-git
ec2f37
Version:        1.4.0
ec2f37
Release:        2%{?dist}
ec2f37
Summary:        Parse a GitHub git URL and return the GitHub repository URL
ec2f37
ec2f37
BuildArch:      noarch
ec2f37
ExclusiveArch: %{nodejs_arches} noarch
ec2f37
ec2f37
Group:          Development/Libraries
ec2f37
#No license file included, "MIT" indicated in README and package.json
ec2f37
#A copy of the MIT license based on the version included with express, another
ec2f37
#node module by the same author, is included in Source1, and has been sent
ec2f37
#upstream: https://github.com/visionmedia/github-url-from-git/pull/5
ec2f37
License:        MIT
ec2f37
URL:            https://github.com/visionmedia/node-github-url-from-git
ec2f37
Source0:        http://registry.npmjs.org/github-url-from-git/-/github-url-from-git-%{version}.tgz
ec2f37
Source1:        https://raw.github.com/tchollingsworth/node-github-url-from-git/154fb09296b79637e25952638782995ad6812612/LICENSE
ec2f37
BuildRoot:      %{_tmppath}/%{pkg_name}-%{version}-%{release}-root-%(%{__id_u} -n)
ec2f37
ec2f37
BuildRequires:  %{?scl_prefix}nodejs-devel
ec2f37
ec2f37
#for tests
ec2f37
#BuildRequires:  %{?scl_prefix}npm(mocha)
ec2f37
#BuildRequires:  %{?scl_prefix}npm(should)
ec2f37
#BuildRequires:  %{?scl_prefix}npm(better-assert)
ec2f37
ec2f37
%description
ec2f37
%{summary}.
ec2f37
ec2f37
%prep
ec2f37
%setup -q -n package
ec2f37
ec2f37
#copy LICENSE file into %%_builddir so it works with %%doc
ec2f37
cp %{SOURCE1} LICENSE
ec2f37
ec2f37
%build
ec2f37
#nothing to do
ec2f37
ec2f37
%install
ec2f37
rm -rf %buildroot
ec2f37
ec2f37
mkdir -p %{buildroot}%{nodejs_sitelib}/github-url-from-git
ec2f37
cp -pr index.js package.json %{buildroot}%{nodejs_sitelib}/github-url-from-git
ec2f37
ec2f37
%nodejs_symlink_deps
ec2f37
ec2f37
%check
ec2f37
%nodejs_symlink_deps --check
ec2f37
#mocha test.js --reporter spec --require should
ec2f37
ec2f37
%clean
ec2f37
rm -rf %buildroot
ec2f37
ec2f37
%files
ec2f37
%defattr(-,root,root,-)
ec2f37
%{nodejs_sitelib}/github-url-from-git
ec2f37
%doc Readme.md LICENSE
ec2f37
ec2f37
%changelog
ec2f37
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.4.0-2
ec2f37
- rebuilt
ec2f37
ec2f37
* Fri Jan 09 2015 Tomas Hrcka <thrcka@redhat.com> - 1.4.0-1
ec2f37
- New upstream release 1.4.0
ec2f37
ec2f37
* Wed Dec 11 2013 Tomas Hrcka <thrcka@redhat.com> - 1.1.1-2.1
ec2f37
- enable scl support
ec2f37
ec2f37
* Sat Jun 22 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.1.1-2
ec2f37
- restrict to compatible arches
ec2f37
ec2f37
* Sun Jun 02 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.1.1-1
ec2f37
- initial package