|
|
7531dd |
%{?scl:%scl_package nodejs-nopt}
|
|
|
7531dd |
%{!?scl:%global pkg_name %{name}}
|
|
|
7531dd |
%{?nodejs_find_provides_and_requires}
|
|
|
7531dd |
|
|
|
7531dd |
Name: %{?scl_prefix}nodejs-nopt
|
|
|
7531dd |
Version: 3.0.6
|
|
|
7531dd |
Release: 2%{?dist}
|
|
|
7531dd |
Summary: Node.js option parsing
|
|
|
7531dd |
License: MIT
|
|
|
7531dd |
Group: System Environment/Libraries
|
|
|
7531dd |
URL: https://github.com/isaacs/nopt
|
|
|
7531dd |
Source0: http://registry.npmjs.org/nopt/-/nopt-%{version}.tgz
|
|
|
7531dd |
BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
7531dd |
BuildArch: noarch
|
|
|
7531dd |
ExclusiveArch: %{nodejs_arches} noarch
|
|
|
7531dd |
|
|
|
7531dd |
BuildRequires: %{?scl_prefix}nodejs-devel
|
|
|
7531dd |
|
|
|
7531dd |
%description
|
|
|
7531dd |
An option parsing library for Node.js and its package manager (npm).
|
|
|
7531dd |
|
|
|
7531dd |
%prep
|
|
|
7531dd |
%setup -q -n package
|
|
|
7531dd |
|
|
|
7531dd |
%build
|
|
|
7531dd |
#nothing to do
|
|
|
7531dd |
|
|
|
7531dd |
%install
|
|
|
7531dd |
rm -rf %{buildroot}
|
|
|
7531dd |
|
|
|
7531dd |
mkdir -p %{buildroot}%{nodejs_sitelib}/nopt
|
|
|
7531dd |
cp -pr bin lib package.json %{buildroot}%{nodejs_sitelib}/nopt
|
|
|
7531dd |
|
|
|
7531dd |
mkdir -p %{buildroot}%{_bindir}
|
|
|
7531dd |
ln -sf ../lib/node_modules/nopt/bin/nopt.js %{buildroot}%{_bindir}/nopt
|
|
|
7531dd |
|
|
|
7531dd |
%nodejs_symlink_deps
|
|
|
7531dd |
|
|
|
7531dd |
%clean
|
|
|
7531dd |
rm -rf %{buildroot}
|
|
|
7531dd |
|
|
|
7531dd |
%files
|
|
|
7531dd |
%defattr(-,root,root,-)
|
|
|
7531dd |
%{nodejs_sitelib}/nopt
|
|
|
7531dd |
%{_bindir}/nopt
|
|
|
7531dd |
%doc README.md LICENSE examples
|
|
|
7531dd |
|
|
|
7531dd |
%changelog
|
|
|
7531dd |
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 3.0.6-2
|
|
|
7531dd |
- rebuilt
|
|
|
7531dd |
|
|
|
7531dd |
* Mon Nov 30 2015 Tomas Hrcka <thrcka@redhat.com> - 3.0.6-1
|
|
|
7531dd |
- New upstream release
|
|
|
7531dd |
|
|
|
7531dd |
* Fri Jan 09 2015 Tomas Hrcka <thrcka@redhat.com> - 3.0.1-3
|
|
|
7531dd |
- New upstream release 3.0.1
|
|
|
7531dd |
|
|
|
7531dd |
* Thu Oct 17 2013 Tomas Hrcka <thrcka@redhat.com> - 2.1.2-2
|
|
|
7531dd |
- replace provides and requires with macro
|
|
|
7531dd |
|
|
|
7531dd |
* Tue Jul 30 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 2.1.2-1
|
|
|
7531dd |
- new upstream release 2.1.2
|
|
|
7531dd |
|
|
|
7531dd |
* Sat Jun 22 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 2.1.1-3
|
|
|
7531dd |
- restrict to compatible arches
|
|
|
7531dd |
|
|
|
7531dd |
* Mon Apr 15 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 2.1.1-2
|
|
|
7531dd |
- add macro for EPEL6 dependency generation
|
|
|
7531dd |
|
|
|
7531dd |
* Fri Apr 12 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.1.1-2
|
|
|
7531dd |
- Add support for software collections
|
|
|
7531dd |
|
|
|
7531dd |
* Sat Feb 09 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 2.1.1-1
|
|
|
7531dd |
- new upstream release 2.1.1
|
|
|
7531dd |
|
|
|
7531dd |
* Sun Jan 13 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 2.0.0-3
|
|
|
7531dd |
- fix symlink to nopt script
|
|
|
7531dd |
|
|
|
7531dd |
* Tue Jan 08 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 2.0.0-2
|
|
|
7531dd |
- add missing build section
|
|
|
7531dd |
|
|
|
7531dd |
* Mon Dec 31 2012 T.C. Hollingsworth <tchollingsworth@gmail.com> - 2.0.0-1
|
|
|
7531dd |
- new upstream release 2.0.0
|
|
|
7531dd |
- clean up for submission
|
|
|
7531dd |
|
|
|
7531dd |
* Fri Apr 27 2012 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.0.10-4
|
|
|
7531dd |
- bring in line with newer module packaging standards
|
|
|
7531dd |
|
|
|
7531dd |
* Fri Apr 27 2012 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.0.10-3
|
|
|
7531dd |
- guard Requires for F17 automatic depedency generation
|
|
|
7531dd |
|
|
|
7531dd |
* Sun Dec 18 2011 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.0.10-2
|
|
|
7531dd |
- add Group to make EL5 happy
|
|
|
7531dd |
|
|
|
7531dd |
* Tue Oct 25 2011 T.C. Hollingsworth <tchollingsworth@gmail.com> 1.0.10-1
|
|
|
7531dd |
- new upstream release
|
|
|
7531dd |
|
|
|
7531dd |
* Mon Aug 22 2011 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.0.6-1
|
|
|
7531dd |
- initial package
|