|
|
6edca3 |
%{?scl:%scl_package nodejs-hawk}
|
|
|
6edca3 |
%{!?scl:%global pkg_name %{name}}
|
|
|
6edca3 |
%{?nodejs_find_provides_and_requires}
|
|
|
6edca3 |
|
|
|
6edca3 |
%global npm_name hawk
|
|
|
6edca3 |
|
|
|
6edca3 |
# this will not create .orig file
|
|
|
6edca3 |
#%global _default_patch_flags --no-backup-if-mismatch
|
|
|
6edca3 |
|
|
|
6edca3 |
Name: %{?scl_prefix}nodejs-hawk
|
|
|
6edca3 |
Version: 3.1.3
|
|
|
ae1db7 |
Release: 4%{?dist}
|
|
|
6edca3 |
Summary: HTTP Hawk authentication scheme
|
|
|
6edca3 |
License: BSD
|
|
|
6edca3 |
URL: https://github.com/hueniverse/hawk
|
|
|
6edca3 |
Source0: https://github.com/hueniverse/hawk/archive/v%{version}.tar.gz
|
|
|
6edca3 |
BuildArch: noarch
|
|
|
ae1db7 |
ExclusiveArch: %{nodejs_arches} noarch
|
|
|
6edca3 |
|
|
|
6edca3 |
BuildRequires: %{?scl_prefix}nodejs-devel
|
|
|
6edca3 |
|
|
|
6edca3 |
Patch1: Deminified-crypto-functions.patch
|
|
|
6edca3 |
|
|
|
6edca3 |
%description
|
|
|
6edca3 |
Hawk is an HTTP authentication scheme using a message authentication code (MAC)
|
|
|
6edca3 |
algorithm to provide partial HTTP request cryptographic verification.
|
|
|
6edca3 |
|
|
|
6edca3 |
%prep
|
|
|
6edca3 |
%setup -q -n %{npm_name}-%{version}
|
|
|
6edca3 |
%patch1 -p1
|
|
|
6edca3 |
#fix perms
|
|
|
6edca3 |
chmod 0644 README.md LICENSE dist/* example/* images/* lib/* *.json
|
|
|
6edca3 |
|
|
|
6edca3 |
%build
|
|
|
6edca3 |
#nothing to do
|
|
|
6edca3 |
|
|
|
6edca3 |
%install
|
|
|
6edca3 |
mkdir -p %{buildroot}%{nodejs_sitelib}/hawk
|
|
|
6edca3 |
cp -pr lib dist package.json component.json %{buildroot}%{nodejs_sitelib}/hawk
|
|
|
6edca3 |
|
|
|
6edca3 |
%nodejs_symlink_deps
|
|
|
6edca3 |
|
|
|
6edca3 |
#Yet Another Unpackaged Test Framework (lab)
|
|
|
6edca3 |
#%%check
|
|
|
6edca3 |
#make test
|
|
|
6edca3 |
|
|
|
6edca3 |
%files
|
|
|
6edca3 |
%{nodejs_sitelib}/hawk
|
|
|
6edca3 |
%doc README.md LICENSE example images
|
|
|
6edca3 |
|
|
|
6edca3 |
%changelog
|
|
|
ae1db7 |
* Mon May 28 2018 Zuzana Svetlikova <zsvetlik@redhat.com> - 3.1.3-4
|
|
|
ae1db7 |
- Resolves: RHBZ#1543198, rebuild for multiarch
|
|
|
ae1db7 |
|
|
|
6edca3 |
* Wed Mar 01 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 3.1.3-3
|
|
|
6edca3 |
- Fix patch
|
|
|
6edca3 |
- Package from GH
|
|
|
6edca3 |
|
|
|
6edca3 |
* Tue Feb 28 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 3.1.3-2
|
|
|
6edca3 |
- Deminify bundled crypto-js (RHBZ#1419660)
|
|
|
6edca3 |
|
|
|
6edca3 |
* Tue Sep 13 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 3.1.3-1
|
|
|
6edca3 |
- Updated with script
|
|
|
6edca3 |
|
|
|
6edca3 |
* Thu Feb 18 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.0-4
|
|
|
6edca3 |
- Add option to not create .orig file
|
|
|
6edca3 |
|
|
|
6edca3 |
* Thu Oct 17 2013 Tomas Hrcka <thrcka@redhat.com> - 1.0.0-2
|
|
|
6edca3 |
- replace provides and requires with macro
|
|
|
6edca3 |
|
|
|
6edca3 |
* Fri Aug 09 2013 Tomas Hrcka <thrcka@redhat.com> - 0.12.1-3
|
|
|
6edca3 |
- added patch to deminify implemented crypto functions
|
|
|
6edca3 |
|
|
|
6edca3 |
* Tue Jul 30 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.0.0-1
|
|
|
6edca3 |
- new upstream release 1.0.0
|
|
|
6edca3 |
|
|
|
6edca3 |
* Sun Jun 23 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.15.0-1
|
|
|
6edca3 |
- new upstream release 0.15.0
|
|
|
6edca3 |
|
|
|
6edca3 |
* Sat Jun 22 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.12.1-3
|
|
|
6edca3 |
- restrict to compatible arches
|
|
|
6edca3 |
|
|
|
6edca3 |
* Mon Apr 15 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.12.1-2
|
|
|
6edca3 |
- add macro for EPEL6 dependency generation
|
|
|
6edca3 |
|
|
|
6edca3 |
* Fri Apr 12 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.1 2.1-2
|
|
|
6edca3 |
- Add support for software collections
|
|
|
6edca3 |
|
|
|
6edca3 |
* Tue Apr 09 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.12.1-1
|
|
|
6edca3 |
- new upstream release 0.12.1
|
|
|
6edca3 |
|
|
|
6edca3 |
* Mon Apr 08 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.11.1-2
|
|
|
6edca3 |
- fix rpmlint warnings
|
|
|
6edca3 |
|
|
|
6edca3 |
* Fri Apr 05 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.11.1-1
|
|
|
6edca3 |
- initial package
|