[packages/nodejs-npm-cache-filename] new, version 1.0.1

glen glen at pld-linux.org
Sat Jan 9 02:56:38 CET 2016


commit d7ae55944ec25efc4abd2fe6ad427bfaccf78ca3
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sat Jan 9 03:56:13 2016 +0200

    new, version 1.0.1
    
    created with template spec

 nodejs-npm-cache-filename.spec | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)
---
diff --git a/nodejs-npm-cache-filename.spec b/nodejs-npm-cache-filename.spec
new file mode 100644
index 0000000..872b1c5
--- /dev/null
+++ b/nodejs-npm-cache-filename.spec
@@ -0,0 +1,35 @@
+%define		pkg	npm-cache-filename
+Summary:	Given a cache folder and url, return the appropriate cache folder
+Name:		nodejs-%{pkg}
+Version:	1.0.1
+Release:	1
+License:	ISC
+Group:		Development/Libraries
+#Source0:	http://registry.npmjs.org/nodejs-npm-cache-filename/-/%{pkg}-%{version}.tgz
+Source0:	https://github.com/npm/npm-cache-filename/archive/v%{version}/%{pkg}-%{version}.tar.gz
+# Source0-md5:	aad1eececeefefb5e9f444ad23d0a1ec
+URL:		https://github.com/npm/npm-cache-filename
+BuildRequires:	rpmbuild(macros) >= 1.634
+BuildRequires:	sed >= 4.0
+Requires:	nodejs
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Given a cache folder and url, return the appropriate cache folder.
+
+%prep
+%setup -qn %{pkg}-%{version}
+
+%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 LICENSE
+%{nodejs_libdir}/%{pkg}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/nodejs-npm-cache-filename.git/commitdiff/d7ae55944ec25efc4abd2fe6ad427bfaccf78ca3



More information about the pld-cvs-commit mailing list