|
|
|
|
@ -36,13 +36,13 @@ Class: EVAL
|
|
|
|
|
Group: Libraries |
|
|
|
|
License: MIT |
|
|
|
|
Version: %{V_cbor} |
|
|
|
|
Release: 20170101 |
|
|
|
|
Release: 20170115 |
|
|
|
|
|
|
|
|
|
# list of sources |
|
|
|
|
Source0: http://download.openpkg.org/components/versioned/cbor/cbor-%{V_cbor}-%{V_cbor_snap}.tar.gz |
|
|
|
|
|
|
|
|
|
# build information |
|
|
|
|
BuildPreReq: OpenPKG, openpkg >= 20160101 |
|
|
|
|
BuildPreReq: OpenPKG, openpkg >= 20160101, node-openpkg |
|
|
|
|
PreReq: OpenPKG, openpkg >= 20160101, node, git |
|
|
|
|
|
|
|
|
|
%description |
|
|
|
|
@ -70,15 +70,9 @@ PreReq: OpenPKG, openpkg >= 20160101, node, git
|
|
|
|
|
rm -rf node_modules/cbor/src |
|
|
|
|
rm -rf node_modules/cbor/man_src |
|
|
|
|
rm -rf node_modules/cbor/test |
|
|
|
|
rm -f node_modules/cbor/Gruntfile.js |
|
|
|
|
rm -f node_modules/cbor/coffeelint.json |
|
|
|
|
find . -name "README*" -print | xargs rm -f |
|
|
|
|
find . -name "LICENSE*" -print | xargs rm -f |
|
|
|
|
find . -name "LICENCE*" -print | xargs rm -f |
|
|
|
|
find . -name "Readme*" -print | xargs rm -f |
|
|
|
|
find . -name "component.json" -print | xargs rm -f |
|
|
|
|
find . -name ".travis.yml" -print | xargs rm -f |
|
|
|
|
find . -name ".npmignore" -print | xargs rm -f |
|
|
|
|
rm -f node_modules/cbor/Gruntfile.js |
|
|
|
|
rm -f node_modules/cbor/coffeelint.json |
|
|
|
|
%{l_prefix}/bin/node-openpkg squeeze |
|
|
|
|
%{l_shtool} subst \ |
|
|
|
|
-e 's;#!/usr/bin/env node;#!%{l_prefix}/bin/node;g' \ |
|
|
|
|
node_modules/cbor/bin/* |
|
|
|
|
@ -87,9 +81,8 @@ PreReq: OpenPKG, openpkg >= 20160101, node, git
|
|
|
|
|
%{l_shtool} mkdir -f -p -m 755 \ |
|
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/bin \ |
|
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/lib/cbor |
|
|
|
|
cp -rp \ |
|
|
|
|
node_modules/* \ |
|
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/lib/cbor/ |
|
|
|
|
%{l_prefix}/bin/node-openpkg install \ |
|
|
|
|
%{l_prefix}/lib/cbor/ |
|
|
|
|
for prg in node_modules/cbor/bin/*; do |
|
|
|
|
name=`echo $prg | sed -e 's;.*/;;'` |
|
|
|
|
echo "$name" |
|
|
|
|
|