From cdf0f647058d5700a0ff86365c6fb0b55b203e33 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Apr 26 2017 09:51:04 +0000 Subject: import rh-nodejs6-nodejs-sha-2.0.1-3.1.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a66be57 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/sha-2.0.1.tgz diff --git a/.rh-nodejs6-nodejs-sha.metadata b/.rh-nodejs6-nodejs-sha.metadata new file mode 100644 index 0000000..efb6dfc --- /dev/null +++ b/.rh-nodejs6-nodejs-sha.metadata @@ -0,0 +1 @@ +6030822fbd2c9823949f8f72ed6411ee5cf25aae SOURCES/sha-2.0.1.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-sha.spec b/SPECS/nodejs-sha.spec new file mode 100644 index 0000000..2cb4d91 --- /dev/null +++ b/SPECS/nodejs-sha.spec @@ -0,0 +1,74 @@ +%{?scl:%scl_package nodejs-sha} +%{!?scl:%global pkg_name %{name}} + +%{?nodejs_find_provides_and_requires} + +Name: %{?scl_prefix}nodejs-sha +Version: 2.0.1 +Release: 3.1%{?dist} +Summary: Check and get file hashes +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch + +License: BSD or MIT +URL: https://github.com/ForbesLindesay/sha +Source0: http://registry.npmjs.org/sha/-/sha-%{version}.tgz +BuildRequires: %{?scl_prefix}nodejs-devel + +%description +Check and get file hashes using MD5, SHA1, or any other algorithm supported by +OpenSSL. + +%prep +%setup -q -n package + +#move tests into regular directory +#mv sha-%{commit}/test . +#rm -rf sha-%{commit} + +#fix EOL encodings +sed -i 's/\r//g' README.md + +%build +#nothing to do + +%install + +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 + + +%files +%{nodejs_sitelib}/sha +%doc README.md LICENSE + +%changelog +* Sun Feb 14 2016 Zuzana Svetlikova - 2.0.1-3.1 +- rebuilt + +* Fri Nov 27 2015 Tomas Hrcka - 2.0.1-2.1 +- Rebase to latest upstream + +* 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