Blame SPECS/nodejs-os-tmpdir.spec

8af9bc
%{?scl:%scl_package nodejs-%{module_name}}
8af9bc
%{!?scl:%global pkg_name %{name}}
8af9bc
8af9bc
# ava is not in fedora yet
8af9bc
%global enable_tests 0
8af9bc
%global module_name os-tmpdir
8af9bc
%global gittag0 1.0.1
8af9bc
8af9bc
%{?nodejs_find_provides_and_requires}
8af9bc
8af9bc
Name:           %{?scl_prefix}nodejs-%{module_name}
8af9bc
Version:        %{gittag0}
8af9bc
Release:        6%{?dist}
8af9bc
Summary:        Node.js os.tmpdir() ponyfill
8af9bc
8af9bc
License:        MIT
8af9bc
URL:            https://github.com/sindresorhus/os-tmpdir
8af9bc
Source0:        https://github.com/sindresorhus/%{module_name}/archive/%{gittag0}.tar.gz#/%{module_name}-%{gittag0}.tar.gz
8af9bc
8af9bc
BuildArch:      noarch
8af9bc
ExclusiveArch:  %{nodejs_arches} noarch
8af9bc
BuildRequires:  %{?scl_prefix}runtime
8af9bc
8af9bc
%if 0%{?enable_tests}
8af9bc
BuildRequires: %{?scl_prefix}npm(ava)
8af9bc
%endif
8af9bc
8af9bc
%description
8af9bc
%{summary}.
8af9bc
8af9bc
%prep
8af9bc
%setup -q -n %{module_name}-%{gittag0}
8af9bc
rm -rf node_modules
8af9bc
8af9bc
%build
8af9bc
# nothing to build
8af9bc
8af9bc
%install
8af9bc
mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name}
8af9bc
cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/%{module_name}
8af9bc
%nodejs_symlink_deps
8af9bc
8af9bc
%if 0%{?enable_tests}
8af9bc
8af9bc
%check
8af9bc
%nodejs_symlink_deps --check
8af9bc
node test.js
8af9bc
%endif
8af9bc
8af9bc
%files
8af9bc
%doc readme.md license
8af9bc
%{nodejs_sitelib}/%{module_name}
8af9bc
8af9bc
%changelog
8af9bc
* Fri Jul 07 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.1-6
8af9bc
- rh-nodejs8 rebuild
8af9bc
8af9bc
* Tue Feb 16 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.1-5
8af9bc
- Use macro in -runtime dependency
8af9bc
8af9bc
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.1-4
8af9bc
- Rebuilt with updated metapackage
8af9bc
8af9bc
* Mon Nov 30 2015 Tomas Hrcka <thrcka@redhat.com> - 1.0.1-3
8af9bc
- Enable scl macros
8af9bc
8af9bc
* Sat Sep 12 2015 Parag Nemade <pnemade AT redhat DOT com> - 1.0.1-1
8af9bc
- Initial packaging