Import package vendor original spec for necessary manipulations.

Mon, 17 Sep 2012 18:58:20 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Mon, 17 Sep 2012 18:58:20 +0200
changeset 682
3799cd65a8f9
parent 680
d27cad483271
child 683
5a93a7863039

Import package vendor original spec for necessary manipulations.

ncurses/ncurses.patch file | annotate | diff | comparison | revisions
ncurses/ncurses.spec file | annotate | diff | comparison | revisions
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/ncurses/ncurses.patch	Mon Sep 17 18:58:20 2012 +0200
     1.3 @@ -0,0 +1,144 @@
     1.4 +Index: include/curses.h.in
     1.5 +--- include/curses.h.in.orig	2012-05-29 10:39:26.000000000 +0200
     1.6 ++++ include/curses.h.in	2012-05-29 10:39:27.000000000 +0200
     1.7 +@@ -63,7 +63,11 @@
     1.8 +  * User-definable tweak to disable the include of <stdbool.h>.
     1.9 +  */
    1.10 + #ifndef NCURSES_ENABLE_STDBOOL_H
    1.11 +-#define NCURSES_ENABLE_STDBOOL_H @cf_cv_header_stdbool_h@
    1.12 ++#if defined(__STDC__) && (__STDC_VERSION__ >= 199901L) && !defined(__osf__)
    1.13 ++#define NCURSES_ENABLE_STDBOOL_H 1
    1.14 ++#else
    1.15 ++#define NCURSES_ENABLE_STDBOOL_H 0
    1.16 ++#endif
    1.17 + #endif
    1.18 + 
    1.19 + /*
    1.20 +Index: ncurses/Makefile.in
    1.21 +--- ncurses/Makefile.in.orig	2012-05-29 10:39:27.000000000 +0200
    1.22 ++++ ncurses/Makefile.in	2012-05-29 10:40:19.000000000 +0200
    1.23 +@@ -176,7 +176,7 @@
    1.24 + 	$(INCDIR)/nc_mingw.h
    1.25 + 
    1.26 + TEST_DEPS	= ../lib/@LIB_PREFIX@ncurses@DFT_DEP_SUFFIX@
    1.27 +-TEST_ARGS	= @LDFLAGS_STATIC@ @TEST_ARGS@ @LDFLAGS_SHARED@ 
    1.28 ++TEST_ARGS	= @TEST_ARGS@ @LDFLAGS_SHARED@ 
    1.29 + TEST_LDFLAGS	= @LD_MODEL@ $(TEST_ARGS) @LIBS@ @LOCAL_LDFLAGS@ @LDFLAGS@
    1.30 + 
    1.31 + TEST_PROGS = \
    1.32 +@@ -292,7 +292,8 @@
    1.33 + 	@ECHO_LD@ $(LIBTOOL_LINK) -o $@ $(CFLAGS_DEFAULT) -DHASHDEBUG $(serial)/hashmap.c $(serial)/hardscroll.c $(TEST_LDFLAGS)
    1.34 + 
    1.35 + lib_mvcur$x : $(serial)/lib_mvcur.c $(TEST_DEPS) \
    1.36 +-		../@DFT_OBJ_SUBDIR@/dump_entry$o
    1.37 ++		../@DFT_OBJ_SUBDIR@/dump_entry$o \
    1.38 ++		../@DFT_OBJ_SUBDIR@/comp_parse$o
    1.39 + 	@ECHO_LD@ $(LIBTOOL_LINK) -o $@ $(CFLAGS_DEFAULT) -DNCURSES_TEST -I$(serial)/../../progs $(serial)/lib_mvcur.c ../@DFT_OBJ_SUBDIR@/dump_entry$o $(TEST_LDFLAGS)
    1.40 + 
    1.41 + link_test$x : ./link_test.c $(TEST_DEPS) \
    1.42 +Index: ncurses/tinfo/comp_error.c
    1.43 +--- ncurses/tinfo/comp_error.c.orig	2012-05-29 10:39:26.000000000 +0200
    1.44 ++++ ncurses/tinfo/comp_error.c	2012-05-29 10:39:27.000000000 +0200
    1.45 +@@ -43,7 +43,7 @@
    1.46 + 
    1.47 + MODULE_ID("$Id: comp_error.c,v 1.36 2012/02/22 22:34:31 tom Exp $")
    1.48 + 
    1.49 +-NCURSES_EXPORT_VAR(bool) _nc_suppress_warnings = FALSE;
    1.50 ++NCURSES_EXPORT_VAR(bool) _nc_suppress_warnings = TRUE;
    1.51 + NCURSES_EXPORT_VAR(int) _nc_curr_line = 0; /* current line # in input */
    1.52 + NCURSES_EXPORT_VAR(int) _nc_curr_col = 0; /* current column # in input */
    1.53 + 
    1.54 +Index: ncurses/tinfo/comp_parse.c
    1.55 +--- ncurses/tinfo/comp_parse.c.orig	2012-05-29 10:39:27.000000000 +0200
    1.56 ++++ ncurses/tinfo/comp_parse.c	2012-05-29 10:39:27.000000000 +0200
    1.57 +@@ -281,6 +281,7 @@
    1.58 + 
    1.59 +     DEBUG(2, ("RESOLUTION BEGINNING"));
    1.60 + 
    1.61 ++#if 0
    1.62 +     /*
    1.63 +      * Check for multiple occurrences of the same name.
    1.64 +      */
    1.65 +@@ -308,6 +309,7 @@
    1.66 + 	return (FALSE);
    1.67 + 
    1.68 +     DEBUG(2, ("NO MULTIPLE NAME OCCURRENCES"));
    1.69 ++#endif
    1.70 + 
    1.71 +     /*
    1.72 +      * First resolution stage: compute link pointers corresponding to names.
    1.73 +Index: progs/Makefile.in
    1.74 +--- progs/Makefile.in.orig	2012-05-29 10:39:27.000000000 +0200
    1.75 ++++ progs/Makefile.in	2012-05-29 10:39:27.000000000 +0200
    1.76 +@@ -114,10 +114,10 @@
    1.77 + 
    1.78 + LDFLAGS_DEFAULT	= $(LDFLAGS_@DFT_UPR_MODEL@)
    1.79 + 
    1.80 +-LIBS_TIC	= @TINFO_LDFLAGS@ @LDFLAGS_STATIC@ @TICS_LIBS@ @TINFO_LIBS@ @LDFLAGS_SHARED@ @LD_MODEL@ @LIBS@
    1.81 ++LIBS_TIC	= @TINFO_LDFLAGS@ @TICS_LIBS@ @TINFO_LIBS@ @LDFLAGS_SHARED@ @LD_MODEL@ @LIBS@
    1.82 + LDFLAGS_TIC	= @TICS_LDFLAGS@ $(LDFLAGS_@DFT_UPR_MODEL@) $(LIBS_TIC)
    1.83 + 
    1.84 +-LIBS_TINFO	= @LDFLAGS_STATIC@ @TINFO_LIBS@ @LDFLAGS_SHARED@ @LD_MODEL@ @LIBS@
    1.85 ++LIBS_TINFO	= @TINFO_LIBS@ @LDFLAGS_SHARED@ @LD_MODEL@ @LIBS@
    1.86 + LDFLAGS_TINFO	= @TINFO_LDFLAGS@ $(LDFLAGS_@DFT_UPR_MODEL@) $(LIBS_TINFO)
    1.87 + 
    1.88 + LINT		= @LINT@
    1.89 +@@ -228,6 +228,7 @@
    1.90 + DEPS_TIC = \
    1.91 + 	$(MODEL)/tic$o \
    1.92 + 	$(MODEL)/dump_entry$o \
    1.93 ++	$(MODEL)/comp_parse$o \
    1.94 + 	$(MODEL)/transform$o
    1.95 + 
    1.96 + tic$x: $(DEPS_TIC) $(DEPS_CURSES) transform.h
    1.97 +@@ -253,6 +254,7 @@
    1.98 + 
    1.99 + DEPS_TPUT = \
   1.100 + 	$(MODEL)/tput$o \
   1.101 ++	$(MODEL)/lib_tparm$o \
   1.102 + 	$(MODEL)/transform$o
   1.103 + 
   1.104 + tput$x: $(DEPS_TPUT) $(DEPS_CURSES) transform.h
   1.105 +@@ -260,7 +262,8 @@
   1.106 + 
   1.107 + DEPS_INFOCMP = \
   1.108 + 	$(MODEL)/infocmp$o \
   1.109 +-	$(MODEL)/dump_entry$o
   1.110 ++	$(MODEL)/dump_entry$o \
   1.111 ++	$(MODEL)/comp_parse$o
   1.112 + 
   1.113 + infocmp$x: $(DEPS_INFOCMP) $(DEPS_CURSES)
   1.114 + 	@ECHO_LD@ $(LINK) $(DEPS_INFOCMP) $(LDFLAGS_TIC) -o $@
   1.115 +Index: test/Makefile.in
   1.116 +--- test/Makefile.in.orig	2012-05-29 10:39:26.000000000 +0200
   1.117 ++++ test/Makefile.in	2012-05-29 10:39:27.000000000 +0200
   1.118 +@@ -102,7 +102,7 @@
   1.119 + LDFLAGS_PROFILE	= $(LDFLAGS) $(CFLAGS_PROFILE)
   1.120 + LDFLAGS_SHARED	= $(LDFLAGS) $(CFLAGS_SHARED) @LD_SHARED_OPTS@
   1.121 + 
   1.122 +-TEST_ARGS	= @LDFLAGS_STATIC@ @TEST_ARGS@ @LDFLAGS_SHARED@
   1.123 ++TEST_ARGS	= @TEST_ARGS@
   1.124 + 
   1.125 + # use these for linking with all of the libraries
   1.126 + LIBS_DEFAULT	= $(TEST_ARGS) @LIBS@ $(TEST_LIBS) $(MATH_LIB)
   1.127 +@@ -117,7 +117,7 @@
   1.128 + LDFLAGS_CURSES	= $(LDFLAGS_@DFT_UPR_MODEL@) $(LIBS_CURSES)
   1.129 + 
   1.130 + # use these for linking with the tinfo library if we have it, or curses library if not
   1.131 +-LIBS_TINFO	= @LDFLAGS_STATIC@ @TINFO_LIBS@ @LDFLAGS_SHARED@ @LIBS@ $(TEST_LIBS) $(MATH_LIB)
   1.132 ++LIBS_TINFO	= @TINFO_LIBS@ @LIBS@ $(TEST_LIBS) $(MATH_LIB)
   1.133 + LDFLAGS_TINFO	= @TINFO_LDFLAGS@ $(LDFLAGS_@DFT_UPR_MODEL@) $(LIBS_TINFO)
   1.134 + 
   1.135 + LINT		= @LINT@
   1.136 +Index: test/programs
   1.137 +--- test/programs.orig	2009-09-12 21:44:01.000000000 +0200
   1.138 ++++ test/programs	2012-05-29 10:39:27.000000000 +0200
   1.139 +@@ -38,7 +38,7 @@
   1.140 + clip_printw	$(LDFLAGS_CURSES)	$(LOCAL_LIBS)	clip_printw
   1.141 + color_set	$(LDFLAGS_CURSES)	$(LOCAL_LIBS)	color_set
   1.142 + demo_altkeys	$(LDFLAGS_CURSES)	$(LOCAL_LIBS)	demo_altkeys
   1.143 +-demo_defkey	$(LDFLAGS_CURSES)	$(LOCAL_LIBS)	demo_defkey
   1.144 ++demo_defkey	$(LDFLAGS_CURSES)	$(LOCAL_LIBS)	demo_defkey key_defined
   1.145 + demo_forms	$(LDFLAGS_DEFAULT)	$(LOCAL_LIBS)	demo_forms edit_field
   1.146 + demo_keyok	$(LDFLAGS_CURSES)	$(LOCAL_LIBS)	demo_keyok
   1.147 + demo_menus	$(LDFLAGS_DEFAULT)	$(LOCAL_LIBS)	demo_menus
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/ncurses/ncurses.spec	Mon Sep 17 18:58:20 2012 +0200
     2.3 @@ -0,0 +1,197 @@
     2.4 +##
     2.5 +##  ncurses.spec -- OpenPKG RPM Package Specification
     2.6 +##  Copyright (c) 2000-2012 OpenPKG Foundation e.V. <http://openpkg.net/>
     2.7 +##
     2.8 +##  Permission to use, copy, modify, and distribute this software for
     2.9 +##  any purpose with or without fee is hereby granted, provided that
    2.10 +##  the above copyright notice and this permission notice appear in all
    2.11 +##  copies.
    2.12 +##
    2.13 +##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
    2.14 +##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
    2.15 +##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
    2.16 +##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
    2.17 +##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    2.18 +##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
    2.19 +##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
    2.20 +##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
    2.21 +##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
    2.22 +##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
    2.23 +##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    2.24 +##  SUCH DAMAGE.
    2.25 +##
    2.26 +
    2.27 +#   package versions
    2.28 +%define       V_base    5.9
    2.29 +%define       V_patch0  20111224
    2.30 +%define       V_patch1  20111231
    2.31 +%define       V_patch2  20120107
    2.32 +%define       V_patch3  20120114
    2.33 +%define       V_patch4  20120121
    2.34 +%define       V_patch5  20120128
    2.35 +%define       V_patch6  20120204
    2.36 +%define       V_patch7  20120211
    2.37 +%define       V_patch8  20120218
    2.38 +%define       V_patch9  20120225
    2.39 +%define       V_patch10 20120228
    2.40 +%define       V_patch11 20120303
    2.41 +%define       V_patch12 20120310
    2.42 +%define       V_patch13 20120317
    2.43 +%define       V_patch14 20120324
    2.44 +%define       V_patch15 20120331
    2.45 +%define       V_patch16 20120407
    2.46 +%define       V_patch17 20120414
    2.47 +%define       V_patch18 20120421
    2.48 +%define       V_patch19 20120428
    2.49 +%define       V_patch20 20120505
    2.50 +%define       V_patch21 20120512
    2.51 +%define       V_patch22 20120526
    2.52 +%define       V_patchB  %{V_patch0}
    2.53 +%define       V_patchL  %{V_patch22}
    2.54 +%define       V_patches 22
    2.55 +
    2.56 +#   package information
    2.57 +Name:         ncurses
    2.58 +Summary:      Terminal Capability and Display Library
    2.59 +URL:          http://www.gnu.org/software/ncurses/
    2.60 +Vendor:       Free Software Foundation
    2.61 +Packager:     OpenPKG Foundation e.V.
    2.62 +Distribution: OpenPKG Community
    2.63 +Class:        CORE
    2.64 +Group:        Terminal
    2.65 +License:      MIT-style
    2.66 +Version:      %{V_base}.%{V_patchL}
    2.67 +Release:      20120529
    2.68 +
    2.69 +#   list of sources
    2.70 +Source0:      ftp://invisible-island.net/ncurses/ncurses-%{V_base}.tar.gz
    2.71 +Patch0:       ftp://invisible-island.net/ncurses/%{V_base}/ncurses-%{V_base}-%{V_patch0}-patch.sh.bz2
    2.72 +Patch1:       ftp://invisible-island.net/ncurses/%{V_base}/ncurses-%{V_base}-%{V_patch1}.patch.gz
    2.73 +Patch2:       ftp://invisible-island.net/ncurses/%{V_base}/ncurses-%{V_base}-%{V_patch2}.patch.gz
    2.74 +Patch3:       ftp://invisible-island.net/ncurses/%{V_base}/ncurses-%{V_base}-%{V_patch3}.patch.gz
    2.75 +Patch4:       ftp://invisible-island.net/ncurses/%{V_base}/ncurses-%{V_base}-%{V_patch4}.patch.gz
    2.76 +Patch5:       ftp://invisible-island.net/ncurses/%{V_base}/ncurses-%{V_base}-%{V_patch5}.patch.gz
    2.77 +Patch6:       ftp://invisible-island.net/ncurses/%{V_base}/ncurses-%{V_base}-%{V_patch6}.patch.gz
    2.78 +Patch7:       ftp://invisible-island.net/ncurses/%{V_base}/ncurses-%{V_base}-%{V_patch7}.patch.gz
    2.79 +Patch8:       ftp://invisible-island.net/ncurses/%{V_base}/ncurses-%{V_base}-%{V_patch8}.patch.gz
    2.80 +Patch9:       ftp://invisible-island.net/ncurses/%{V_base}/ncurses-%{V_base}-%{V_patch9}.patch.gz
    2.81 +Patch10:      ftp://invisible-island.net/ncurses/%{V_base}/ncurses-%{V_base}-%{V_patch10}.patch.gz
    2.82 +Patch11:      ftp://invisible-island.net/ncurses/%{V_base}/ncurses-%{V_base}-%{V_patch11}.patch.gz
    2.83 +Patch12:      ftp://invisible-island.net/ncurses/%{V_base}/ncurses-%{V_base}-%{V_patch12}.patch.gz
    2.84 +Patch13:      ftp://invisible-island.net/ncurses/%{V_base}/ncurses-%{V_base}-%{V_patch13}.patch.gz
    2.85 +Patch14:      ftp://invisible-island.net/ncurses/%{V_base}/ncurses-%{V_base}-%{V_patch14}.patch.gz
    2.86 +Patch15:      ftp://invisible-island.net/ncurses/%{V_base}/ncurses-%{V_base}-%{V_patch15}.patch.gz
    2.87 +Patch16:      ftp://invisible-island.net/ncurses/%{V_base}/ncurses-%{V_base}-%{V_patch16}.patch.gz
    2.88 +Patch17:      ftp://invisible-island.net/ncurses/%{V_base}/ncurses-%{V_base}-%{V_patch17}.patch.gz
    2.89 +Patch18:      ftp://invisible-island.net/ncurses/%{V_base}/ncurses-%{V_base}-%{V_patch18}.patch.gz
    2.90 +Patch19:      ftp://invisible-island.net/ncurses/%{V_base}/ncurses-%{V_base}-%{V_patch19}.patch.gz
    2.91 +Patch20:      ftp://invisible-island.net/ncurses/%{V_base}/ncurses-%{V_base}-%{V_patch20}.patch.gz
    2.92 +Patch21:      ftp://invisible-island.net/ncurses/%{V_base}/ncurses-%{V_base}-%{V_patch21}.patch.gz
    2.93 +Patch22:      ftp://invisible-island.net/ncurses/%{V_base}/ncurses-%{V_base}-%{V_patch22}.patch.gz
    2.94 +Patch100:     ncurses.patch
    2.95 +
    2.96 +#   build information
    2.97 +BuildPreReq:  OpenPKG, openpkg >= 20100101
    2.98 +PreReq:       OpenPKG, openpkg >= 20100101
    2.99 +
   2.100 +%description
   2.101 +    NCurses is the GNU re-implementation of the popular SVR4 Curses
   2.102 +    terminal screen handling library. Its API is base-level conformant
   2.103 +    with the X/OPEN curses specification XSI Curses. It uses the
   2.104 +    Terminfo database format, supports pads and color and multiple
   2.105 +    highlights and forms characters and function-key mapping, and has
   2.106 +    all the other SVR4-Curses enhancements over original BSD Curses.
   2.107 +    Additionally, it provides full emulations of the SVR4 panels
   2.108 +    (supporting a stack of windows), forms (supporting data collection
   2.109 +    through on-screen forms) and menu (supporting a uniform interface
   2.110 +    for menu programming) companion libraries.
   2.111 +
   2.112 +%track
   2.113 +    prog ncurses = {
   2.114 +        version   = %{V_base}
   2.115 +        url       = ftp://invisible-island.net/ncurses/
   2.116 +        regex     = ncurses-(__VER__)\.tar\.gz
   2.117 +    }
   2.118 +    prog ncurses:patchbase = {
   2.119 +        disabled
   2.120 +        version   = %{V_patchB}
   2.121 +        url       = ftp://invisible-island.net/ncurses/
   2.122 +        regex     = (\d+\.\d+)
   2.123 +        url       = ftp://invisible-island.net/ncurses/__NEWVER__/
   2.124 +        regex     = ncurses-__NEWVER__-(\d+)-patch\.sh\.bz2
   2.125 +    }
   2.126 +    prog ncurses:patchset = {
   2.127 +        version   = %{V_patchL}
   2.128 +        url       = ftp://invisible-island.net/ncurses/
   2.129 +        regex     = (\d+\.\d+)
   2.130 +        url       = ftp://invisible-island.net/ncurses/__NEWVER__/
   2.131 +        regex     = ncurses-__NEWVER__-(\d+)\.patch\.gz
   2.132 +    }
   2.133 +
   2.134 +%prep
   2.135 +    %setup -q -n ncurses-%{V_base}
   2.136 +    for patchfile in \
   2.137 +        %{expand:%(i=0; while [ $i -le %{V_patches} ]; do %{l_shtool} echo -n " %%{PATCH$i}"; i=`expr $i + 1`; done)}
   2.138 +    do
   2.139 +        case "$patchfile" in
   2.140 +            *-patch.sh.bz2 ) %{l_bzip2} -d -c $patchfile | %{l_patch} -p1 -f || true ;;
   2.141 +            *-patch.sh.gz  ) %{l_bzip2} -d -c $patchfile | %{l_patch} -p1 -f || true ;;
   2.142 +            *.sh.bz2       ) %{l_bzip2} -d -c $patchfile | sed -e 's;gzip -dc;%{l_gzip} -dc;' -e 's;patch -p1;%{l_patch} -p1 -f;' | sh - || true ;;
   2.143 +            *.sh.gz        ) %{l_gzip}  -d -c $patchfile | sed -e 's;gzip -dc;%{l_gzip} -dc;' -e 's;patch -p1;%{l_patch} -p1 -f;' | sh - || true ;;
   2.144 +            *.patch.bz2    ) %{l_bzip2} -d -c $patchfile | %{l_patch} -p1 -f || true ;;
   2.145 +            *.patch.gz     ) %{l_gzip}  -d -c $patchfile | %{l_patch} -p1 -f || true ;;
   2.146 +            * )
   2.147 +                echo "Unknown patch format" | %{l_rpmtool} msg -b -t error 1>&2
   2.148 +                exit 1
   2.149 +                ;;
   2.150 +        esac
   2.151 +    done
   2.152 +    find . -name "*.orig" -print | xargs rm -f
   2.153 +    %patch -p0 -P 100
   2.154 +
   2.155 +%build
   2.156 +    %{l_shtool} subst \
   2.157 +        -e 's;SRC_SUBDIRS test;SRC_SUBDIRS;' \
   2.158 +        configure
   2.159 +    CC="%{l_cc}" \
   2.160 +    CPPFLAGS="%{l_cppflags}" \
   2.161 +    CFLAGS="%{l_cflags}" \
   2.162 +    ./configure \
   2.163 +        --prefix=%{l_prefix} \
   2.164 +        --includedir=%{l_prefix}/include/ncurses \
   2.165 +        --datadir=%{l_prefix}/share/ncurses \
   2.166 +        --enable-hashmap \
   2.167 +        --enable-safe-sprintf \
   2.168 +        --without-debug \
   2.169 +        --with-manpage-format=normal \
   2.170 +        --disable-getcap-cache \
   2.171 +        --without-cxx-binding \
   2.172 +        --without-cxx \
   2.173 +        --without-gpm \
   2.174 +        --enable-termcap \
   2.175 +        --disable-overwrite
   2.176 +    %{l_make} %{l_mflags}
   2.177 +
   2.178 +%install
   2.179 +    %{l_shtool} subst -e "s;ln -s;ln;g" edit_man.sh
   2.180 +    %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
   2.181 +    ( cd $RPM_BUILD_ROOT%{l_prefix}/man
   2.182 +      for dir in man1 man3; do
   2.183 +          cd $dir
   2.184 +          for file in *.[13][a-z]*; do
   2.185 +              if [ ".$file" = ".*.[13][a-z]*" ]; then
   2.186 +                  break
   2.187 +              fi
   2.188 +              eval `echo "$file" | sed -e 's;^\(.*\.[13]\)[a-z]*$;base=\1;'`
   2.189 +              mv $file ncurses_$base
   2.190 +          done
   2.191 +          cd ..
   2.192 +      done
   2.193 +    ) || exit $?
   2.194 +    strip $RPM_BUILD_ROOT%{l_prefix}/bin/* 2>/dev/null || true
   2.195 +    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
   2.196 +
   2.197 +%files -f files
   2.198 +
   2.199 +%clean
   2.200 +

mercurial