diff --git a/ctype-0.5.3.tgz b/ctype-0.5.3.tgz deleted file mode 100644 index 19623f4..0000000 Binary files a/ctype-0.5.3.tgz and /dev/null differ diff --git a/nodejs-ctype.spec b/nodejs-ctype.spec index 9e74a0d..a153df0 100644 --- a/nodejs-ctype.spec +++ b/nodejs-ctype.spec @@ -7,11 +7,9 @@ Release: 1 Summary: Read and write binary structures and data types with Node.js License: MIT URL: https://github.com/rmustacc/node-ctype -Source0: https://registry.npmjs.org/ctype/-/ctype-%{version}.tgz -Source1: https://github.com/rmustacc/node-ctype/archive/3aae5f7aa45906cfcb283817cfb6fcb15360391d/nodejs-ctype-%{version}-3aae5f7.tar.gz +Source0: https://github.com/rmustacc/node-ctype/archive/%{commit}/nodejs-ctype-%{version}-3aae5f7.tar.gz Patch1: nodejs-ctype-README.patch BuildArch: noarch -ExclusiveArch: %{nodejs_arches} noarch BuildRequires: nodejs-packaging %description Node-CType is a way to read and write binary data in a structured and easy to @@ -21,10 +19,7 @@ The low level API lets you read and write individual integers and floats from buffers. The higher level API lets you read and write structures of these. %prep -%setup -q -n package -a1 -%patch1 -p1 -mv node-ctype-%{commit}/tst . -rm -rf node-ctype-%{commit} +%autosetup -n node-ctype-%{commit} %build