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