Browse Source

upgrade to node-openpkg

master
parent
commit
47d591a888
  1. 16
      code2xml/code2xml.spec

16
code2xml/code2xml.spec

@ -36,14 +36,14 @@ Class: EVAL
Group: Typesetting
License: MIT
Version: %{V_code2xml}
Release: 20170101
Release: 20170115
# list of sources
Source0: http://download.openpkg.org/components/versioned/code2xml/code2xml-%{V_code2xml}-%{V_code2xml_snap}.tar.xz
Source1: code2xml.sh
# build information
BuildPreReq: OpenPKG, openpkg >= 20160101
BuildPreReq: OpenPKG, openpkg >= 20160101, node-openpkg
PreReq: OpenPKG, openpkg >= 20160101, node
%description
@ -68,12 +68,7 @@ PreReq: OpenPKG, openpkg >= 20160101, node
%setup -q -c
%build
find . -name "example" -type d -print | xargs rm -rf
find . -name "tests" -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 "README*" -type f -print | xargs rm -f
find . -name "LICENSE*" -type f -print | xargs rm -f
%{l_prefix}/bin/node-openpkg squeeze
%install
%{l_shtool} mkdir -f -p -m 755 \
@ -82,9 +77,8 @@ PreReq: OpenPKG, openpkg >= 20160101, node
%{l_shtool} install -c -m 755 %{l_value -s -a} \
%{SOURCE code2xml.sh} \
$RPM_BUILD_ROOT%{l_prefix}/bin/code2xml
cp -rp \
node_modules/* \
$RPM_BUILD_ROOT%{l_prefix}/lib/code2xml/
%{l_prefix}/bin/node-openpkg install \
%{l_prefix}/lib/code2xml/
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
%files -f files

Loading…
Cancel
Save