SUNWdialog.spec revision 19013
10139N/A#
10139N/A# spec file for package SUNWdialog
10139N/A#
12251N/A# Copyright 2010 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%define owner wangke
10139N/A#
10139N/A%include Solaris.inc
11195N/A
10139N/A%define OSR 9391:1.x
10139N/A
12467N/AName: SUNWdialog
10139N/AIPS_package_name: terminal/dialog
10139N/AMeta(info.classification): %{classification_prefix}:Applications/System Utilities
10139N/ASummary: dialog - display dialog boxes from shell scripts
10139N/ALicense: LGPL v2.1
11838N/AVendor: invidible-island.net/dialog
10142N/AGroup: utilities/scripting
10139N/A%define year 2010
11195N/A%define month 01
10529N/A%define day 19
12248N/AVersion: 1.1
10139N/A%define tarball_version %{version}-%{year}%{month}%{day}
12248N/ASource: ftp://invisible-island.net/dialog/dialog-%{tarball_version}.tgz
10139N/A# date:2009-02-24 owner:wangke type:branding
12248N/APatch1: dialog-01-manpages.diff
11352N/ASUNW_BaseDir: %{_basedir}
12248N/ASUNW_Copyright: %{name}.copyright
10139N/ABuildRoot: %{_tmppath}/%{name}-%{tarball_version}-build
10139N/A%include default-depend.inc
10139N/ARequires: SUNWsndmu
10139N/ARequires: SUNWlibms
10139N/ARequires: SUNWbash
10139N/ARequires: SUNWncurses
10139N/ABuildRequires: SUNWgnu-gettext
10139N/ABuildRequires: SUNWncurses-devel
10139N/A
10139N/A%if %build_l10n
10139N/A%package l10n
10139N/ASummary: %{summary} - l10n files
10139N/ASUNW_BaseDir: %{_basedir}
10139N/A%include default-depend.inc
10139N/ARequires: %{name}
10139N/A%endif
10139N/A
10139N/A%prep
10139N/A%setup -q -n dialog-%tarball_version
10139N/A%patch1 -p1
10139N/A
10139N/A%build
10139N/Aexport CFLAGS="-I/usr/include/ncurses -D_XOPEN_SOURCE_EXTENDED %optflags"
10139N/Aexport LDFLAGS="-L/usr/gnu/lib -R/usr/gnu/lib %_ldflags -lncurses"
10139N/A
10139N/A./configure --prefix=%{_prefix} \
10139N/A --enable-included-msgs \
10139N/A --enable-nls \
10139N/A --enable-widec \
10139N/A --mandir=%{_mandir}
10139N/A
10139N/Amake
10139N/A
10139N/A%install
10139N/Arm -rf $RPM_BUILD_ROOT
10139N/Ainstall -d $RPM_BUILD_ROOT%{_datadir}/doc/dialog/examples
10139N/Arm -fr samples/copifuncs
10139N/Arm -fr samples/install
10139N/Ainstall samples/* $RPM_BUILD_ROOT%{_datadir}/doc/dialog/examples/
10139N/Amake install DESTDIR=$RPM_BUILD_ROOT
10139N/A
10139N/A%if %build_l10n
10139N/A%else
10139N/A# REMOVE l10n FILES
10139N/Arm -rf $RPM_BUILD_ROOT%{_datadir}/locale
10139N/A%endif
10139N/A
10139N/A%clean
10139N/Arm -rf $RPM_BUILD_ROOT
10139N/A
10139N/A%files
10139N/A%defattr (-, root, bin)
10139N/A%dir %attr (0755, root, bin) %{_bindir}
10139N/A%{_bindir}/*
10142N/A%dir %attr(0755, root, sys) %{_datadir}
10139N/A%dir %attr(0755, root, bin) %{_mandir}
10139N/A%dir %attr(0755, root, bin) %{_mandir}/man1
11195N/A%{_mandir}/man1/*
12248N/A%dir %attr (0755, root, other) %{_datadir}/doc
10139N/A%dir %attr (0755, root, bin) %{_datadir}/doc/dialog
10139N/A%dir %attr (0755, root, bin) %{_datadir}/doc/dialog/examples
10139N/A%{_datadir}/doc/dialog/examples/*
10139N/A%doc README
10139N/A%doc(bzip2) COPYING CHANGES
10139N/A
10139N/A%if %build_l10n
10139N/A%files l10n
10139N/A%defattr (-, root, bin)
10139N/A%dir %attr (0755, root, sys) %{_datadir}
10139N/A%attr (-, root, other) %{_datadir}/locale
10139N/A%endif
10139N/A
10139N/A%changelog
10139N/A* Fri Jan 22 2010 - ke.wang@sun.com
10139N/A- Bump to 1.1-20100119
10139N/A* Thu Mar 26 2009 - takao.fujiwara@sun.com
10139N/A- Remove patch build.diff and g11n-multibyte-input.diff because
10139N/A SUNWncurses is available now. Use /usr/gnu instead of /usr/xpg4.
10139N/A* Tue Feb 10 2009 - halton.huo@sun.com
10139N/A- Add Requires: SUNWbash to fix issue #10 for CR6753371
10139N/A* Wed Sep 17 2008 - jim.li@sun.com
10139N/A- Revised new copyright file
10139N/A* Mon Aug 11 2008 - takao.fujiwara@sun.com
10139N/A- Add dialog-02-g11n-multibyte-input.diff to support multi-byte CLI.
10139N/A* Fri Aug 08 2008 - takao.fujiwara@sun.com
10139N/A- Bumped to 1.1-20080727 to enable USE_WIDE_CURSES & HAVE_WGET_WCH in dlg_config.h
10139N/A- Add --enable-widec option in configure.
10139N/A* Wed Jul 23 2008 - takao.fujiwara@sun.com
10139N/A- Add l10n packages
10139N/A* Tue Jul 22 2008 - damien.carbery@sun.com
10139N/A- Remove l10n package because no l10n files are installed.
10139N/A* Wed Jul 9 2008 - jim.li@sun.com
10139N/A- Copied from SFEdialog and rename to SUNWdialog
10139N/A* Thu Jan 11 2007 - laca@sun.com
11271N/A- fix version string to be numeric; use the versioned tarball
10139N/A* Thu Jun 22 2006 - laca@sun.com
10139N/A- rename to SFEdialog
10139N/A- delete -share pkg
10139N/A- remove unnecessary CFLAGS and LDFLAGS
10139N/A- add missing dep
10139N/A* Thu May 04 2006 - damien.carbery@sun.com
10139N/A- Bump version to match dir name inside tarball. Fix share package perms.
10139N/A* Sun Jan 29 2006 - mike kiedrowski (lakeside-AT-cybrzn-DOT-com)
10139N/A- Initial spec
10139N/A
10139N/A