|
|
f805f4 |
%{?scl:%scl_package nodejs-%{srcname}}
|
|
|
f805f4 |
%{!?scl:%global pkg_name %{name}}
|
|
|
f805f4 |
|
|
|
f805f4 |
%{?nodejs_find_provides_and_requires}
|
|
|
f805f4 |
|
|
|
f805f4 |
%global enable_tests 0
|
|
|
f805f4 |
%global srcname dashdash
|
|
|
f805f4 |
|
|
|
f805f4 |
%global owner trentm
|
|
|
f805f4 |
|
|
|
f805f4 |
Name: %{?scl_prefix}nodejs-%{srcname}
|
|
|
f805f4 |
Version: 1.13.1
|
|
|
356496 |
Release: 2%{?dist}
|
|
|
f805f4 |
Summary: A light, featureful and explicit option parsing library for node.js
|
|
|
f805f4 |
License: MIT
|
|
|
f805f4 |
URL: https://github.com/trentm/node-dashdash
|
|
|
f805f4 |
Source0: https://github.com/%{owner}/node-%{srcname}/archive/%{version}.tar.gz
|
|
|
f805f4 |
|
|
|
f805f4 |
BuildArch: noarch
|
|
|
f805f4 |
|
|
|
f805f4 |
ExclusiveArch: %{nodejs_arches} noarch
|
|
|
f805f4 |
|
|
|
f805f4 |
BuildRequires: %{?scl_prefix}nodejs-devel
|
|
|
f805f4 |
|
|
|
f805f4 |
%if 0%{?enable_tests}
|
|
|
f805f4 |
BuildRequires: %{?scl_prefix}npm(nodeunit)
|
|
|
f805f4 |
BuildRequires: %{?scl_prefix}npm(assert-plus)
|
|
|
f805f4 |
%endif
|
|
|
f805f4 |
|
|
|
f805f4 |
%description
|
|
|
f805f4 |
%{summary}.
|
|
|
f805f4 |
|
|
|
f805f4 |
%prep
|
|
|
f805f4 |
%setup -n %{pkg_name}-%{version} -qn node-%{srcname}-%{version}
|
|
|
f805f4 |
#%nodejs_fixdep assert-plus
|
|
|
f805f4 |
rm -rf node_modules
|
|
|
f805f4 |
|
|
|
f805f4 |
%build
|
|
|
f805f4 |
#nothing to do
|
|
|
f805f4 |
|
|
|
f805f4 |
%install
|
|
|
f805f4 |
mkdir -p %{buildroot}%{nodejs_sitelib}/%{srcname}
|
|
|
f805f4 |
|
|
|
f805f4 |
cp -pr package.json lib/ \
|
|
|
f805f4 |
%{buildroot}%{nodejs_sitelib}/%{srcname}
|
|
|
f805f4 |
|
|
|
f805f4 |
%nodejs_symlink_deps
|
|
|
f805f4 |
|
|
|
f805f4 |
%if 0%{?enable_tests}
|
|
|
f805f4 |
|
|
|
f805f4 |
%check
|
|
|
f805f4 |
%nodejs_symlink_deps --check
|
|
|
f805f4 |
nodeunit test/*.test.js
|
|
|
f805f4 |
%endif
|
|
|
f805f4 |
|
|
|
f805f4 |
%files
|
|
|
f805f4 |
%doc CHANGES.md AUTHORS README.md TODO.txt examples
|
|
|
f805f4 |
%license LICENSE.txt
|
|
|
f805f4 |
%{nodejs_sitelib}/%{srcname}
|
|
|
f805f4 |
|
|
|
f805f4 |
%changelog
|
|
|
356496 |
* Mon May 28 2018 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.13.1-2
|
|
|
356496 |
- Resolves: RHBZ#1543198, rebuild for multiarch
|
|
|
356496 |
|
|
|
f805f4 |
* Thu Sep 22 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.13.1-1
|
|
|
f805f4 |
- Update
|
|
|
f805f4 |
|
|
|
f805f4 |
* Thu Sep 22 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.10.1-5
|
|
|
f805f4 |
- Add requires and provides macro
|
|
|
f805f4 |
|
|
|
f805f4 |
* Thu Sep 22 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.10.1-4
|
|
|
f805f4 |
- Built for scl
|
|
|
f805f4 |
|
|
|
f805f4 |
* Sun Aug 28 2016 Piotr Popieluch <piotr1212@gmail.com> - - 1.10.1-3
|
|
|
f805f4 |
- fixdep assert-plus
|
|
|
f805f4 |
|
|
|
f805f4 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.1-2
|
|
|
f805f4 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
f805f4 |
|
|
|
f805f4 |
* Sun Dec 13 2015 Piotr Popieluch <piotr1212@gmail.com> - 1.10.1-1
|
|
|
f805f4 |
- Initial package
|