[nodejs-inherits] follow the multiple versioning spec

T.C. Hollingsworth patches at fedoraproject.org
Sun Jun 23 03:31:21 UTC 2013


commit 04e5fc0b203959c43d9ebe157e8e8efc56e152e8
Author: T.C. Hollingsworth <tchollingsworth at gmail.com>
Date:   Sat Jun 22 20:30:01 2013 -0700

    follow the multiple versioning spec

 nodejs-inherits.spec |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/nodejs-inherits.spec b/nodejs-inherits.spec
index 786cc15..8e6ad7e 100644
--- a/nodejs-inherits.spec
+++ b/nodejs-inherits.spec
@@ -30,16 +30,23 @@ cp -p %{SOURCE1} LICENSE
 %install
 rm -rf %{buildroot}
 
-mkdir -p %{buildroot}%{nodejs_sitelib}/inherits
-cp -pr inherits.js package.json %{buildroot}%{nodejs_sitelib}/inherits
+mkdir -p %{buildroot}%{nodejs_sitelib}/inherits at 2
+cp -pr inherits.js package.json %{buildroot}%{nodejs_sitelib}/inherits at 2
 
 %nodejs_symlink_deps
 
+ln -sf inherits at 2 %{buildroot}%{nodejs_sitelib}/inherits
+
 %clean
 rm -rf %{buildroot}
 
+# rpm blows up if you try to replace a dir with a symlink or vice-versa
+%pretrans
+readlink %{nodejs_sitelib}/inherits || rm -rf %{nodejs_sitelib}/inherits
+
 %files
 %defattr(-,root,root,-)
+%{nodejs_sitelib}/inherits at 2
 %{nodejs_sitelib}/inherits
 %doc README.md LICENSE
 
@@ -47,6 +54,7 @@ rm -rf %{buildroot}
 * Sun Jun 23 2013 T.C. Hollingsworth <tchollingsworth at gmail.com> - 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 <tchollingsworth at gmail.com> - 1.0.0-9
 - restrict to compatible arches


More information about the scm-commits mailing list