41 lines
1019 B
RPMSpec
41 lines
1019 B
RPMSpec
|
%define base_name uri-path
|
||
|
|
||
|
Name: nodejs-%{base_name}
|
||
|
Version: 0.0.2
|
||
|
Release: 0
|
||
|
License: WTFPL
|
||
|
Summary: Convert relative file system paths into safe URI paths
|
||
|
URL: https://github.com/UltCombo/uri-path
|
||
|
Group: Development/Languages/Other
|
||
|
Source0: http://registry.npmjs.org/%{base_name}/-/%{base_name}-%{version}.tgz
|
||
|
Requires: nodejs
|
||
|
BuildRequires: nodejs
|
||
|
BuildRequires: nodejs-packaging
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
||
|
BuildArch: noarch
|
||
|
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
|
||
|
|
||
|
|
||
|
%description
|
||
|
Node.js uri-path module. Convert relative file system paths into safe URI paths.
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n package
|
||
|
|
||
|
%build
|
||
|
|
||
|
%install
|
||
|
mkdir -p %{buildroot}%{nodejs_modulesdir}/%{base_name}
|
||
|
cp -pr package.json index.js \
|
||
|
%{buildroot}%{nodejs_modulesdir}/%{base_name}/
|
||
|
|
||
|
%clean
|
||
|
rm -rf $RPM_BUILD_ROOT
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root,-)
|
||
|
%doc LICENSE README.md
|
||
|
%{nodejs_modulesdir}/%{base_name}
|
||
|
|
||
|
%changelog
|