You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
173 lines
7.5 KiB
173 lines
7.5 KiB
## |
|
## ncurses.spec -- OpenPKG RPM Specification |
|
## Copyright (c) 2000-2003 The OpenPKG Project <http://www.openpkg.org/> |
|
## Copyright (c) 2000-2003 Ralf S. Engelschall <rse@engelschall.com> |
|
## Copyright (c) 2000-2003 Cable & Wireless <http://www.cw.com/> |
|
## |
|
## Permission to use, copy, modify, and distribute this software for |
|
## any purpose with or without fee is hereby granted, provided that |
|
## the above copyright notice and this permission notice appear in all |
|
## copies. |
|
## |
|
## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED |
|
## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
|
## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
|
## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR |
|
## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
|
## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
|
## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF |
|
## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
|
## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
|
## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT |
|
## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
|
## SUCH DAMAGE. |
|
## |
|
|
|
# package versions |
|
%define V_base 5.3 |
|
%define V_patch0 20021231 |
|
%define V_patch1 20030105 |
|
%define V_patch2 20030111 |
|
%define V_patch3 20030118 |
|
%define V_patch4 20030125 |
|
%define V_patch5 20030201 |
|
%define V_patch6 20030208 |
|
%define V_patch7 20030215 |
|
%define V_patch8 20030222 |
|
%define V_patch9 20030301 |
|
%define V_patch10 20030308 |
|
%define V_patch11 20030315 |
|
%define V_patch12 20030322 |
|
%define V_patch13 20030329 |
|
%define V_patch14 20030405 |
|
%define V_patch15 20030412 |
|
%define V_patch16 20030419 |
|
%define V_patch17 20030503 |
|
%define V_patch18 20030510 |
|
%define V_patch19 20030517 |
|
%define V_patch20 20030524 |
|
%define V_patch21 20030531 |
|
%define V_patch22 20030607 |
|
%define V_patch23 20030614 |
|
%define V_patch24 20030621 |
|
%define V_patch25 20030628 |
|
%define V_patch26 20030705 |
|
%define V_patch27 20030712 |
|
%define V_patch28 20030719 |
|
%define V_patchL %{V_patch28} |
|
%define V_patches 28 |
|
|
|
# package information |
|
Name: ncurses |
|
Summary: Terminal Capability and Display Library |
|
URL: http://www.gnu.org/software/ncurses/ |
|
Vendor: Free Software Foundation |
|
Packager: The OpenPKG Project |
|
Distribution: OpenPKG [BASE] |
|
Group: Terminal |
|
License: GPL |
|
Version: %{V_base}.%{V_patchL} |
|
Release: 20030723 |
|
|
|
# list of sources |
|
Source0: ftp://invisible-island.net/ncurses/ncurses-%{V_base}.tar.gz |
|
Patch0: ftp://invisible-island.net/ncurses/%{V_base}/patch-%{V_base}-%{V_patch0}.sh.gz |
|
Patch1: ftp://invisible-island.net/ncurses/%{V_base}/ncurses-%{V_base}-%{V_patch1}.patch.gz |
|
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 |
|
Patch5: ftp://invisible-island.net/ncurses/%{V_base}/ncurses-%{V_base}-%{V_patch5}.patch.gz |
|
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 |
|
Patch19: ftp://invisible-island.net/ncurses/%{V_base}/ncurses-%{V_base}-%{V_patch19}.patch.gz |
|
Patch20: ftp://invisible-island.net/ncurses/%{V_base}/ncurses-%{V_base}-%{V_patch20}.patch.gz |
|
Patch21: ftp://invisible-island.net/ncurses/%{V_base}/ncurses-%{V_base}-%{V_patch21}.patch.gz |
|
Patch22: ftp://invisible-island.net/ncurses/%{V_base}/ncurses-%{V_base}-%{V_patch22}.patch.gz |
|
Patch23: ftp://invisible-island.net/ncurses/%{V_base}/ncurses-%{V_base}-%{V_patch23}.patch.gz |
|
Patch24: ftp://invisible-island.net/ncurses/%{V_base}/ncurses-%{V_base}-%{V_patch24}.patch.gz |
|
Patch25: ftp://invisible-island.net/ncurses/%{V_base}/ncurses-%{V_base}-%{V_patch25}.patch.gz |
|
Patch26: ftp://invisible-island.net/ncurses/%{V_base}/ncurses-%{V_base}-%{V_patch26}.patch.gz |
|
Patch27: ftp://invisible-island.net/ncurses/%{V_base}/ncurses-%{V_base}-%{V_patch27}.patch.gz |
|
Patch28: ftp://invisible-island.net/ncurses/%{V_base}/ncurses-%{V_base}-%{V_patch28}.patch.gz |
|
|
|
# build information |
|
Prefix: %{l_prefix} |
|
BuildRoot: %{l_buildroot} |
|
BuildPreReq: OpenPKG, openpkg >= 20020206 |
|
PreReq: OpenPKG, openpkg >= 20020206 |
|
AutoReq: no |
|
AutoReqProv: no |
|
|
|
%description |
|
NCurses is the GNU re-implementation of the popular Curses |
|
terminal screen handling library. |
|
|
|
%prep |
|
%setup -q -n ncurses-%{V_base} |
|
( %{l_gzip} -d -c %{PATCH0} >patchbase.sh |
|
%{l_shtool} subst \ |
|
-e 's;gzip -dc;%{l_gzip} -dc;' \ |
|
-e 's;patch -p1;%{l_patch} -p1;' \ |
|
patchbase.sh |
|
sh patchbase.sh |
|
) || exit $? |
|
for patchfile in \ |
|
%{expand:%(i=1; while [ $i -le %{V_patches} ]; do %{l_shtool} echo -n " %%{PATCH$i}"; i=`expr $i + 1`; done)} |
|
do |
|
%{l_gzip} -d -c $patchfile | %{l_patch} -p1 || true |
|
done |
|
|
|
%build |
|
CC="%{l_cc}" \ |
|
CFLAGS="%{l_cflags}" \ |
|
./configure \ |
|
--prefix=%{l_prefix} \ |
|
--includedir=%{l_prefix}/include/ncurses \ |
|
--datadir=%{l_prefix}/share/ncurses \ |
|
--enable-hashmap \ |
|
--enable-safe-sprintf \ |
|
--without-debug \ |
|
--with-manpage-format=normal \ |
|
--disable-getcap-cache \ |
|
--without-cxx-binding \ |
|
--without-cxx \ |
|
--enable-termcap \ |
|
--disable-overwrite |
|
%{l_make} %{l_mflags} |
|
|
|
%install |
|
rm -rf $RPM_BUILD_ROOT |
|
%{l_shtool} subst -e "s;ln -s;ln;g" man/edit_man.sh |
|
%{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT |
|
( cd $RPM_BUILD_ROOT%{l_prefix}/man |
|
for dir in man1 man3; do |
|
cd $dir |
|
for file in *.[13][a-z]*; do |
|
if [ ".$file" = ".*.[13][a-z]*" ]; then |
|
break |
|
fi |
|
eval `echo "$file" | sed -e 's;^\(.*\.[13]\)[a-z]*$;base=\1;'` |
|
mv $file ncurses_$base |
|
done |
|
cd .. |
|
done |
|
) || exit $? |
|
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* 2>/dev/null || true |
|
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} |
|
|
|
%files -f files |
|
|
|
%clean |
|
rm -rf $RPM_BUILD_ROOT |
|
|
|
|