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