Blame SPECS/nodejs-github-url-from-username-repo.spec

a55ab5
%{?scl:%scl_package nodejs-github-url-from-username-repo}
a55ab5
%{!?scl:%global pkg_name %{name}}
a55ab5
a55ab5
%global npm_name github-url-from-username-repo
a55ab5
%{?nodejs_find_provides_and_requires}
a55ab5
a55ab5
Name:           %{?scl_prefix}nodejs-github-url-from-username-repo
176939
Version:        1.0.0
a55ab5
Release:        1%{?dist}
a55ab5
Summary:        Create urls from username/repo
a55ab5
a55ab5
Url:            https://github.com/robertkowalski/github-url-from-username-repo
a55ab5
Source0:        http://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
a55ab5
License:        BSD-2-Clause
176939
BuildArch:      noarch
a55ab5
BuildRoot:      %{_tmppath}/%{pkg_name}-%{version}-%{release}-root-%(%{__id_u} -n) 
a55ab5
a55ab5
%description
a55ab5
Create urls from username/repo
a55ab5
a55ab5
%prep
a55ab5
%setup -q -n package
a55ab5
a55ab5
%build
a55ab5
#nothing to do
a55ab5
a55ab5
%install
a55ab5
rm -rf %{buildroot}
a55ab5
a55ab5
mkdir -p %{buildroot}/%{nodejs_sitelib}/github-url-from-username-repo
a55ab5
cp -pr index.js package.json %{buildroot}/%{nodejs_sitelib}/github-url-from-username-repo
a55ab5
a55ab5
%check
a55ab5
%nodejs_symlink_deps --check --no-devdeps
a55ab5
a55ab5
%clean
a55ab5
rm -rf %{buildroot}
a55ab5
a55ab5
%files
a55ab5
%defattr(-,root,root,-)
a55ab5
%{nodejs_sitelib}/github-url-from-username-repo
a55ab5
%doc README.md LICENSE
a55ab5
a55ab5
%changelog
176939
* Fri Jan 09 2015 Tomas Hrcka <thrcka@redhat.com> - 1.0.0-1
176939
- New upstream release 1.0.0
176939
a55ab5
* Thu Jan 23 2014 Tomas Hrcka <thrcka@redhat.com> - 0.0.2-1
a55ab5
- Package import