[packages/nodejs-path-is-inside] - new

kiesiu kiesiu at pld-linux.org
Wed Mar 12 16:28:46 CET 2014


commit 6f980f61962b0b73e5b10ed8e45cffdf803569f7
Author: Łukasz Kieś <kiesiu at pld-linux.org>
Date:   Wed Mar 12 16:28:01 2014 +0100

    - new

 nodejs-path-is-inside.spec | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)
---
diff --git a/nodejs-path-is-inside.spec b/nodejs-path-is-inside.spec
new file mode 100644
index 0000000..4264c9f
--- /dev/null
+++ b/nodejs-path-is-inside.spec
@@ -0,0 +1,36 @@
+%define		pkg	path-is-inside
+Summary:	Tests whether one path is inside another path
+Name:		nodejs-%{pkg}
+Version:	1.0.1
+Release:	1
+License:	WTFPL
+Group:		Development/Libraries
+Source0:	http://registry.npmjs.org/%{pkg}/-/%{pkg}-%{version}.tgz
+# Source0-md5:	71ae8531120cccc208eac6f5e2eeae61
+URL:		https://github.com/domenic/path-is-inside
+BuildRequires:	rpmbuild(macros) >= 1.634
+Requires:	nodejs
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The path-is-inside package will give you a robust, cross-platform way
+of detecting whether a given path is inside another path.
+
+%prep
+%setup -qc
+mv package/* .
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{nodejs_libdir}/%{pkg}
+cp -pr lib package.json $RPM_BUILD_ROOT%{nodejs_libdir}/%{pkg}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md
+%{nodejs_libdir}/%{pkg}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/nodejs-path-is-inside.git/commitdiff/6f980f61962b0b73e5b10ed8e45cffdf803569f7



More information about the pld-cvs-commit mailing list