Blame SPECS/nodejs-uuid-js.spec

2f4548
%{?scl:%scl_package nodejs-uuid-js}
2f4548
%{!?scl:%global pkg_name %{name}}
2f4548
2f4548
# spec file for package nodejs-nodejs-uuid-js
2f4548
2f4548
%global npm_name uuid-js
2f4548
%{?nodejs_find_provides_and_requires}
2f4548
2f4548
%global enable_tests 0
2f4548
2f4548
Name:		%{?scl_prefix}nodejs-uuid-js
2f4548
Version:	0.7.5
d4bb6f
Release:	4%{?dist}
2f4548
Summary:	A js library to generate and parse UUIDs,TimeUUIDs and generate TimeUUID based on Date for range selections
2f4548
Url:		http://github.com/pnegri/uuid-js
2f4548
Source0:	https://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
2f4548
License:        ASL-2.0	
2f4548
2f4548
BuildArch:	noarch
2f4548
2f4548
%if 0%{?fedora} >= 19
2f4548
ExclusiveArch:	%{nodejs_arches} noarch
2f4548
%else
d4bb6f
ExclusiveArch:	%{nodejs_arches} noarch
2f4548
%endif
2f4548
2f4548
BuildRequires:  %{?scl_prefix}nodejs-devel
2f4548
2f4548
%if 0%{?enable_tests}
2f4548
BuildRequires:	%{?scl_prefix}npm(sinon)
2f4548
%endif
2f4548
2f4548
%description
2f4548
A js library to generate and parse UUIDs,TimeUUIDs and generate TimeUUID based on Date for range selections
2f4548
2f4548
%prep
2f4548
%setup -q -n package
2f4548
2f4548
rm -rf node_modules
2f4548
2f4548
%build
2f4548
2f4548
#nothing to do
2f4548
2f4548
%install
2f4548
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
2f4548
2f4548
cp -pr package.json lib/ \
2f4548
%{buildroot}%{nodejs_sitelib}/%{npm_name}
2f4548
2f4548
%{nodejs_symlink_deps}
2f4548
2f4548
%if 0%{?enable_tests}
2f4548
2f4548
%check
2f4548
%{nodejs_symlink_deps} --check
2f4548
2f4548
%endif
2f4548
2f4548
%files
2f4548
%{!?_licensedir:%global license %doc}
2f4548
%{nodejs_sitelib}/uuid-js
2f4548
2f4548
%doc README.md
2f4548
%license LICENSE.txt
2f4548
2f4548
%changelog
d4bb6f
* Mon May 28 2018 Zuzana Svetlikova <zsvetlik@redhat.com> - 0.7.5-4
d4bb6f
- Resolves: RHBZ#1543198, rebuild for multiarch
d4bb6f
2f4548
* Tue Feb 16 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 0.7.5-3
2f4548
- Use macro in -runtime dependency
2f4548
2f4548
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 0.7.5-2
2f4548
- Rebuilt with updated metapackage
2f4548
2f4548
* Tue Jan 12 2016 Tomas Hrcka <thrcka@redhat.com> - 0.7.5-1
2f4548
- Initial build