Blame SPECS/nodejs-debuglog.spec

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