diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ddc65d6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/asap-2.0.5.tgz diff --git a/.rh-nodejs6-nodejs-asap.metadata b/.rh-nodejs6-nodejs-asap.metadata new file mode 100644 index 0000000..7d24bcc --- /dev/null +++ b/.rh-nodejs6-nodejs-asap.metadata @@ -0,0 +1 @@ +522765b50c3510490e52d7dcfe085ef9ba96958f SOURCES/asap-2.0.5.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-asap.spec b/SPECS/nodejs-asap.spec new file mode 100644 index 0000000..b9b471d --- /dev/null +++ b/SPECS/nodejs-asap.spec @@ -0,0 +1,75 @@ +%{?scl:%scl_package nodejs-asap} +%{!?scl:%global pkg_name %{name}} + +#tests are not included in the tarball +%global enable_tests 0 + +%{?nodejs_find_provides_and_requires} + +Name: %{?scl_prefix}nodejs-asap +Version: 2.0.5 +Release: 1%{?dist} +Summary: High-priority task queue for Node.js and browser +License: MIT +URL: https://github.com/kriskowal/asap +Source0: http://registry.npmjs.org/asap/-/asap-%{version}.tgz + +BuildArch: noarch +%if 0%{?fedora} >= 19 +ExclusiveArch: %{nodejs_arches} noarch +%else +ExclusiveArch: %{ix86} x86_64 %{arm} noarch +%endif + +BuildRequires: %{?scl_prefix}nodejs + +%description +%{summary}. + +%prep +%setup -q -n package + +%build +#nothing to do + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/asap +cp -pr package.json *.js \ + %{buildroot}%{nodejs_sitelib}/asap + +%nodejs_symlink_deps + +%if 0%{?enable_tests} +%check +%nodejs_symlink_deps --check +#npm run lint +%{?scl:scl enable %{scl} - << \EOF} +%{__nodejs} test/asap-test.js +%{?scl:EOF} +%endif + +%files +%doc LICENSE.md README.md +%{nodejs_sitelib}/asap + +%changelog +* Thu Jan 05 2017 Zuzana Svetlikova - 2.0.5-1 +- Updated with script + +* Tue Sep 06 2016 Zuzana Svetlikova - 2.0.4-1 +- Update, add tests + +* Sun Feb 14 2016 Zuzana Svetlikova - 1.0.0-5 +- rebuilt + +* Thu Nov 26 2015 Tomas Hrcka - 1.0.0-4 +- Enable scl macros + +* Wed Jun 17 2015 Fedora Release Engineering - 1.0.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 1.0.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sun Mar 02 2014 Jamie Nguyen - 1.0.0-1 +- initial package