|
|
|
|
@ -37,13 +37,13 @@ Class: EVAL
|
|
|
|
|
Group: Language |
|
|
|
|
License: Apache |
|
|
|
|
Version: %{V_git2consul} |
|
|
|
|
Release: 20170101 |
|
|
|
|
Release: 20170115 |
|
|
|
|
|
|
|
|
|
# list of sources |
|
|
|
|
Source0: http://download.openpkg.org/components/versioned/git2consul/git2consul-%{V_git2consul}-%{V_git2consul_snap}.tar.xz |
|
|
|
|
|
|
|
|
|
# build information |
|
|
|
|
BuildPreReq: OpenPKG, openpkg >= 20160101 |
|
|
|
|
BuildPreReq: OpenPKG, openpkg >= 20160101, node-openpkg |
|
|
|
|
PreReq: OpenPKG, openpkg >= 20160101, node, git, consul |
|
|
|
|
|
|
|
|
|
%description |
|
|
|
|
@ -63,29 +63,14 @@ PreReq: OpenPKG, openpkg >= 20160101, node, git, consul
|
|
|
|
|
%setup -q -c |
|
|
|
|
|
|
|
|
|
%build |
|
|
|
|
find . -name example -type d -print | xargs rm -rf |
|
|
|
|
find . -name test -type d -print | xargs rm -rf |
|
|
|
|
find . -name .npmignore -type f -print | xargs rm -f |
|
|
|
|
find . -name LICENCE -type f -print | xargs rm -f |
|
|
|
|
find . -name LICENSE -type f -print | xargs rm -f |
|
|
|
|
find . -name LICENSE.txt -type f -print | xargs rm -f |
|
|
|
|
find . -name LICENSE.md -type f -print | xargs rm -f |
|
|
|
|
find . -name license.md -type f -print | xargs rm -f |
|
|
|
|
find . -name license -type f -print | xargs rm -f |
|
|
|
|
find . -name CHANGELOG.md -type f -print | xargs rm -f |
|
|
|
|
find . -name README -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 .travis.yml -type f -print | xargs rm -f |
|
|
|
|
find . -name .jshintrc -type f -print | xargs rm -f |
|
|
|
|
%{l_prefix}/bin/node-openpkg squeeze |
|
|
|
|
|
|
|
|
|
%install |
|
|
|
|
%{l_shtool} mkdir -f -p -m 755 \ |
|
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/bin \ |
|
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/lib/git2consul |
|
|
|
|
cp -rp \ |
|
|
|
|
node_modules/* \ |
|
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/lib/git2consul/ |
|
|
|
|
%{l_prefix}/bin/node-openpkg install \ |
|
|
|
|
%{l_prefix}/lib/git2consul/ |
|
|
|
|
( echo "#!/bin/sh" |
|
|
|
|
echo "NODE_PATH=%{l_prefix}/lib/git2consul; export NODE_PATH" |
|
|
|
|
echo "exec %{l_prefix}/bin/node %{l_prefix}/lib/git2consul/git2consul/index.js \${1+\"\$@\"}" |
|
|
|
|
|