[nodejs-inherits] include license file
T.C. Hollingsworth
patches at fedoraproject.org
Sun Jun 23 02:54:27 UTC 2013
commit d612f77033d3fd443f581ef0d55e8cdbe2e35183
Author: T.C. Hollingsworth <tchollingsworth at gmail.com>
Date: Sat Jun 22 18:05:50 2013 -0700
include license file
LICENSE | 14 ++++++++++++++
nodejs-inherits.spec | 7 ++++++-
2 files changed, 20 insertions(+), 1 deletions(-)
---
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..5a8e332
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,14 @@
+ DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
+ Version 2, December 2004
+
+ Copyright (C) 2004 Sam Hocevar <sam at hocevar.net>
+
+ 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/nodejs-inherits.spec b/nodejs-inherits.spec
index 30cd30b..786cc15 100644
--- a/nodejs-inherits.spec
+++ b/nodejs-inherits.spec
@@ -8,6 +8,7 @@ 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}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
@@ -20,6 +21,9 @@ BuildRequires: nodejs-devel
%prep
%setup -q -n package
+#copy the license into %%{_builddir} so it works with %%doc
+cp -p %{SOURCE1} LICENSE
+
%build
#nothing to do
@@ -37,11 +41,12 @@ rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{nodejs_sitelib}/inherits
-%doc README.md
+%doc README.md LICENSE
%changelog
* Sun Jun 23 2013 T.C. Hollingsworth <tchollingsworth at gmail.com> - 2.0.0-1
- new upstream release 2.0.0
+- include license file
* Sun Jun 23 2013 T.C. Hollingsworth <tchollingsworth at gmail.com> - 1.0.0-9
- restrict to compatible arches
More information about the scm-commits
mailing list