Blame SPECS/nodejs-sha.spec

cdf0f6
%{?scl:%scl_package nodejs-sha}
cdf0f6
%{!?scl:%global pkg_name %{name}}
cdf0f6
cdf0f6
%{?nodejs_find_provides_and_requires}
cdf0f6
cdf0f6
Name:           %{?scl_prefix}nodejs-sha
cdf0f6
Version:        2.0.1
cdf0f6
Release:        3.1%{?dist}
cdf0f6
Summary:        Check and get file hashes
cdf0f6
BuildArch:      noarch
cdf0f6
ExclusiveArch: %{nodejs_arches} noarch
cdf0f6
cdf0f6
License:        BSD or MIT
cdf0f6
URL:            https://github.com/ForbesLindesay/sha
cdf0f6
Source0:        http://registry.npmjs.org/sha/-/sha-%{version}.tgz
cdf0f6
BuildRequires:  %{?scl_prefix}nodejs-devel
cdf0f6
cdf0f6
%description
cdf0f6
Check and get file hashes using MD5, SHA1, or any other algorithm supported by
cdf0f6
OpenSSL.
cdf0f6
cdf0f6
%prep
cdf0f6
%setup -q -n package
cdf0f6
cdf0f6
#move tests into regular directory
cdf0f6
#mv sha-%{commit}/test .
cdf0f6
#rm -rf sha-%{commit}
cdf0f6
cdf0f6
#fix EOL encodings
cdf0f6
sed -i 's/\r//g' README.md
cdf0f6
cdf0f6
%build
cdf0f6
#nothing to do
cdf0f6
cdf0f6
%install
cdf0f6
cdf0f6
mkdir -p %{buildroot}%{nodejs_sitelib}/sha
cdf0f6
cp -pr index.js package.json %{buildroot}%{nodejs_sitelib}/sha
cdf0f6
cdf0f6
%nodejs_symlink_deps
cdf0f6
cdf0f6
#%check
cdf0f6
#%nodejs_symlink_deps --check
cdf0f6
#mocha -R list
cdf0f6
cdf0f6
cdf0f6
%files
cdf0f6
%{nodejs_sitelib}/sha
cdf0f6
%doc README.md LICENSE
cdf0f6
cdf0f6
%changelog
cdf0f6
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 2.0.1-3.1
cdf0f6
- rebuilt
cdf0f6
cdf0f6
* Fri Nov 27 2015 Tomas Hrcka <thrcka@redhat.com> - 2.0.1-2.1
cdf0f6
- Rebase to latest upstream
cdf0f6
cdf0f6
* Fri Nov 08 2013 Tomas Hrcka <thrcka@redhat.com> - 1.2.1-1.1
cdf0f6
- Software collections support
cdf0f6
cdf0f6
* Tue Jul 30 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.2.1-1
cdf0f6
- new upstream release 1.2.1
cdf0f6
cdf0f6
* Fri Jul 12 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.0.1-4
cdf0f6
- fix graceful-fs dep
cdf0f6
cdf0f6
* Sat Jun 22 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.0.1-3
cdf0f6
- restrict to compatible arches
cdf0f6
cdf0f6
* Thu May 30 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.0.1-2
cdf0f6
- use github tarball instead so we get tests and LICENSE file
cdf0f6
cdf0f6
* Thu May 30 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.0.1-1
cdf0f6
- initial package