diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0ec678f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/async-0.2.9.tgz diff --git a/.nodejs010-nodejs-async.metadata b/.nodejs010-nodejs-async.metadata new file mode 100644 index 0000000..27d1ca5 --- /dev/null +++ b/.nodejs010-nodejs-async.metadata @@ -0,0 +1 @@ +df63060fbf3d33286a76aaf6d55a2986d9ff8619 SOURCES/async-0.2.9.tgz diff --git a/README.md b/README.md deleted file mode 100644 index ce46a88..0000000 --- a/README.md +++ /dev/null @@ -1,5 +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/SOURCES/dl-tests.sh b/SOURCES/dl-tests.sh new file mode 100755 index 0000000..0720366 --- /dev/null +++ b/SOURCES/dl-tests.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +tag=v0.2.5 + +set -e + +tmp=$(mktemp -d) + +trap cleanup EXIT +cleanup() { + set +e + [ -z "$tmp" -o ! -d "$tmp" ] || rm -rf "$tmp" +} + +unset CDPATH +pwd=$(pwd) + +pushd "$tmp" +git clone https://github.com/caolan/async.git +cd async +git archive --prefix="test/" --format=tar tags/${tag}:test/ \ + | bzip2 > "$pwd"/tests-${tag}.tar.bz2 +popd diff --git a/SPECS/nodejs-async.spec b/SPECS/nodejs-async.spec new file mode 100644 index 0000000..a769519 --- /dev/null +++ b/SPECS/nodejs-async.spec @@ -0,0 +1,103 @@ +%{?scl:%scl_package nodejs-async} +%{!?scl:%global pkg_name %{name}} +%{?nodejs_find_provides_and_requires} + +%global enable_tests 0 + +Name: %{?scl_prefix}nodejs-async +Version: 0.2.9 +Release: 3%{?dist} +Summary: Higher-order functions and common patterns for asynchronous code +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch + +Group: System Environment/Libraries +License: MIT +URL: http://github.com/caolan/async/ +Source0: http://registry.npmjs.org/async/-/async-%{version}.tgz +# Source1 is generated by running Source10, which pulls from the upstream +# revision control repository. +#Source1: tests-v0.2.5.tar.bz2 +Source10: dl-tests.sh +BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: %{?scl_prefix}nodejs-devel + +#%if 0%{?enable_tests} +#BuildRequires: npm(nodeunit) +#%endif + +%description +Async is a utility module which provides straight-forward, powerful functions +for working with asynchronous JavaScript. Although originally designed for +use with Node.js, it can also be used directly in the browser. + +Async provides around 20 functions that include the usual 'functional' +suspects (map, reduce, filter, forEach…) as well as some common patterns +for asynchronous control flow (parallel, series, waterfall…). All these +functions assume you follow the Node.js convention of providing a single +callback as the last argument of your async function. + +%prep +%setup -q -n package +#%setup -q -T -D -a 1 -n package + +%build +#nothing to do + +%install +rm -rf %buildroot +mkdir -p %{buildroot}%{nodejs_sitelib}/async +cp -pr package.json lib %{buildroot}%{nodejs_sitelib}/async + +#%if 0%{?enable_tests} +#%check +#%{nodejs_sitelib}/nodeunit/bin/nodeunit test/test-async.js +#%endif + +%clean +rm -rf %buildroot + +%files +%defattr(-,root,root,-) +%{nodejs_sitelib}/async +%doc README.md LICENSE + +%changelog +* Thu Oct 17 2013 Tomas Hrcka - 0.2.9-3 +- replace provides and requires with macro + +* Sun Jun 23 2013 T.C. Hollingsworth - 0.2.9-2 +- restrict to compatible arches + +* Tue May 28 2013 Jamie Nguyen - 0.2.9-1 +- update to upstream release 0.2.9 +- add %%check + +* Sat May 25 2013 Jamie Nguyen - 0.2.8-1 +- update to upstream release 0.2.8 + +* Mon Apr 15 2013 T.C. Hollingsworth - 0.2.6-2 +- add macro for EPEL6 dependency generation + +* Thu Apr 11 2013 Stanislav Ochotnicky - 0.2.6-2 +- Add support for software collections + +* Wed Mar 13 2013 T.C. Hollingsworth - 0.2.6-1 +- new upstream release 0.2.6 + +* Wed Feb 13 2013 T.C. Hollingsworth - 0.2.5-1 +- new upstream release 0.2.5 + +* Sat Feb 09 2013 T.C. Hollingsworth - 0.2.4-1 +- new upstream release 0.2.4 + +* Tue Jan 08 2013 T.C. Hollingsworth - 0.1.22-3 +- add missing build section + +* Tue Jan 08 2013 T.C. Hollingsworth - 0.1.22-2 +- Fix URL +- Provide a better description + +* Mon Dec 31 2012 T.C. Hollingsworth - 0.1.22-1 +- initial package generated by npm2rpm