|
|
2e41df |
%{?scl:%scl_package nodejs-sha}
|
|
|
2e41df |
%{!?scl:%global pkg_name %{name}}
|
|
|
2e41df |
|
|
|
2e41df |
%{?nodejs_find_provides_and_requires}
|
|
|
2e41df |
|
|
|
2e41df |
%global commit 07d43b5ebf7b7ddb83e44b594005097e21e43702
|
|
|
2e41df |
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
|
|
2e41df |
|
|
|
2e41df |
Name: %{?scl_prefix}nodejs-sha
|
|
|
2e41df |
Version: 2.0.1
|
|
|
2e41df |
Release: 3.1%{?dist}
|
|
|
2e41df |
Summary: Check and get file hashes
|
|
|
2e41df |
BuildArch: noarch
|
|
|
2e41df |
ExclusiveArch: %{nodejs_arches} noarch
|
|
|
2e41df |
|
|
|
2e41df |
Group: Development/Libraries
|
|
|
2e41df |
License: BSD or MIT
|
|
|
2e41df |
URL: https://github.com/ForbesLindesay/sha
|
|
|
2e41df |
Source0: http://registry.npmjs.org/sha/-/sha-%{version}.tgz
|
|
|
2e41df |
# the npm tarball doesn't contain the tests, so we grab it from github instead
|
|
|
2e41df |
# oh, and now it seems to be a version behind npm. swell.
|
|
|
2e41df |
Source1: https://github.com/ForbesLindesay/sha/archive/%{commit}/sha-%{version}-%{shortcommit}.tar.gz
|
|
|
2e41df |
BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
2e41df |
|
|
|
2e41df |
BuildRequires: %{?scl_prefix}nodejs-devel
|
|
|
2e41df |
|
|
|
2e41df |
#for tests
|
|
|
2e41df |
#BuildRequires: %{?scl_prefix}npm(mocha)
|
|
|
2e41df |
#BuildRequires: %{?scl_prefix}npm(graceful-fs)
|
|
|
2e41df |
|
|
|
2e41df |
%description
|
|
|
2e41df |
Check and get file hashes using MD5, SHA1, or any other algorithm supported by
|
|
|
2e41df |
OpenSSL.
|
|
|
2e41df |
|
|
|
2e41df |
%prep
|
|
|
2e41df |
%setup -q -n package -a1
|
|
|
2e41df |
|
|
|
2e41df |
#move tests into regular directory
|
|
|
2e41df |
mv sha-%{commit}/test .
|
|
|
2e41df |
rm -rf sha-%{commit}
|
|
|
2e41df |
|
|
|
2e41df |
#fix EOL encodings
|
|
|
2e41df |
sed -i 's/\r//g' README.md
|
|
|
2e41df |
|
|
|
2e41df |
#we don't currently support optionalDependencies properly so make it mandatory
|
|
|
2e41df |
#we don't need this in scl since user install whole collection at once
|
|
|
2e41df |
#%nodejs_fixdep graceful-fs '2'
|
|
|
2e41df |
|
|
|
2e41df |
%build
|
|
|
2e41df |
#nothing to do
|
|
|
2e41df |
|
|
|
2e41df |
%install
|
|
|
2e41df |
rm -rf %buildroot
|
|
|
2e41df |
|
|
|
2e41df |
mkdir -p %{buildroot}%{nodejs_sitelib}/sha
|
|
|
2e41df |
cp -pr index.js package.json %{buildroot}%{nodejs_sitelib}/sha
|
|
|
2e41df |
|
|
|
2e41df |
%nodejs_symlink_deps
|
|
|
2e41df |
|
|
|
2e41df |
%check
|
|
|
2e41df |
#%nodejs_symlink_deps --check
|
|
|
2e41df |
#mocha -R list
|
|
|
2e41df |
|
|
|
2e41df |
%clean
|
|
|
2e41df |
rm -rf %buildroot
|
|
|
2e41df |
|
|
|
2e41df |
%files
|
|
|
2e41df |
%defattr(-,root,root,-)
|
|
|
2e41df |
%{nodejs_sitelib}/sha
|
|
|
2e41df |
%doc README.md LICENSE
|
|
|
2e41df |
|
|
|
2e41df |
%changelog
|
|
|
2e41df |
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 2.0.1-3.1
|
|
|
2e41df |
- rebuilt
|
|
|
2e41df |
|
|
|
2e41df |
* Fri Nov 27 2015 Tomas Hrcka <thrcka@redhat.com> - 2.0.1-2.1
|
|
|
2e41df |
- Rebase to latest upstream
|
|
|
2e41df |
|
|
|
2e41df |
* Fri Nov 08 2013 Tomas Hrcka <thrcka@redhat.com> - 1.2.1-1.1
|
|
|
2e41df |
- Software collections support
|
|
|
2e41df |
|
|
|
2e41df |
* Tue Jul 30 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.2.1-1
|
|
|
2e41df |
- new upstream release 1.2.1
|
|
|
2e41df |
|
|
|
2e41df |
* Fri Jul 12 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.0.1-4
|
|
|
2e41df |
- fix graceful-fs dep
|
|
|
2e41df |
|
|
|
2e41df |
* Sat Jun 22 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.0.1-3
|
|
|
2e41df |
- restrict to compatible arches
|
|
|
2e41df |
|
|
|
2e41df |
* Thu May 30 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.0.1-2
|
|
|
2e41df |
- use github tarball instead so we get tests and LICENSE file
|
|
|
2e41df |
|
|
|
2e41df |
* Thu May 30 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.0.1-1
|
|
|
2e41df |
- initial package
|