[packages/nodejs-github-url-from-git] - new
kiesiu
kiesiu at pld-linux.org
Wed Mar 12 13:48:44 CET 2014
commit 13dce861f56c264a4651f58c9fea986fa0dc17b9
Author: Łukasz Kieś <kiesiu at pld-linux.org>
Date: Wed Mar 12 13:48:05 2014 +0100
- new
nodejs-github-url-from-git.spec | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
---
diff --git a/nodejs-github-url-from-git.spec b/nodejs-github-url-from-git.spec
new file mode 100644
index 0000000..5306b63
--- /dev/null
+++ b/nodejs-github-url-from-git.spec
@@ -0,0 +1,35 @@
+%define pkg github-url-from-git
+Summary: Parse a github git url and return the github repo url
+Name: nodejs-%{pkg}
+Version: 1.1.1
+Release: 1
+License: MIT
+Group: Development/Libraries
+Source0: http://registry.npmjs.org/%{pkg}/-/%{pkg}-%{version}.tgz
+# Source0-md5: add0d23f8decfa5c3b6a5f45875f5f73
+URL: https://github.com/visionmedia/node-github-url-from-git
+BuildRequires: rpmbuild(macros) >= 1.634
+Requires: nodejs
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Parse a github git url and return the github repo url.
+
+%prep
+%setup -qc
+mv package/* .
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{nodejs_libdir}/%{pkg}
+cp -pr index.js package.json $RPM_BUILD_ROOT%{nodejs_libdir}/%{pkg}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Readme.md History.md
+%{nodejs_libdir}/%{pkg}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/nodejs-github-url-from-git.git/commitdiff/13dce861f56c264a4651f58c9fea986fa0dc17b9
More information about the pld-cvs-commit
mailing list