Blame SPECS/nodejs-http-signature.spec

a4cff9
%{?scl:%scl_package nodejs-http-signature}
a4cff9
%{!?scl:%global pkg_name %{name}}
a4cff9
a4cff9
%{?nodejs_find_provides_and_requires}
a4cff9
a4cff9
%global commit 8881c4a806604deabe958f37e51672a65ef150fe
a4cff9
%global shortcommit %(c=%{commit}; echo ${c:0:7})
a4cff9
a4cff9
Name:           %{?scl_prefix}nodejs-http-signature
a4cff9
Version:        0.10.0
a4cff9
Release:        5.1%{?dist}
a4cff9
Summary:        Reference implementation of Joyent's HTTP Signature Scheme
a4cff9
BuildArch:      noarch
a4cff9
ExclusiveArch: %{nodejs_arches} noarch
a4cff9
a4cff9
Group:          System Environment/Libraries
a4cff9
License:        MIT
a4cff9
URL:            https://github.com/joyent/node-http-signature
a4cff9
Source0:        http://registry.npmjs.org/http-signature/-/http-signature-%{version}.tgz
a4cff9
#grab the tests from github
a4cff9
Source1:        https://github.com/joyent/node-http-signature/archive/%{commit}/%{pkg_name}-%{version}-%{shortcommit}.tar.gz
a4cff9
BuildRoot:      %{_tmppath}/%{pkg_name}-%{version}-%{release}-root-%(%{__id_u} -n)
a4cff9
a4cff9
BuildRequires:  %{?scl_prefix}nodejs-devel
a4cff9
a4cff9
#for tests
a4cff9
#BuildRequires:  %{?scl_prefix}npm(tap)
a4cff9
#BuildRequires:  %{?scl_prefix}npm(node-uuid)
a4cff9
#BuildRequires:  %{?scl_prefix}npm(assert-plus)
a4cff9
#BuildRequires:  %{?scl_prefix}npm(asn1)
a4cff9
#BuildRequires:  %{?scl_prefix}npm(ctype)
a4cff9
a4cff9
%description
a4cff9
nodejs-http-signature is a node.js library that has client and server components 
a4cff9
for Joyent's HTTP Signature Scheme.
a4cff9
a4cff9
%prep
a4cff9
%setup -q -n package -a1
a4cff9
a4cff9
%nodejs_fixdep assert-plus '~0.1.2'
a4cff9
%nodejs_fixdep ctype '~0.5.3'
a4cff9
%nodejs_fixdep asn1 '~0.1.11'
a4cff9
a4cff9
#move tests into regular directory
a4cff9
#mv node-http-signature-%{commit}/test .
a4cff9
#rm -rf node-http-signature-%{commit}
a4cff9
a4cff9
%build
a4cff9
#nothing to do
a4cff9
a4cff9
%install
a4cff9
rm -rf %buildroot
a4cff9
a4cff9
mkdir -p %{buildroot}%{nodejs_sitelib}/http-signature
a4cff9
cp -pr package.json lib %{buildroot}%{nodejs_sitelib}/http-signature
a4cff9
a4cff9
%nodejs_symlink_deps
a4cff9
a4cff9
#%check
a4cff9
#%nodejs_symlink_deps --check
a4cff9
#%tap test/*.js
a4cff9
a4cff9
%clean
a4cff9
rm -rf %buildroot
a4cff9
a4cff9
%files
a4cff9
%defattr(-,root,root,-)
a4cff9
%{nodejs_sitelib}/http-signature
a4cff9
%doc LICENSE README.md http_signing.md
a4cff9
a4cff9
%changelog
a4cff9
* Wed Jan 08 2014 Tomas Hrcka <thrcka@redhat.com> - 0.10.0-5.1
a4cff9
- fix dependencies resolution
a4cff9
a4cff9
* Fri Nov 08 2013 Tomas Hrcka <thrcka@redhat.com> - 0.10.0-5
a4cff9
- Software collection support
a4cff9
a4cff9
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.0-4
a4cff9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
a4cff9
a4cff9
* Sun Jun 23 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.0-3
a4cff9
- restrict to compatible arches
a4cff9
a4cff9
* Fri Jun 21 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.0-2
a4cff9
- grab tests from GitHub
a4cff9
- relax dependency on npm(asn1)
a4cff9
a4cff9
* Thu Jun 13 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.0-1
a4cff9
- initial package