Blame SPECS/nodejs-prepend-http.spec

18fd4b
%{?scl:%scl_package nodejs-%{module_name}}
18fd4b
%{!?scl:%global pkg_name %{name}}
18fd4b
%{?nodejs_find_provides_and_requires}
18fd4b
18fd4b
# ava module not in fedora yet
18fd4b
%global enable_tests 0
18fd4b
%global module_name prepend-http
18fd4b
18fd4b
Name:           %{?scl_prefix}nodejs-%{module_name}
18fd4b
Version:        1.0.1
18fd4b
Release:        7%{?dist}
18fd4b
Summary:        Prepend http:// to humanized URLs like todomvc.com and localhost
18fd4b
18fd4b
License:        MIT
18fd4b
URL:            https://github.com/sindresorhus/prepend-http
18fd4b
Source0:        https://github.com/sindresorhus/prepend-http/archive/v%{version}.tar.gz
18fd4b
BuildArch:      noarch
18fd4b
ExclusiveArch:  %{nodejs_arches} noarch
18fd4b
18fd4b
BuildRequires:  %{?scl_prefix}nodejs-devel
18fd4b
18fd4b
%if 0%{?enable_tests}
18fd4b
BuildRequires:  %{?scl_prefix}npm(ava)
18fd4b
%endif
18fd4b
18fd4b
%description
18fd4b
%{summary}.
18fd4b
18fd4b
%prep
18fd4b
%setup -q -n %{module_name}-%{version}
18fd4b
rm -rf node_modules
18fd4b
18fd4b
%build
18fd4b
# nothing to build
18fd4b
18fd4b
%install
18fd4b
mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name}
18fd4b
cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/%{module_name}
18fd4b
18fd4b
%nodejs_symlink_deps
18fd4b
18fd4b
%if 0%{?enable_tests}
18fd4b
18fd4b
%check
18fd4b
%nodejs_symlink_deps --check
18fd4b
node test.js
18fd4b
%endif
18fd4b
18fd4b
%files
18fd4b
%{!?_licensedir:%global license %doc}
18fd4b
%doc readme.md 
18fd4b
%license license
18fd4b
%{nodejs_sitelib}/%{module_name}
18fd4b
18fd4b
%changelog
18fd4b
* Tue Feb 16 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.1-7
18fd4b
- Use macro in -runtime dependency
18fd4b
18fd4b
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.1-6
18fd4b
- Rebuilt with updated metapackage
18fd4b
18fd4b
* Fri Jan 15 2016 Tomas Hrcka <thrcka@redhat.com> - 1.0.1-5
18fd4b
- Enable scl macros
18fd4b
18fd4b
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-2
18fd4b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
18fd4b
18fd4b
* Sat Jan 31 2015 Parag Nemade <pnemade AT redhat DOT com> - 1.0.1-1
18fd4b
- update to 1.0.1 upstream release
18fd4b
18fd4b
* Sun Jan 11 2015 Parag Nemade <pnemade AT redhat DOT com> - 1.0.0-1
18fd4b
- Initial packaging