`basename $PWD` OBS-URL: https://build.opensuse.org/request/show/285983 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-buffer-crc32?expand=0&rev=1
41 lines
1.0 KiB
RPMSpec
41 lines
1.0 KiB
RPMSpec
%define base_name buffer-crc32
|
|
|
|
Name: nodejs-%{base_name}
|
|
Version: 0.2.5
|
|
Release: 0
|
|
License: MIT
|
|
Summary: A pure javascript CRC32 algorithm that plays nice with binary data
|
|
URL: https://github.com/brianloveswords/buffer-crc32
|
|
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 buffer-crc32 module. A pure javascript CRC32 algorithm that plays nice with binary data.
|
|
|
|
%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
|