From 025fe2eefcf9f8cb827b284f3aa7772aa3f2d0be Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Jun 09 2014 08:34:35 +0000 Subject: import nodejs010-nodejs-sha-1.2.1-1.1.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2a9b43b --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +SOURCES/nodejs-sha-1.2.1-253e2df.tar.gz +SOURCES/sha-1.2.1.tgz diff --git a/.nodejs010-nodejs-sha.metadata b/.nodejs010-nodejs-sha.metadata new file mode 100644 index 0000000..ee367be --- /dev/null +++ b/.nodejs010-nodejs-sha.metadata @@ -0,0 +1,2 @@ +45aae4238f39678ff71b67b3e8ca1bd11dbd89f4 SOURCES/nodejs-sha-1.2.1-253e2df.tar.gz +30bd5f770852fa6ac2b110ab3698fd4840f7f1cd SOURCES/sha-1.2.1.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/SPECS/nodejs-sha.spec b/SPECS/nodejs-sha.spec new file mode 100644 index 0000000..4978450 --- /dev/null +++ b/SPECS/nodejs-sha.spec @@ -0,0 +1,89 @@ +%{?scl:%scl_package nodejs-sha} +%{!?scl:%global pkg_name %{name}} + +%{?nodejs_find_provides_and_requires} + +%global commit 253e2df0d783453c4892d4bc32b8aec5a5a708e6 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) + +Name: %{?scl_prefix}nodejs-sha +Version: 1.2.1 +Release: 1.1%{?dist} +Summary: Check and get file hashes +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch + +Group: Development/Libraries +License: BSD or MIT +URL: https://github.com/ForbesLindesay/sha +Source0: http://registry.npmjs.org/sha/-/sha-%{version}.tgz +# the npm tarball doesn't contain the tests, so we grab it from github instead +# oh, and now it seems to be a version behind npm. swell. +Source1: https://github.com/ForbesLindesay/sha/archive/%{commit}/%{pkg_name}-%{version}-%{shortcommit}.tar.gz +BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: %{?scl_prefix}nodejs-devel + +#for tests +#BuildRequires: %{?scl_prefix}npm(mocha) +#BuildRequires: %{?scl_prefix}npm(graceful-fs) + +%description +Check and get file hashes using MD5, SHA1, or any other algorithm supported by +OpenSSL. + +%prep +%setup -q -n package -a1 + +#move tests into regular directory +mv sha-%{commit}/test . +rm -rf sha-%{commit} + +#fix EOL encodings +sed -i 's/\r//g' README.md + +#we don't currently support optionalDependencies properly so make it mandatory +#we don't need this in scl since user install whole collection at once +#%nodejs_fixdep graceful-fs '2' + +%build +#nothing to do + +%install +rm -rf %buildroot + +mkdir -p %{buildroot}%{nodejs_sitelib}/sha +cp -pr index.js package.json %{buildroot}%{nodejs_sitelib}/sha + +%nodejs_symlink_deps + +%check +#%nodejs_symlink_deps --check +#mocha -R list + +%clean +rm -rf %buildroot + +%files +%defattr(-,root,root,-) +%{nodejs_sitelib}/sha +%doc README.md LICENSE + +%changelog +* Fri Nov 08 2013 Tomas Hrcka - 1.2.1-1.1 +- Software collections support + +* Tue Jul 30 2013 T.C. Hollingsworth - 1.2.1-1 +- new upstream release 1.2.1 + +* Fri Jul 12 2013 T.C. Hollingsworth - 1.0.1-4 +- fix graceful-fs dep + +* Sat Jun 22 2013 T.C. Hollingsworth - 1.0.1-3 +- restrict to compatible arches + +* Thu May 30 2013 T.C. Hollingsworth - 1.0.1-2 +- use github tarball instead so we get tests and LICENSE file + +* Thu May 30 2013 T.C. Hollingsworth - 1.0.1-1 +- initial package