|
|
|
|
@ -23,7 +23,7 @@
|
|
|
|
|
|
|
|
|
|
# package version |
|
|
|
|
%define V_htmlmin 3.2.3 |
|
|
|
|
%define V_htmlmin_snap 20170101 |
|
|
|
|
%define V_htmlmin_snap 20170115 |
|
|
|
|
|
|
|
|
|
# package information |
|
|
|
|
Name: htmlmin |
|
|
|
|
@ -36,14 +36,14 @@ Class: EVAL
|
|
|
|
|
Group: Language |
|
|
|
|
License: MIT |
|
|
|
|
Version: %{V_htmlmin} |
|
|
|
|
Release: 20170101 |
|
|
|
|
Release: 20170115 |
|
|
|
|
|
|
|
|
|
# list of sources |
|
|
|
|
Source0: http://download.openpkg.org/components/versioned/htmlmin/htmlmin-%{V_htmlmin}-%{V_htmlmin_snap}.tar.gz |
|
|
|
|
Source1: htmlmin.sh |
|
|
|
|
|
|
|
|
|
# build information |
|
|
|
|
BuildPreReq: OpenPKG, openpkg >= 20160101 |
|
|
|
|
BuildPreReq: OpenPKG, openpkg >= 20160101, node-openpkg |
|
|
|
|
PreReq: OpenPKG, openpkg >= 20160101, node |
|
|
|
|
|
|
|
|
|
%description |
|
|
|
|
@ -61,8 +61,7 @@ PreReq: OpenPKG, openpkg >= 20160101, node
|
|
|
|
|
%setup -q -c |
|
|
|
|
|
|
|
|
|
%build |
|
|
|
|
find . -name "README.md" -print | xargs rm -f |
|
|
|
|
find . -name ".npmignore" -print | xargs rm -f |
|
|
|
|
%{l_prefix}/bin/node-openpkg squeeze |
|
|
|
|
|
|
|
|
|
%install |
|
|
|
|
%{l_shtool} mkdir -f -p -m 755 \ |
|
|
|
|
@ -71,9 +70,8 @@ PreReq: OpenPKG, openpkg >= 20160101, node
|
|
|
|
|
%{l_shtool} install -c -m 755 %{l_value -s -a} \ |
|
|
|
|
%{SOURCE htmlmin.sh} \ |
|
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/bin/htmlmin |
|
|
|
|
cp -rp \ |
|
|
|
|
node_modules/* \ |
|
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/lib/htmlmin/ |
|
|
|
|
%{l_prefix}/bin/node-openpkg install \ |
|
|
|
|
%{l_prefix}/lib/htmlmin/ |
|
|
|
|
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} |
|
|
|
|
|
|
|
|
|
%files -f files |
|
|
|
|
|