Explorar el Código

add xtermcolors utility

Ralf S. Engelschall hace 24 años
padre
commit
ee71b27855
Se han modificado 1 ficheros con 17 adiciones y 4 borrados
  1. 17 4
      xterm/xterm.spec

+ 17 - 4
xterm/xterm.spec

@@ -23,9 +23,10 @@
 ##  SUCH DAMAGE. 
 ##  
 
-%define       V_whole    1.66
-%define       V_xterm    166
-%define       V_xtermset 0.5.1
+%define       V_whole       1.66
+%define       V_xterm       166
+%define       V_xtermset    0.5.1
+%define       V_xtermcolors 1.0
 
 #   package information
 Name:         xterm
@@ -37,11 +38,12 @@ Distribution: OpenPKG [EXP]
 Group:        X11
 License:      X11
 Version:      %{V_whole}
-Release:      20020326
+Release:      20020509
 
 #   list of sources
 Source0:      ftp://invisible-island.net/xterm/xterm-%{V_xterm}.tgz
 Source1:      http://prdownloads.sourceforge.net/clts/xtermset-%{V_xtermset}.tar.gz
+Source2:      http://www.thrysoee.dk/xtermcolors/xtermcolors-%{V_xtermcolors}.tar.gz
 
 #   build information
 Prefix:       %{l_prefix}
@@ -61,6 +63,7 @@ AutoReqProv:  no
 %prep
     %setup0 -q -c
     %setup1 -q -T -D -a 1
+    %setup2 -q -T -D -a 2
 
 %build
     ( cd xterm-%{V_xterm}
@@ -83,6 +86,13 @@ AutoReqProv:  no
           --prefix=%{l_prefix}
       %{l_make} %{l_mflags -O}
     )
+    ( cd xtermcolors-%{V_xtermcolors}
+      CC="%{l_cc}" \
+      CFLAGS="%{l_cflags -O}" \
+      ./configure \
+          --prefix=%{l_prefix}
+      %{l_make} %{l_mflags -O}
+    )
   
 %install
     rm -rf $RPM_BUILD_ROOT
@@ -92,6 +102,9 @@ AutoReqProv:  no
     ( cd xtermset-%{V_xtermset}
       %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
     )
+    ( cd xtermcolors-%{V_xtermcolors}
+      %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
+    )
     strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
     rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/aclocal
     %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \