diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..45743df --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/nopt-3.0.6.tgz diff --git a/.rh-nodejs4-nodejs-nopt.metadata b/.rh-nodejs4-nodejs-nopt.metadata new file mode 100644 index 0000000..721f510 --- /dev/null +++ b/.rh-nodejs4-nodejs-nopt.metadata @@ -0,0 +1 @@ +c6465dbf08abcd4db359317f79ac68a646b28ff9 SOURCES/nopt-3.0.6.tgz diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SPECS/nodejs-nopt.spec b/SPECS/nodejs-nopt.spec new file mode 100644 index 0000000..9dbc5ee --- /dev/null +++ b/SPECS/nodejs-nopt.spec @@ -0,0 +1,99 @@ +%{?scl:%scl_package nodejs-nopt} +%{!?scl:%global pkg_name %{name}} +%{?nodejs_find_provides_and_requires} + +Name: %{?scl_prefix}nodejs-nopt +Version: 3.0.6 +Release: 2%{?dist} +Summary: Node.js option parsing +License: MIT +Group: System Environment/Libraries +URL: https://github.com/isaacs/nopt +Source0: http://registry.npmjs.org/nopt/-/nopt-%{version}.tgz +BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch + +BuildRequires: %{?scl_prefix}nodejs-devel + +%description +An option parsing library for Node.js and its package manager (npm). + +%prep +%setup -q -n package + +%build +#nothing to do + +%install +rm -rf %{buildroot} + +mkdir -p %{buildroot}%{nodejs_sitelib}/nopt +cp -pr bin lib package.json %{buildroot}%{nodejs_sitelib}/nopt + +mkdir -p %{buildroot}%{_bindir} +ln -sf ../lib/node_modules/nopt/bin/nopt.js %{buildroot}%{_bindir}/nopt + +%nodejs_symlink_deps + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%{nodejs_sitelib}/nopt +%{_bindir}/nopt +%doc README.md LICENSE examples + +%changelog +* Sun Feb 14 2016 Zuzana Svetlikova - 3.0.6-2 +- rebuilt + +* Mon Nov 30 2015 Tomas Hrcka - 3.0.6-1 +- New upstream release + +* Fri Jan 09 2015 Tomas Hrcka - 3.0.1-3 +- New upstream release 3.0.1 + +* Thu Oct 17 2013 Tomas Hrcka - 2.1.2-2 +- replace provides and requires with macro + +* Tue Jul 30 2013 T.C. Hollingsworth - 2.1.2-1 +- new upstream release 2.1.2 + +* Sat Jun 22 2013 T.C. Hollingsworth - 2.1.1-3 +- restrict to compatible arches + +* Mon Apr 15 2013 T.C. Hollingsworth - 2.1.1-2 +- add macro for EPEL6 dependency generation + +* Fri Apr 12 2013 Stanislav Ochotnicky - 2.1.1-2 +- Add support for software collections + +* Sat Feb 09 2013 T.C. Hollingsworth - 2.1.1-1 +- new upstream release 2.1.1 + +* Sun Jan 13 2013 T.C. Hollingsworth - 2.0.0-3 +- fix symlink to nopt script + +* Tue Jan 08 2013 T.C. Hollingsworth - 2.0.0-2 +- add missing build section + +* Mon Dec 31 2012 T.C. Hollingsworth - 2.0.0-1 +- new upstream release 2.0.0 +- clean up for submission + +* Fri Apr 27 2012 T.C. Hollingsworth - 1.0.10-4 +- bring in line with newer module packaging standards + +* Fri Apr 27 2012 T.C. Hollingsworth - 1.0.10-3 +- guard Requires for F17 automatic depedency generation + +* Sun Dec 18 2011 T.C. Hollingsworth - 1.0.10-2 +- add Group to make EL5 happy + +* Tue Oct 25 2011 T.C. Hollingsworth 1.0.10-1 +- new upstream release + +* Mon Aug 22 2011 T.C. Hollingsworth - 1.0.6-1 +- initial package