瀏覽代碼

upgrading package: htmlmin 0.7.2 -> 1.0.1

Ralf S. Engelschall 10 年之前
父節點
當前提交
7c13979ee7
共有 2 個文件被更改,包括 5 次插入8 次删除
  1. 1 1
      htmlmin/htmlmin.sh
  2. 4 7
      htmlmin/htmlmin.spec

+ 1 - 1
htmlmin/htmlmin.sh

@@ -2,5 +2,5 @@
 NODE_PATH=@l_prefix@/lib/htmlmin
 export NODE_PATH
 exec @l_prefix@/bin/node \
-    @l_prefix@/lib/htmlmin/cli.js \
+    @l_prefix@/lib/htmlmin/html-minifier/cli.js \
     ${1+"$@"}

+ 4 - 7
htmlmin/htmlmin.spec

@@ -22,8 +22,8 @@
 ##
 
 #   package version
-%define       V_htmlmin      0.7.2
-%define       V_htmlmin_snap 20150711
+%define       V_htmlmin      1.0.1
+%define       V_htmlmin_snap 20160101
 
 #   package information
 Name:         htmlmin
@@ -36,7 +36,7 @@ Class:        EVAL
 Group:        Language
 License:      MIT
 Version:      %{V_htmlmin}
-Release:      20150711
+Release:      20160101
 
 #   list of sources
 Source0:      http://download.openpkg.org/components/versioned/htmlmin/htmlmin-%{V_htmlmin}-%{V_htmlmin_snap}.tar.gz
@@ -72,10 +72,7 @@ PreReq:       OpenPKG, openpkg >= 20140101, node
         %{SOURCE htmlmin.sh} \
         $RPM_BUILD_ROOT%{l_prefix}/bin/htmlmin
     cp -rp \
-        node_modules/html-minifier/package.json \
-        node_modules/html-minifier/cli.js \
-        node_modules/html-minifier/dist \
-        node_modules/html-minifier/node_modules \
+        node_modules/* \
         $RPM_BUILD_ROOT%{l_prefix}/lib/htmlmin/
     %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}