T.C. Hollingsworth de167da
%{?nodejs_find_provides_and_requires}
T.C. Hollingsworth 1fef975
T.C. Hollingsworth aa354fc
Name:       nodejs-hawk
T.C. Hollingsworth cff90c9
Version:    1.0.0
47123fd
Release:    3%{?dist}
T.C. Hollingsworth aa354fc
Summary:    HTTP Hawk authentication scheme
T.C. Hollingsworth aa354fc
License:    BSD
T.C. Hollingsworth aa354fc
Group:      Development/Libraries
T.C. Hollingsworth aa354fc
URL:        https://github.com/hueniverse/hawk
T.C. Hollingsworth aa354fc
Source0:    http://registry.npmjs.org/hawk/-/hawk-%{version}.tgz
T.C. Hollingsworth aa354fc
BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
T.C. Hollingsworth aa354fc
BuildArch:  noarch
T.C. Hollingsworth e4500b9
ExclusiveArch: %{nodejs_arches} noarch
T.C. Hollingsworth aa354fc
T.C. Hollingsworth aa354fc
BuildRequires:  nodejs-devel
T.C. Hollingsworth aa354fc
T.C. Hollingsworth aa354fc
%description
T.C. Hollingsworth aa354fc
Hawk is an HTTP authentication scheme using a message authentication code (MAC)
T.C. Hollingsworth aa354fc
algorithm to provide partial HTTP request cryptographic verification.
T.C. Hollingsworth aa354fc
T.C. Hollingsworth aa354fc
%prep
T.C. Hollingsworth aa354fc
%setup -q -n package
T.C. Hollingsworth aa354fc
T.C. Hollingsworth aa354fc
#fix perms
T.C. Hollingsworth aa354fc
chmod 0644 README.md LICENSE example/* images/* lib/* index.js package.json
T.C. Hollingsworth aa354fc
T.C. Hollingsworth aa354fc
%build
T.C. Hollingsworth aa354fc
#nothing to do
T.C. Hollingsworth aa354fc
T.C. Hollingsworth aa354fc
%install
T.C. Hollingsworth aa354fc
rm -rf %{buildroot}
T.C. Hollingsworth aa354fc
T.C. Hollingsworth aa354fc
mkdir -p %{buildroot}%{nodejs_sitelib}/hawk
T.C. Hollingsworth aa354fc
cp -pr lib index.js package.json %{buildroot}%{nodejs_sitelib}/hawk
T.C. Hollingsworth aa354fc
T.C. Hollingsworth aa354fc
%nodejs_symlink_deps
T.C. Hollingsworth aa354fc
T.C. Hollingsworth aa354fc
#Yet Another Unpackaged Test Framework (lab)
T.C. Hollingsworth aa354fc
#%%check
T.C. Hollingsworth aa354fc
#make test
T.C. Hollingsworth aa354fc
T.C. Hollingsworth aa354fc
%clean
T.C. Hollingsworth aa354fc
rm -rf %{buildroot}
T.C. Hollingsworth aa354fc
T.C. Hollingsworth aa354fc
%files
T.C. Hollingsworth aa354fc
%defattr(-,root,root,-)
T.C. Hollingsworth aa354fc
%{nodejs_sitelib}/hawk
T.C. Hollingsworth aa354fc
%doc README.md LICENSE example images
T.C. Hollingsworth aa354fc
T.C. Hollingsworth aa354fc
%changelog
47123fd
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-3
47123fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
47123fd
43fbb3c
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-2
43fbb3c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
43fbb3c
T.C. Hollingsworth cff90c9
* Tue Jul 30 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.0.0-1
T.C. Hollingsworth cff90c9
- new upstream release 1.0.0
T.C. Hollingsworth cff90c9
T.C. Hollingsworth c592ac1
* Sun Jun 23 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.15.0-1
T.C. Hollingsworth c592ac1
- new upstream release 0.15.0
T.C. Hollingsworth c592ac1
T.C. Hollingsworth e4500b9
* Sat Jun 22 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.12.1-3
T.C. Hollingsworth e4500b9
- restrict to compatible arches
T.C. Hollingsworth e4500b9
T.C. Hollingsworth 1fef975
* Mon Apr 15 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.12.1-2
T.C. Hollingsworth 1fef975
- add macro for EPEL6 dependency generation
T.C. Hollingsworth 1fef975
T.C. Hollingsworth aa354fc
* Tue Apr 09 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.12.1-1
T.C. Hollingsworth aa354fc
- new upstream release 0.12.1
T.C. Hollingsworth aa354fc
T.C. Hollingsworth aa354fc
* Mon Apr 08 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.11.1-2
T.C. Hollingsworth aa354fc
- fix rpmlint warnings
T.C. Hollingsworth aa354fc
T.C. Hollingsworth aa354fc
* Fri Apr 05 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.11.1-1
T.C. Hollingsworth aa354fc
- initial package