diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..344e89b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/debuglog-1.0.1.tgz diff --git a/.nodejs010-nodejs-debuglog.metadata b/.nodejs010-nodejs-debuglog.metadata new file mode 100644 index 0000000..713e095 --- /dev/null +++ b/.nodejs010-nodejs-debuglog.metadata @@ -0,0 +1 @@ +aa24ffb9ac3df9a2351837cfb2d279360cd78492 SOURCES/debuglog-1.0.1.tgz diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SPECS/nodejs-debuglog.spec b/SPECS/nodejs-debuglog.spec new file mode 100644 index 0000000..9042327 --- /dev/null +++ b/SPECS/nodejs-debuglog.spec @@ -0,0 +1,59 @@ +%{?scl:%scl_package nodejs-debuglog} +%{!?scl:%global pkg_name %{name}} + +# This macro is needed at the start for building on EL6 +%{?nodejs_find_provides_and_requires} + + + +%global barename debuglog + +Name: %{?scl_prefix}nodejs-debuglog +Version: 1.0.1 +Release: 4%{?dist} +Summary: Backport of util.debuglog from node v0.11 + +Group: Development/Libraries +License: MIT +URL: https://www.npmjs.org/package/debuglog +Source0: http://registry.npmjs.org/%{barename}/-/%{barename}-%{version}.tgz +BuildArch: noarch +%if 0%{?fedora} >= 19 +ExclusiveArch: %{nodejs_arches} noarch +%else +ExclusiveArch: %{ix86} x86_64 %{arm} noarch +%endif + +BuildRequires: nodejs010-runtime +%description +To facilitate using the `util.debuglog()` function that will be available +when node v0.12 is released now, this is a copy extracted from the source. + +%prep +%setup -q -n package + +# Remove bundled node_modules if there are any.. +rm -rf node_modules/ + +%build + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/debuglog +cp -pr package.json debuglog.js \ + %{buildroot}%{nodejs_sitelib}/debuglog + +%nodejs_symlink_deps + +%files +%doc LICENSE README.md +%{nodejs_sitelib}/debuglog/ + +%changelog +* Tue Dec 01 2015 Tomas Hrcka - 1.0.1-4 +- Enable scl macros + +* Wed Jun 17 2015 Fedora Release Engineering - 1.0.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Tue Jul 22 2014 Ralph Bean - 1.0.1-1 +- Initial packaging for Fedora.