Files
nodejs-xpath/nodejs-xpath.spec

41 lines
940 B
RPMSpec
Raw Permalink Normal View History

%define base_name xpath
Name: nodejs-%{base_name}
Version: 0.0.7
Release: 0
License: MIT
Summary: DOM 3 Xpath implemention
URL: https://github.com/goto100/xpath
Group: Development/Languages/Other
Source0: http://registry.npmjs.org/%{base_name}/-/%{base_name}-%{version}.tgz
BuildRequires: nodejs-packaging
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildArch: noarch
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
%nodejs_find_provides_and_requires
%description
DOM 3 Xpath implemention and helper for node.js.
%prep
%setup -q -n package
%build
%install
mkdir -p %{buildroot}%{nodejs_modulesdir}/%{base_name}
cp -pr package.json ./xpath.js \
%{buildroot}%{nodejs_modulesdir}/%{base_name}/
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc README.md README.md
%{nodejs_modulesdir}/%{base_name}
%changelog