|
|
da1732 |
%{?scl:%scl_package nodejs-optimist}
|
|
|
da1732 |
%{!?scl:%global pkg_name %{name}}
|
|
|
da1732 |
|
|
|
da1732 |
%{?nodejs_find_provides_and_requires}
|
|
|
da1732 |
|
|
|
da1732 |
# no tap? no problem
|
|
|
da1732 |
%global bootstrap 1
|
|
|
da1732 |
|
|
|
da1732 |
Name: %{?scl_prefix}nodejs-optimist
|
|
|
da1732 |
Version: 0.4.0
|
|
|
da1732 |
Release: 6%{?dist}
|
|
|
da1732 |
Summary: Light-weight option parsing for Node.js
|
|
|
da1732 |
BuildArch: noarch
|
|
|
da1732 |
|
|
|
da1732 |
Group: System Environment/Libraries
|
|
|
da1732 |
# no license file included; package.json says "MIT/X11"
|
|
|
da1732 |
License: MIT/X11
|
|
|
da1732 |
URL: http://github.com/substack/node-optimist
|
|
|
da1732 |
Source0: http://registry.npmjs.org/optimist/-/optimist-%{version}.tgz
|
|
|
da1732 |
BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
da1732 |
|
|
|
da1732 |
BuildRequires: %{?scl_prefix}nodejs-devel
|
|
|
da1732 |
|
|
|
da1732 |
%if !0%{?bootstrap}
|
|
|
da1732 |
BuildRequires: %{?scl_prefix}npm(tap)
|
|
|
da1732 |
BuildRequires: %{?scl_prefix}npm(hashish)
|
|
|
da1732 |
%endif
|
|
|
da1732 |
|
|
|
da1732 |
%description
|
|
|
da1732 |
Light-weight option parsing with an argv hash. No optstrings attached.
|
|
|
da1732 |
|
|
|
da1732 |
%prep
|
|
|
da1732 |
%setup -q -n package
|
|
|
da1732 |
%nodejs_fixdep wordwrap
|
|
|
da1732 |
|
|
|
da1732 |
%build
|
|
|
da1732 |
#nothing to do
|
|
|
da1732 |
|
|
|
da1732 |
%install
|
|
|
da1732 |
rm -rf %buildroot
|
|
|
da1732 |
mkdir -p %{buildroot}%{nodejs_sitelib}/optimist
|
|
|
da1732 |
cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/optimist
|
|
|
da1732 |
|
|
|
da1732 |
%if !0%{?bootstrap}
|
|
|
da1732 |
|
|
|
da1732 |
%check
|
|
|
da1732 |
%nodejs_tap test/*.js
|
|
|
da1732 |
%endif
|
|
|
da1732 |
|
|
|
da1732 |
%clean
|
|
|
da1732 |
rm -rf %buildroot
|
|
|
da1732 |
|
|
|
da1732 |
%files
|
|
|
da1732 |
%defattr(-,root,root,-)
|
|
|
da1732 |
%{nodejs_sitelib}/optimist
|
|
|
da1732 |
%doc LICENSE readme.markdown example
|
|
|
da1732 |
|
|
|
da1732 |
%changelog
|
|
|
da1732 |
* Mon Jan 11 2016 Tomas Hrcka <thrcka@redhat.com> - 0.4.0-6
|
|
|
da1732 |
- Enable scl macros
|
|
|
da1732 |
|
|
|
da1732 |
* Thu Dec 17 2015 Troy Dawson <tdawson@redhat.com> - 0.4.0-5
|
|
|
da1732 |
- Fix dependencies
|
|
|
da1732 |
|
|
|
da1732 |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-4
|
|
|
da1732 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
da1732 |
|
|
|
da1732 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-3
|
|
|
da1732 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
da1732 |
|
|
|
da1732 |
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-2
|
|
|
da1732 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
da1732 |
|
|
|
da1732 |
* Mon Apr 15 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.4.0-1
|
|
|
da1732 |
- new upstream release 0.4.0
|
|
|
da1732 |
|
|
|
da1732 |
* Fri Jan 18 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.3.5-1
|
|
|
da1732 |
- initial package generated by npm2rpm
|