|
|
836fa8 |
%{?scl:%scl_package nodejs-minimist}
|
|
|
836fa8 |
%{!?scl:%global pkg_name %{name}}
|
|
|
836fa8 |
|
|
|
836fa8 |
%{?nodejs_find_provides_and_requires}
|
|
|
836fa8 |
|
|
|
836fa8 |
# sometimes you might need to disable tests to get it to build since tap
|
|
|
836fa8 |
# depends on this
|
|
|
836fa8 |
%global enable_tests 0
|
|
|
836fa8 |
|
|
|
836fa8 |
Name: %{?scl_prefix}nodejs-minimist
|
|
|
836fa8 |
Version: 0.0.8
|
|
|
836fa8 |
Release: 1%{?dist}
|
|
|
836fa8 |
Summary: Parse argument options in Node.js
|
|
|
836fa8 |
|
|
|
836fa8 |
Group: System Environment/Libraries
|
|
|
836fa8 |
License: MIT
|
|
|
836fa8 |
URL: http://github.com/substack/minimist
|
|
|
836fa8 |
Source0: http://registry.npmjs.org/minimist/-/minimist-%{version}.tgz
|
|
|
836fa8 |
BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
836fa8 |
|
|
|
836fa8 |
BuildArch: noarch
|
|
|
836fa8 |
%if 0%{?fedora} >= 19
|
|
|
836fa8 |
ExclusiveArch: %{nodejs_arches} noarch
|
|
|
836fa8 |
%else
|
|
|
836fa8 |
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
|
|
|
836fa8 |
%endif
|
|
|
836fa8 |
|
|
|
836fa8 |
#BuildRequires: %{?scl_prefix}
|
|
|
836fa8 |
|
|
|
836fa8 |
%if 0%{?enable_tests}
|
|
|
836fa8 |
BuildRequires: %{?scl_prefix}npm(tap)
|
|
|
836fa8 |
BuildRequires: %{?scl_prefix}npm(tape)
|
|
|
836fa8 |
%endif
|
|
|
836fa8 |
|
|
|
836fa8 |
%description
|
|
|
836fa8 |
%{summary}.
|
|
|
836fa8 |
|
|
|
836fa8 |
This module is the guts of nodejs-optimist's argument parser without all the
|
|
|
836fa8 |
fanciful decoration.
|
|
|
836fa8 |
|
|
|
836fa8 |
%prep
|
|
|
836fa8 |
%setup -q -n package
|
|
|
836fa8 |
|
|
|
836fa8 |
%build
|
|
|
836fa8 |
#nothing to do
|
|
|
836fa8 |
|
|
|
836fa8 |
%install
|
|
|
836fa8 |
rm -rf %buildroot
|
|
|
836fa8 |
mkdir -p %{buildroot}%{nodejs_sitelib}/minimist
|
|
|
836fa8 |
cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/minimist
|
|
|
836fa8 |
|
|
|
836fa8 |
%check
|
|
|
836fa8 |
%if 0%{?enable_tests}
|
|
|
836fa8 |
%nodejs_symlink_deps --check
|
|
|
836fa8 |
%tap test/*.js
|
|
|
836fa8 |
%endif
|
|
|
836fa8 |
|
|
|
836fa8 |
%clean
|
|
|
836fa8 |
rm -rf %buildroot
|
|
|
836fa8 |
|
|
|
836fa8 |
%files
|
|
|
836fa8 |
%defattr(-,root,root,-)
|
|
|
836fa8 |
%{nodejs_sitelib}/minimist
|
|
|
836fa8 |
%doc LICENSE readme.markdown example
|
|
|
836fa8 |
|
|
|
836fa8 |
%changelog
|
|
|
836fa8 |
* Fri Jan 09 2015 Tomas Hrcka <thrcka@redhat.com> - 0.0.8-4
|
|
|
836fa8 |
- New upstream release 0.0.8
|
|
|
836fa8 |
|
|
|
836fa8 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.1-3
|
|
|
836fa8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
836fa8 |
|
|
|
836fa8 |
* Sun Aug 18 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.0.1-2
|
|
|
836fa8 |
- update to new nodejs standards
|
|
|
836fa8 |
|
|
|
836fa8 |
* Mon Aug 05 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.0.1-1
|
|
|
836fa8 |
- initial package
|