%{?nodejs_find_provides_and_requires} Name: nodejs-inherits1 Version: 1.0.0 Release: 10%{?dist} Summary: A tiny simple way to do classic inheritance in JS - legacy version #the license is not included with the tarball so we retrieve it from the #upstream git repository in Source1 License: WTFPL Group: Development/Libraries URL: https://github.com/isaacs/inherits Source0: http://registry.npmjs.org/inherits/-/inherits-%{version}.tgz Source1: https://github.com/isaacs/inherits/blob/112807f2670160b6e3bafdf39e395c10ae7d0fac/LICENSE BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: nodejs-devel %description A tiny simple way to do classic inheritance in JavaScript. This is the legacy version used by many Node.js modules for many years, and is retained for backward compatibility. New modules should use the inheritance functionality available in core Node.js or use the new version of inherits if they need browser support as well. %prep %setup -q -n package #copy the license into %%{_builddir} so it works with %%doc cp -p %{SOURCE1} LICENSE %build #nothing to do %install rm -rf %{buildroot} mkdir -p %{buildroot}%{nodejs_sitelib}/inherits@1 cp -pr inherits.js package.json %{buildroot}%{nodejs_sitelib}/inherits@1 %nodejs_symlink_deps %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %{nodejs_sitelib}/inherits@1 %doc README.md LICENSE %changelog * Fri Jun 07 2013 T.C. Hollingsworth - 1.0.0-10 - include LICENSE file from upstream git * Tue Jun 04 2013 T.C. Hollingsworth - 1.0.0-9 - rename to nodejs-inherits1 * Mon Apr 15 2013 T.C. Hollingsworth - 1.0.0-8 - add macro for EPEL6 dependency generation * Thu Feb 14 2013 Fedora Release Engineering - 1.0.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Tue Jan 08 2013 T.C. Hollingsworth - 1.0.0-6 - add missing build section * Thu Jan 03 2013 T.C. Hollingsworth - 1.0.0-5 - correct license tag (thanks to Robin Lee) * Mon Dec 31 2012 T.C. Hollingsworth - 1.0.0-4 - clean up for submission * Fri Apr 27 2012 T.C. Hollingsworth - 1.0.0-3 - guard Requires for F17 automatic depedency generation * Sat Feb 11 2012 T.C. Hollingsworth - 1.0.0-2 - switch to automatically generated provides/requires * Sat Jan 21 2012 T.C. Hollingsworth - 1.0.0-1 - initial package