From 2e41df4542fbd99456c82cb64a86e56b7a3d5077 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: May 31 2016 09:06:01 +0000 Subject: import rh-nodejs4-nodejs-sha-2.0.1-3.1.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..33fcef9 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +SOURCES/sha-2.0.1-07d43b5.tar.gz +SOURCES/sha-2.0.1.tgz diff --git a/.rh-nodejs4-nodejs-sha.metadata b/.rh-nodejs4-nodejs-sha.metadata new file mode 100644 index 0000000..fa92b16 --- /dev/null +++ b/.rh-nodejs4-nodejs-sha.metadata @@ -0,0 +1,2 @@ +647724578cb594a1aadab657d54d8969c617d2d3 SOURCES/sha-2.0.1-07d43b5.tar.gz +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..8bbbe42 --- /dev/null +++ b/SPECS/nodejs-sha.spec @@ -0,0 +1,95 @@ +%{?scl:%scl_package nodejs-sha} +%{!?scl:%global pkg_name %{name}} + +%{?nodejs_find_provides_and_requires} + +%global commit 07d43b5ebf7b7ddb83e44b594005097e21e43702 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) + +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 + +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}/sha-%{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 +* 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