Sisyphus repository
Last update: 21 april 2019 | SRPMs: 17649 | Visits: 13449686
en ru br
ALT Linux repos

Group :: Development/Other
RPM: node-asar

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define node_module asar

%filter_from_requires /^nodejs.engine./d

Name: node-asar
Version: 0.14.2
Release: alt1

Summary: Simple extensive tar-like archive format with indexing

License: MIT License
Group: Development/Other

Packager: Vitaly Lipatov <lav at>

# Source-url:

Source: %name-%version.tar

#Source1: %name-preloaded-%version.tar

Source2: %name-production-%version.tar

BuildArch: noarch

BuildRequires(pre): rpm-build-intro >= 1.9.18

BuildRequires: rpm-build-nodejs node
BuildRequires(pre): rpm-macros-nodejs
Requires: node
# rpm-build-nodejs

Provides: nodejs-%node_module = %version-%release
Obsoletes: nodejs-%node_module < %version
Provides: %node_module = %version-%release
Obsoletes: %node_module < %version

AutoReq: no
AutoProv: no
Requires: node

Asar is a simple extensive archive format,
it works like tar that concatenates all files
together without compression,
while having random access support.

%setup -a 2


# do not work without development requires

# and needs xvfb-maybe
#npm test

# replace node_modules with got after npm install --production
#rm -rf node_modules
#tar xf %SOURCE2

mkdir -p %buildroot%nodejs_sitelib/%node_module/
chmod a+x bin/*
cp -rp bin lib node_modules package.json %buildroot/%nodejs_sitelib/%node_module

mkdir -p %buildroot%_bindir/
#ln -s %nodejs_sitelib/%node_module/bin/asar.js %buildroot%_bindir/asar
%_ln_sr %buildroot%nodejs_sitelib/%node_module/bin/asar.js %buildroot%_bindir/asar




Full changelog you can see here

design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin