]> git.pld-linux.org Git - packages/nodejs-wrappy.git/commitdiff
new, version 1.0.1 master auto/th/nodejs-wrappy-1.0.1-1
authorElan Ruusamäe <glen@delfi.ee>
Sat, 9 Jan 2016 01:40:32 +0000 (03:40 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Sat, 9 Jan 2016 01:41:25 +0000 (03:41 +0200)
based on fedora spec (2a6c8f3) and template spec

nodejs-wrappy.spec [new file with mode: 0644]

diff --git a/nodejs-wrappy.spec b/nodejs-wrappy.spec
new file mode 100644 (file)
index 0000000..cdb620f
--- /dev/null
@@ -0,0 +1,48 @@
+#
+# Conditional build:
+%bcond_with    tests           # build with tests
+
+%define                commit 006a8cbac6b99988315834c207896eed71fd069a
+%define                pkg     wrappy
+Summary:       Callback wrapping utility
+Name:          nodejs-%{pkg}
+Version:       1.0.1
+Release:       1
+License:       ISC
+Group:         Development/Libraries
+Source0:       https://github.com/npm/wrappy/archive/%{commit}/wrappy-%{commit}.tar.gz
+# Source0-md5: cf45c69076ebb4fcf013834b1dd9dae8
+URL:           https://github.com/npm/wrappy
+BuildRequires: rpmbuild(macros) >= 1.634
+BuildRequires: sed >= 4.0
+%if %{with tests}
+BuildRequires: nodejs-tap
+%endif
+Requires:      nodejs
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Callback wrapping utility for node.js
+
+%prep
+%setup -qc
+mv %{pkg}-*/* .
+
+%build
+%if %{with tests}
+tap test/*.js
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{nodejs_libdir}/%{pkg}
+cp -p %{pkg}.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}
This page took 0.115192 seconds and 4 git commands to generate.