Blame SPECS/nodejs-hoek.spec

205fef
%{?scl:%scl_package nodejs-hoek}
205fef
%{!?scl:%global pkg_name %{name}}
205fef
%{?nodejs_find_provides_and_requires}
205fef
205fef
Name:       %{?scl_prefix}nodejs-hoek
205fef
Version:    0.9.1
205fef
Release:    3%{?dist}
205fef
Summary:    General purpose Node.js utilities
205fef
License:    BSD
205fef
Group:      Development/Libraries
205fef
URL:        https://github.com/spumko/hoek
205fef
Source0:    http://registry.npmjs.org/hoek/-/hoek-%{version}.tgz
205fef
BuildRoot:  %{_tmppath}/%{pkg_name}-%{version}-%{release}-root-%(%{__id_u} -n)
205fef
BuildArch:  noarch
205fef
ExclusiveArch: %{nodejs_arches} noarch
205fef
205fef
BuildRequires:  %{?scl_prefix}nodejs-devel
205fef
205fef
%description
205fef
This package contains some general purpose Node.js utilities, including
205fef
utilities for working with objects, timers, binary encoding/decoding, escaping
205fef
characters, errors, and loading files.
205fef
205fef
%prep
205fef
%setup -q -n package
205fef
205fef
#fix perms
205fef
chmod 0644 README.md LICENSE images/* lib/* index.js package.json
205fef
205fef
%build
205fef
#nothing to do
205fef
205fef
%install
205fef
rm -rf %{buildroot}
205fef
205fef
mkdir -p %{buildroot}%{nodejs_sitelib}/hoek
205fef
cp -pr lib index.js package.json %{buildroot}%{nodejs_sitelib}/hoek
205fef
205fef
%nodejs_symlink_deps
205fef
205fef
#Yet Another Unpackaged Test Framework (lab)
205fef
#%%check
205fef
#make test
205fef
205fef
%clean
205fef
rm -rf %{buildroot}
205fef
205fef
%files
205fef
%defattr(-,root,root,-)
205fef
%{nodejs_sitelib}/hoek
205fef
%doc README.md LICENSE images
205fef
205fef
%changelog
205fef
* Thu Oct 17 2013 Tomas Hrcka <thrcka@redhat.com> - 0.9.1-3
205fef
- replace provides and requires with macro
205fef
205fef
205fef
* Sun Jun 23 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.9.1-1
205fef
- new upstream release 0.9.1
205fef
205fef
* Sat Jun 22 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.8.1-3
205fef
- restrict to compatible arches
205fef
205fef
* Mon Apr 15 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.8.1-2
205fef
- add macro for EPEL6 dependency generation
205fef
205fef
* Fri Apr 12 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.8.1-2
205fef
- Add support for software collections
205fef
205fef
* Fri Apr 05 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.8.1-1
205fef
- initial package