|
|
@@ -24,27 +24,17 @@
|
|
|
|
|
|
# package versions
|
|
|
%define V_base 5.6
|
|
|
-%define V_patch1 20061223
|
|
|
-%define V_patch2 20061230
|
|
|
-%define V_patch3 20070106
|
|
|
-%define V_patch4 20070113
|
|
|
-%define V_patch5 20070120
|
|
|
-%define V_patch6 20070127
|
|
|
-%define V_patch7 20070128
|
|
|
-%define V_patch8 20070203
|
|
|
-%define V_patch9 20070210
|
|
|
-%define V_patch10 20070217
|
|
|
-%define V_patch11 20070224
|
|
|
-%define V_patch12 20070303
|
|
|
-%define V_patch13 20070310
|
|
|
-%define V_patch14 20070311
|
|
|
-%define V_patch15 20070317
|
|
|
-%define V_patch16 20070324
|
|
|
-%define V_patch17 20070331
|
|
|
-%define V_patch18 20070407
|
|
|
+%define V_patch1 20070303
|
|
|
+%define V_patch2 20070310
|
|
|
+%define V_patch3 20070311
|
|
|
+%define V_patch4 20070317
|
|
|
+%define V_patch5 20070324
|
|
|
+%define V_patch6 20070331
|
|
|
+%define V_patch7 20070407
|
|
|
+%define V_patch8 20070414
|
|
|
%define V_patchB %{V_patch1}
|
|
|
-%define V_patchL %{V_patch18}
|
|
|
-%define V_patches 18
|
|
|
+%define V_patchL %{V_patch8}
|
|
|
+%define V_patches 8
|
|
|
|
|
|
# package information
|
|
|
Name: ncurses
|
|
|
@@ -57,11 +47,11 @@ Class: BASE
|
|
|
Group: Terminal
|
|
|
License: MIT-style
|
|
|
Version: %{V_base}.%{V_patchL}
|
|
|
-Release: 20070408
|
|
|
+Release: 20070415
|
|
|
|
|
|
# list of sources
|
|
|
Source0: ftp://invisible-island.net/ncurses/ncurses-%{V_base}.tar.gz
|
|
|
-Patch1: ftp://invisible-island.net/ncurses/%{V_base}/ncurses-%{V_base}-%{V_patch1}.patch.gz
|
|
|
+Patch1: ftp://invisible-island.net/ncurses/%{V_base}/ncurses-%{V_base}-%{V_patch1}-patch.sh.bz2
|
|
|
Patch2: ftp://invisible-island.net/ncurses/%{V_base}/ncurses-%{V_base}-%{V_patch2}.patch.gz
|
|
|
Patch3: ftp://invisible-island.net/ncurses/%{V_base}/ncurses-%{V_base}-%{V_patch3}.patch.gz
|
|
|
Patch4: ftp://invisible-island.net/ncurses/%{V_base}/ncurses-%{V_base}-%{V_patch4}.patch.gz
|
|
|
@@ -69,16 +59,6 @@ Patch5: ftp://invisible-island.net/ncurses/%{V_base}/ncurses-%{V_base}-%{V
|
|
|
Patch6: ftp://invisible-island.net/ncurses/%{V_base}/ncurses-%{V_base}-%{V_patch6}.patch.gz
|
|
|
Patch7: ftp://invisible-island.net/ncurses/%{V_base}/ncurses-%{V_base}-%{V_patch7}.patch.gz
|
|
|
Patch8: ftp://invisible-island.net/ncurses/%{V_base}/ncurses-%{V_base}-%{V_patch8}.patch.gz
|
|
|
-Patch9: ftp://invisible-island.net/ncurses/%{V_base}/ncurses-%{V_base}-%{V_patch9}.patch.gz
|
|
|
-Patch10: ftp://invisible-island.net/ncurses/%{V_base}/ncurses-%{V_base}-%{V_patch10}.patch.gz
|
|
|
-Patch11: ftp://invisible-island.net/ncurses/%{V_base}/ncurses-%{V_base}-%{V_patch11}.patch.gz
|
|
|
-Patch12: ftp://invisible-island.net/ncurses/%{V_base}/ncurses-%{V_base}-%{V_patch12}.patch.gz
|
|
|
-Patch13: ftp://invisible-island.net/ncurses/%{V_base}/ncurses-%{V_base}-%{V_patch13}.patch.gz
|
|
|
-Patch14: ftp://invisible-island.net/ncurses/%{V_base}/ncurses-%{V_base}-%{V_patch14}.patch.gz
|
|
|
-Patch15: ftp://invisible-island.net/ncurses/%{V_base}/ncurses-%{V_base}-%{V_patch15}.patch.gz
|
|
|
-Patch16: ftp://invisible-island.net/ncurses/%{V_base}/ncurses-%{V_base}-%{V_patch16}.patch.gz
|
|
|
-Patch17: ftp://invisible-island.net/ncurses/%{V_base}/ncurses-%{V_base}-%{V_patch17}.patch.gz
|
|
|
-Patch18: ftp://invisible-island.net/ncurses/%{V_base}/ncurses-%{V_base}-%{V_patch18}.patch.gz
|
|
|
Patch100: ncurses.patch
|
|
|
|
|
|
# build information
|
|
|
@@ -129,10 +109,12 @@ AutoReqProv: no
|
|
|
%{expand:%(i=1; while [ $i -le %{V_patches} ]; do %{l_shtool} echo -n " %%{PATCH$i}"; i=`expr $i + 1`; done)}
|
|
|
do
|
|
|
case "$patchfile" in
|
|
|
- *.sh.bz2 ) %{l_bzip2} -d -c $patchfile | sed -e 's;gzip -dc;%{l_gzip} -dc;' -e 's;patch -p1;%{l_patch} -p1;' | sh - || true ;;
|
|
|
- *.sh.gz ) %{l_gzip} -d -c $patchfile | sed -e 's;gzip -dc;%{l_gzip} -dc;' -e 's;patch -p1;%{l_patch} -p1;' | sh - || true ;;
|
|
|
- *.patch.bz2 ) %{l_bzip2} -d -c $patchfile | %{l_patch} -p1 || true ;;
|
|
|
- *.patch.gz ) %{l_gzip} -d -c $patchfile | %{l_patch} -p1 || true ;;
|
|
|
+ *-patch.sh.bz2 ) %{l_bzip2} -d -c $patchfile | %{l_patch} -p1 || true ;;
|
|
|
+ *-patch.sh.gz ) %{l_bzip2} -d -c $patchfile | %{l_patch} -p1 || true ;;
|
|
|
+ *.sh.bz2 ) %{l_bzip2} -d -c $patchfile | sed -e 's;gzip -dc;%{l_gzip} -dc;' -e 's;patch -p1;%{l_patch} -p1;' | sh - || true ;;
|
|
|
+ *.sh.gz ) %{l_gzip} -d -c $patchfile | sed -e 's;gzip -dc;%{l_gzip} -dc;' -e 's;patch -p1;%{l_patch} -p1;' | sh - || true ;;
|
|
|
+ *.patch.bz2 ) %{l_bzip2} -d -c $patchfile | %{l_patch} -p1 || true ;;
|
|
|
+ *.patch.gz ) %{l_gzip} -d -c $patchfile | %{l_patch} -p1 || true ;;
|
|
|
* )
|
|
|
echo "Unknown patch format" | %{l_rpmtool} msg -b -t error 1>&2
|
|
|
exit 1
|