[nodejs-npm-cache-filename] Initial import (#1201788).

Zuzana Svetlikova zvetlik at fedoraproject.org
Mon Mar 23 13:38:21 UTC 2015


commit f2fc609af7542030b26c83e65192f3aca6ab1287
Author: Zuzana Svetlikova <zsvetlik at redhat.com>
Date:   Mon Mar 23 14:38:01 2015 +0100

    Initial import (#1201788).

 .gitignore                     |  1 +
 nodejs-npm-cache-filename.spec | 63 ++++++++++++++++++++++++++++++++++++++++++
 sources                        |  1 +
 3 files changed, 65 insertions(+)
---
diff --git a/.gitignore b/.gitignore
index e69de29..1f86d43 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/npm-cache-filename-1.0.1.tgz
diff --git a/nodejs-npm-cache-filename.spec b/nodejs-npm-cache-filename.spec
new file mode 100644
index 0000000..d6ddbb6
--- /dev/null
+++ b/nodejs-npm-cache-filename.spec
@@ -0,0 +1,63 @@
+%{?scl:%scl_package nodejs-npm-cache-filename}
+%{!?scl:%global pkg_name %{name}}
+%{?nodejs_find_provides_and_requires}
+
+%global enable_tests 1
+
+Name:		%{?scl_prefix}nodejs-npm-cache-filename
+Version:	1.0.1
+Release:	4%{?dist}
+Summary:	Return NPM cache folder
+License:	ISC
+Url:		https://github.com/npm/npm-cache-filename
+Source:		http://registry.npmjs.org/npm-cache-filename/-/npm-cache-filename-%{version}.tgz
+BuildRequires:	%{?scl_prefix}nodejs
+BuildRequires:	nodejs-packaging
+BuildArch:	noarch
+ExclusiveArch:	%{nodejs_arches} noarch
+
+%if 0%{?enable_tests}
+BuildRequires:	npm(tap)
+%endif
+
+%description
+Given a cache folder and url, return the appropriate cache folder. 
+
+%prep
+%setup -q -n package
+
+%build
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/npm-cache-filename
+cp -pr package.json index.js \
+	%{buildroot}%{nodejs_sitelib}/npm-cache-filename/
+
+%{nodejs_symlink_deps}
+
+%if 0%{?enable_tests}
+%check
+%{nodejs_symlink_deps} --check
+tap test.js
+%endif
+
+%files
+%doc README.md
+%license LICENSE
+%{nodejs_sitelib}/npm-cache-filename
+
+%changelog
+* Fri Mar 13 2015 Zuzana Svetlikova <zsvetlik at redhat.com> - 1.0.1-4
+- Removed Group, BuildRoot and %%defattr
+- changed ExclusiveArch
+- added %%check, %%license and %%nodejs_symlink_deps macros and nodejs-packaging dependency
+
+* Tue Jan 13 2015 Tomas Hrcka <thrcka at redhat.com> - 1.0.1-3
+- Remove undefined macro
+
+* Fri Jan 09 2015 Tomas Hrcka <thrcka at redhat.com> - 1.0.1-2
+- Add dist makro
+
+* Tue Jan 06 2015 Tomas Hrcka <thrcka at redhat.com> - 1.0.1-1
+- rebuilt
+
diff --git a/sources b/sources
index e69de29..1dc4976 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+0b7a506284423675c0f4bf89918671ca  npm-cache-filename-1.0.1.tgz


More information about the scm-commits mailing list