From 095068301b1b513568cb5dc0dfcdab54daabe528 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: May 31 2016 08:27:01 +0000 Subject: import rh-nodejs4-nodejs-inherits-2.0.0-15.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7d28ec7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/inherits-2.0.0.tgz diff --git a/.rh-nodejs4-nodejs-inherits.metadata b/.rh-nodejs4-nodejs-inherits.metadata new file mode 100644 index 0000000..47e2054 --- /dev/null +++ b/.rh-nodejs4-nodejs-inherits.metadata @@ -0,0 +1 @@ +76c81b3b1c10ddee3a60bf2c247162bc369f8ba8 SOURCES/inherits-2.0.0.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/SOURCES/LICENSE b/SOURCES/LICENSE new file mode 100644 index 0000000..5a8e332 --- /dev/null +++ b/SOURCES/LICENSE @@ -0,0 +1,14 @@ + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + Version 2, December 2004 + + Copyright (C) 2004 Sam Hocevar + + Everyone is permitted to copy and distribute verbatim or modified + copies of this license document, and changing it is allowed as long + as the name is changed. + + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. You just DO WHAT THE FUCK YOU WANT TO. + diff --git a/SPECS/nodejs-inherits.spec b/SPECS/nodejs-inherits.spec new file mode 100644 index 0000000..e3bbd31 --- /dev/null +++ b/SPECS/nodejs-inherits.spec @@ -0,0 +1,162 @@ +%{?scl:%scl_package nodejs-inherits} +%{!?scl:%global pkg_name %{name}} +%{?nodejs_find_provides_and_requires} + +Name: %{?scl_prefix}nodejs-inherits +Version: 2.0.0 +Release: 15%{?dist} +Summary: A tiny simple way to do classic inheritance in js +License: WTFPL +Group: Development/Libraries +URL: https://github.com/isaacs/inherits +Source0: http://registry.npmjs.org/inherits/-/inherits-%{version}.tgz +Source1: https://raw.github.com/isaacs/inherits/112807f2670160b6e3bafdf39e395c10ae7d0fac/LICENSE +BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch + +BuildRequires: %{?scl_prefix}nodejs-devel + +%description +%{summary}. + +%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 +cp -pr inherits.js package.json %{buildroot}%{nodejs_sitelib}/inherits + +%nodejs_symlink_deps + +ln -sf inherits %{buildroot}%{nodejs_sitelib}/inherits@2 + +%clean +rm -rf %{buildroot} + +# there have been reports that the symlinks are messed up when upgrading +# from older versions, so let's make sure everything's copacetic +%triggerun -- nodejs-inherits < 2.0.0-4 +ln -sf inherits@2 %{nodejs_sitelib}/inherits +%{__python} < +#if posix.stat("%{nodejs_sitelib}/inherits", "type") == "directory" then +# os.rename('%{nodejs_sitelib}/inherits', '%{nodejs_sitelib}/inherits@2') +#end + +%files +%defattr(-,root,root,-) +%{nodejs_sitelib}/inherits@2 +%{nodejs_sitelib}/inherits +%doc README.md LICENSE + +%changelog +* Sun Feb 14 2016 Zuzana Svetlikova - 2.0.0-15 +- rebuilt + +* Sat Feb 13 2016 Zuzana Svetlikova - 2.0.0-14 +- rebuilt + +* Tue Feb 09 2016 Tomas Hrcka - 2.0.0-13 +- Fix simlink issues + +* Fri Oct 23 2015 Zuzana Svetlikova - 2.0.0-10 +- Rebuilt + +* Thu Oct 15 2015 Zuzana Svetlikova - 2.0.0-9 +- Fix bad indentation in python script + +* Wed Oct 14 2015 Zuzana Svetlikova - 2.0.0-8 +- Rebuild + +* Fri Oct 09 2015 Zuzana Svetlikova - 2.0.0-7 +- Enable multiversioning (BZ#1268882) + +* Wed Mar 05 2014 Tomas Hrcka - 2.0.0-6 +- Disable multiversion inherits + +* Thu Oct 17 2013 Tomas Hrcka - 2.0.0-5 +- replace provides and requires with macro + +* Fri Aug 16 2013 T.C. Hollingsworth - 2.0.0-4 +- add some post-install hackery to work around potential RPM bug resulting in + symlinks still pointing to their old locations on upgrade (RHBZ#997978) + +* Sat Aug 03 2013 Fedora Release Engineering - 2.0.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Sat Jul 06 2013 T.C. Hollingsworth - 2.0.0-3 +- only run the hack when we really need to + +* Sat Jul 06 2013 T.C. Hollingsworth - 2.0.0-2 +- use lua for pretrans + +* Sun Jun 23 2013 T.C. Hollingsworth - 2.0.0-1 +- new upstream release 2.0.0 +- include license file +- follow the mutiple version spec + +* Sun Jun 23 2013 T.C. Hollingsworth - 1.0.0-9 +- restrict to compatible arches + +* Mon Apr 15 2013 T.C. Hollingsworth - 1.0.0-8 +- add macro for EPEL6 dependency generation + +* Thu Apr 11 2013 Stanislav Ochotnicky - 1.0.0-8 +- Add support for software collections + +* 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