16948N/A#
16948N/A# spec file for package tack
16948N/A#
16948N/A# Copyright (c) 2009 Sun Microsystems, Inc.
16948N/A# This file and all modifications and additions to the pristine
16948N/A# package are under the same license as the package itself.
16948N/A#
17185N/A%define owner jouby
16948N/A# bugdb :
16948N/A#
16948N/A
18593N/A%define OSR 12493:1.06
18593N/A
16948N/AName: tack
19892N/A# remember to update the Version in SUNWtack.spec as well!
16948N/AVersion: 1.06
16948N/ARelease: 1
16948N/ALicense: GPLv2
18593N/AVendor: gnu.org
16948N/AGroup: System/Libraries
16948N/ADistribution: Java Desktop System
16948N/AVendor: Sun Microsystems, Inc.
16948N/ASummary: Tack is a diagnostic that is designed to create and verify the correctness of terminfo's
16948N/ASource: http://ftp.gnu.org/pub/gnu/ncurses/%{name}-%{version}.tar.gz
16948N/AURL: http://www.gnu.org/software/ncurses/
16948N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
16948N/ADocdir: %{_defaultdocdir}/ncurses
16948N/AAutoreqprov: on
16948N/A
16948N/A%description
16948N/AThis program is a diagnostic that is designed to create and
16948N/Averify the correctness of terminfo's. This program can be used to
16948N/Acreate new terminal descriptions that are not included in the standard
16948N/Arelease.
16948N/A
16948N/A%prep
16948N/A%setup -q
16948N/A
16948N/A%build
16948N/A%ifos linux
16948N/Aif [ -x /usr/bin/getconf ]; then
16948N/A CPUS=`getconf _NPROCESSORS_ONLN`
16948N/Afi
16948N/A%else
16948N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
16948N/A%endif
16948N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
16948N/A CPUS=1
16948N/Afi
16948N/A
16948N/ACFLAGS="$RPM_OPT_FLAGS" \
16948N/A./configure --prefix=%{_prefix} --mandir=%{_mandir} --sysconfdir=%{_sysconfdir} --includedir=%{_preincludedir} --datadir=%{_datadir} --bindir=%{_bindir} --libdir=%{_libdir} --enable-widec
16948N/A
16948N/Amake -j $CPUS
16948N/A
16948N/A%install
16948N/Amake DESTDIR=$RPM_BUILD_ROOT install
16948N/A
16948N/Afind $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
16948N/Afind $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
16948N/A
16948N/A%files
16948N/A%defattr(-, root, root)
16948N/A%{_bindir}/*
16948N/A
16948N/A
16948N/A%clean
16948N/Arm -r $RPM_BUILD_ROOT
16948N/A
16948N/A%changelog
16948N/A* Tue Jul 26 2009 - yuntong.jin@sun.com
16948N/A- Initial spec file created.