13873N/A#
13873N/A# spec file for package ncurses
13873N/A#
17253N/A# Copyright 2009 Sun Microsystems, Inc.
13873N/A# This file and all modifications and additions to the pristine
13873N/A# package are under the same license as the package itself.
13873N/A#
17185N/A%define owner jouby
13873N/A# bugdb :
13873N/A#
17182N/A
17182N/A%define OSR 12492:5.7
17182N/A
13873N/AName: ncurses
16819N/AVersion: 5.7
13873N/ARelease: 1
13873N/ALicense: MIT
13873N/AGroup: System/Libraries
13873N/ADistribution: Java Desktop System
18616N/AVendor: Other
13873N/ASummary: A CRT screen handling and optimization package.
13897N/ASource: http://ftp.gnu.org/pub/gnu/%{name}/%{name}-%{version}.tar.gz
16636N/A# date:2008-09-12 owner:jouby type:branding
14297N/APatch0: ncurses-01-widec.diff
16636N/A# date:2009-06-06 owner:jouby type:branding bugster:6754653
16615N/APatch1: ncurses-02-rpath.diff
13873N/AURL: http://www.gnu.org/software/ncurses/
13873N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
13873N/ADocdir: %{_defaultdocdir}/ncurses
13873N/AAutoreqprov: on
13873N/A
13873N/A%description
13873N/AThe curses library routines are a terminal-independent method of
13873N/Aupdating character screens with reasonable optimization.
13873N/A
13873N/A%package devel
13873N/ASummary: The development files for applications which use ncurses.
13873N/AGroup: Development/Libraries
13873N/ARequires: %name = %version
13873N/AAutoreqprov: on
13873N/A
13873N/A%description devel
13873N/AThe header files and libraries for developing applications that use
13873N/Athe ncurses CRT screen handling and optimization package.
13873N/A
13873N/A%prep
13873N/A%setup -q
14297N/A%patch0 -p1
16615N/A%patch1 -p1
17253N/Achmod +w ANNOUNCE AUTHORS MANIFEST NEWS README
13873N/A
13873N/A%build
13873N/A%ifos linux
13873N/Aif [ -x /usr/bin/getconf ]; then
13873N/A CPUS=`getconf _NPROCESSORS_ONLN`
13873N/Afi
13873N/A%else
13873N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
13873N/A%endif
13873N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
13873N/A CPUS=1
13873N/Afi
13873N/A
16585N/A%define _preincludedir /usr/include/ncurses
16585N/A
13897N/ACFLAGS="$RPM_OPT_FLAGS" \
13897N/A./configure \
13897N/A --prefix=%{_prefix} \
13873N/A --sysconfdir=%{_sysconfdir} \
16585N/A --includedir=%{_preincludedir} \
13897N/A --datadir=%{_datadir} \
16585N/A --bindir=%{_bindir} \
16950N/A --mandir=%{_mandir} \
16585N/A --libdir=%{_libdir} \
13897N/A --with-normal \
13897N/A --with-shared \
16615N/A --enable-rpath \
14297N/A --enable-widec \
13897N/A%if %debug_build
13897N/A --with-debug
13897N/A%else
13873N/A --without-debug
13897N/A%endif
13873N/A
13873N/Amake -j $CPUS
13873N/A
13873N/A%install
13873N/Amake DESTDIR=$RPM_BUILD_ROOT install \
13873N/A SITEPREFIX=/dummy VENDORPREFIX=/dummy PERLPREFIX=/dummy
16950N/A
16950N/A#rm -rf $RPM_BUILD_ROOT/%{_prefix}/man
16585N/Arm -rf $RPM_BUILD_ROOT%{_libdir}/*.a
13873N/A
13873N/A%files
13873N/A%defattr(-, root, root)
13873N/A%{_bindir}/*
13873N/A%{_libdir}/*.so
13873N/A%{_libdir}/*.so.*
13873N/A%{_datadir}/terminfo/*
13873N/A%{_datadir}/tabset/*
13873N/A
13873N/A%files devel
13873N/A%defattr(-, root, root)
16585N/A%{_preincludedir}/*.h
13873N/A
13873N/A%clean
13873N/Arm -r $RPM_BUILD_ROOT
13873N/A
13873N/A%changelog
16583N/A* Tue Jue 02 2009 - yuntong.jin@sun.com
16583N/A- change the owner to yuntong.jin
16583N/A- fix bug 6754653
16585N/A- fix bug 9168
16585N/A- fix bug 9267
14297N/A* Fri Sep 12 2008 - rick.ju@sun.com
14297N/A- Add widechar support
13897N/A* Mon Aug 18 2008 - rick.ju@sun.com
13897N/A- use /usr/gnu as prefix
13873N/A* Tue Jul 18 2008 - rick.ju@sun.com
13873N/A- Initial spec file created.