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