Browse Source

update snapshot

master
parent
commit
672a2739bf
  1. 29
      statsd/statsd.spec

29
statsd/statsd.spec

@ -36,7 +36,7 @@ Class: EVAL
Group: Networking
License: MIT
Version: %{V_statsd_base}
Release: 20170101
Release: 20170115
# list of sources
Source0: http://download.openpkg.org/components/versioned/statsd/statsd-%{V_statsd_base}-%{V_statsd_snap}.tar.gz
@ -46,7 +46,7 @@ Source3: stats.sh
Source4: rc.statsd
# build information
BuildPreReq: OpenPKG, openpkg >= 20160101, node, npm
BuildPreReq: OpenPKG, openpkg >= 20160101, node, node-openpkg, npm
PreReq: OpenPKG, openpkg >= 20160101, node, socat
%description
@ -71,32 +71,17 @@ PreReq: OpenPKG, openpkg >= 20160101, node, socat
npm-node-gyp rebuild
) || exit $?
%install
# strip down program
%{l_prefix}/bin/node-openpkg squeeze
rm -rf node_modules/statsd/node_modules/winser
rm -f node_modules/statsd/node_modules/.bin/winser
find . -name test -type d -print | xargs rm -rf
find . -name tests -type d -print | xargs rm -rf
find . -name doc -type d -print | xargs rm -rf
find . -name examples -type d -print | xargs rm -rf
find . -name docs -type d -print | xargs rm -rf
find . -name debian -type d -print | xargs rm -rf
find . -name Makefile -type f -print | xargs rm -f
find . -name .npmignore -type f -print | xargs rm -f
find . -name .travis.yml -type f -print | xargs rm -f
find . -name "*.orig" -type f -print | xargs rm -f
find . -name CHANGELOG -type f -print | xargs rm -f
find . -name LICENSE -type f -print | xargs rm -f
find . -name README.md -type f -print | xargs rm -f
find . -name Readme.md -type f -print | xargs rm -f
find . -name readme.md -type f -print | xargs rm -f
find . -name History.md -type f -print | xargs rm -f
rm -f node_modules/statsd/node_modules/.bin/winser
%install
# install program
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/lib/statsd
cp -rp node_modules/* \
$RPM_BUILD_ROOT%{l_prefix}/lib/statsd/
%{l_prefix}/bin/node-openpkg install \
%{l_prefix}/lib/statsd/
# install configuration
%{l_shtool} mkdir -f -p -m 755 \

Loading…
Cancel
Save