Blame SPECS/nodejs-debuglog.spec

ec6b0f
%{?scl:%scl_package nodejs-debuglog}
ec6b0f
%{!?scl:%global pkg_name %{name}}
ec6b0f
ec6b0f
# This macro is needed at the start for building on EL6
ec6b0f
%{?nodejs_find_provides_and_requires}
ec6b0f
ec6b0f
ec6b0f
ec6b0f
%global barename debuglog
ec6b0f
ec6b0f
Name:               %{?scl_prefix}nodejs-debuglog
ec6b0f
Version:            1.0.1
ec6b0f
Release:            5%{?dist}
ec6b0f
Summary:            Backport of util.debuglog from node v0.11
ec6b0f
ec6b0f
Group:              Development/Libraries
ec6b0f
License:            MIT
ec6b0f
URL:                https://www.npmjs.org/package/debuglog
ec6b0f
Source0:            http://registry.npmjs.org/%{barename}/-/%{barename}-%{version}.tgz
ec6b0f
BuildArch:          noarch
ec6b0f
%if 0%{?fedora} >= 19
ec6b0f
ExclusiveArch:      %{nodejs_arches} noarch
ec6b0f
%else
ec6b0f
ExclusiveArch:      %{ix86} x86_64 %{arm} noarch
ec6b0f
%endif
ec6b0f
ec6b0f
BuildRequires:      nodejs010-runtime
ec6b0f
%description
ec6b0f
To facilitate using the `util.debuglog()` function that will be available
ec6b0f
when node v0.12 is released now, this is a copy extracted from the source.
ec6b0f
ec6b0f
%prep
ec6b0f
%setup -q -n package
ec6b0f
ec6b0f
# Remove bundled node_modules if there are any..
ec6b0f
rm -rf node_modules/
ec6b0f
ec6b0f
%build
ec6b0f
ec6b0f
%install
ec6b0f
mkdir -p %{buildroot}%{nodejs_sitelib}/debuglog
ec6b0f
cp -pr package.json debuglog.js \
ec6b0f
    %{buildroot}%{nodejs_sitelib}/debuglog
ec6b0f
ec6b0f
%nodejs_symlink_deps
ec6b0f
ec6b0f
%files
ec6b0f
%doc LICENSE README.md
ec6b0f
%{nodejs_sitelib}/debuglog/
ec6b0f
ec6b0f
%changelog
ec6b0f
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.1-5
ec6b0f
- rebuilt
ec6b0f
ec6b0f
* Tue Dec 01 2015 Tomas Hrcka <thrcka@redhat.com> - 1.0.1-4
ec6b0f
- Enable scl macros
ec6b0f
ec6b0f
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-2
ec6b0f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
ec6b0f
ec6b0f
* Tue Jul 22 2014 Ralph Bean <rbean@redhat.com> - 1.0.1-1
ec6b0f
- Initial packaging for Fedora.