Blame SPECS/nodejs-os-tmpdir.spec

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