|
|
|
|
@ -37,14 +37,14 @@ Class: EVAL
|
|
|
|
|
Group: Language |
|
|
|
|
License: MIT |
|
|
|
|
Version: %{V_postgraphql} |
|
|
|
|
Release: 20170110 |
|
|
|
|
Release: 20170115 |
|
|
|
|
|
|
|
|
|
# list of sources |
|
|
|
|
Source0: http://download.openpkg.org/components/versioned/postgraphql/postgraphql-%{V_postgraphql_dist}-%{V_postgraphql_snap}.tar.xz |
|
|
|
|
Source1: rc.postgraphql |
|
|
|
|
|
|
|
|
|
# build information |
|
|
|
|
BuildPreReq: OpenPKG, openpkg >= 20160101 |
|
|
|
|
BuildPreReq: OpenPKG, openpkg >= 20160101, node-openpkg |
|
|
|
|
PreReq: OpenPKG, openpkg >= 20160101, node |
|
|
|
|
|
|
|
|
|
%description |
|
|
|
|
@ -69,21 +69,7 @@ PreReq: OpenPKG, openpkg >= 20160101, node
|
|
|
|
|
|
|
|
|
|
%build |
|
|
|
|
# prune files |
|
|
|
|
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 |
|
|
|
|
# create installation hierarchy |
|
|
|
|
@ -95,9 +81,8 @@ PreReq: OpenPKG, openpkg >= 20160101, node
|
|
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/var/postgraphql/log |
|
|
|
|
|
|
|
|
|
# install program |
|
|
|
|
cp -rp \ |
|
|
|
|
node_modules/* \ |
|
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/lib/postgraphql/ |
|
|
|
|
%{l_prefix}/bin/node-openpkg install \ |
|
|
|
|
%{l_prefix}/lib/postgraphql/ |
|
|
|
|
|
|
|
|
|
# create executable wrapper |
|
|
|
|
( echo "#!/bin/sh" |
|
|
|
|
|