1 # 2 # spec file for package SUNWdialog 3 # 4 # Copyright 2008 Sun Microsystems, Inc. 5 # This file and all modifications and additions to the pristine 6 # package are under the same license as the package itself. 7 # 8 %define owner wangke 9 # 10 %include Solaris.inc 11 12 %define OSR 9391:1.x 13 14 Name: SUNWdialog 15 Summary: dialog - display dialog boxes from shell scripts 16 License: LGPL v2.1 17 Group: utilities/scripting 18 %define year 2008 19 %define month 08 20 %define day 19 21 Version: 1.1.%{year}.%{month}.%{day} 22 %define tarball_version 1.1-%{year}%{month}%{day} 23 Source: ftp://invisible-island.net/dialog/dialog-%{tarball_version}.tgz 24 # date:2009-02-24 owner:wangke type:branding 25 Patch1: dialog-01-manpages.diff 26 SUNW_BaseDir: %{_basedir} 27 SUNW_Copyright: %{name}.copyright 28 BuildRoot: %{_tmppath}/%{name}-%{tarball_version}-build 29 %include default-depend.inc 30 Requires: SUNWsndmu 31 Requires: SUNWlibms 32 Requires: SUNWbash 33 Requires: SUNWncurses 34 BuildRequires: SUNWgnu-gettext 35 BuildRequires: SUNWncurses-devel 36 37 %if %build_l10n 38 %package l10n 39 Summary: %{summary} - l10n files 40 SUNW_BaseDir: %{_basedir} 41 %include default-depend.inc 42 Requires: %{name} 43 %endif 44 45 %prep 46 %setup -q -n dialog-%tarball_version 47 %patch1 -p1 48 49 %build 50 export CFLAGS="-I/usr/include/ncurses -D_XOPEN_SOURCE_EXTENDED %optflags" 51 export LDFLAGS="-L/usr/gnu/lib -R/usr/gnu/lib %_ldflags -lncurses" 52 53 ./configure --prefix=%{_prefix} \ 54 --enable-included-msgs \ 55 --enable-nls \ 56 --enable-widec \ 57 --mandir=%{_mandir} 58 59 make 60 61 %install 62 rm -rf $RPM_BUILD_ROOT 63 install -d $RPM_BUILD_ROOT%{_datadir}/doc/dialog/examples 64 rm -fr samples/copifuncs 65 rm -fr samples/install 66 install samples/* $RPM_BUILD_ROOT%{_datadir}/doc/dialog/examples/ 67 make install DESTDIR=$RPM_BUILD_ROOT 68 69 %if %build_l10n 70 %else 71 # REMOVE l10n FILES 72 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale 73 %endif 74 75 %clean 76 rm -rf $RPM_BUILD_ROOT 77 78 %files 79 %defattr (-, root, bin) 80 %dir %attr (0755, root, bin) %{_bindir} 81 %{_bindir}/* 82 %dir %attr(0755, root, sys) %{_datadir} 83 %dir %attr(0755, root, bin) %{_mandir} 84 %dir %attr(0755, root, bin) %{_mandir}/man1 85 %{_mandir}/man1/* 86 %dir %attr (0755, root, other) %{_datadir}/doc 87 %dir %attr (0755, root, bin) %{_datadir}/doc/dialog 88 %dir %attr (0755, root, bin) %{_datadir}/doc/dialog/examples 89 %{_datadir}/doc/dialog/examples/* 90 %doc README 91 %doc(bzip2) COPYING CHANGES 92 93 %if %build_l10n 94 %files l10n 95 %defattr (-, root, bin) 96 %dir %attr (0755, root, sys) %{_datadir} 97 %attr (-, root, other) %{_datadir}/locale 98 %endif 99 100 %changelog 101 * Thu Mar 26 2009 - takao.fujiwara@sun.com 102 - Remove patch build.diff and g11n-multibyte-input.diff because 103 SUNWncurses is available now. Use /usr/gnu instead of /usr/xpg4. 104 * Tue Feb 10 2009 - halton.huo@sun.com 105 - Add Requires: SUNWbash to fix issue #10 for CR6753371 106 * Wed Sep 17 2008 - jim.li@sun.com 107 - Revised new copyright file 108 * Mon Aug 11 2008 - takao.fujiwara@sun.com 109 - Add dialog-02-g11n-multibyte-input.diff to support multi-byte CLI. 110 * Fri Aug 08 2008 - takao.fujiwara@sun.com 111 - Bumped to 1.1-20080727 to enable USE_WIDE_CURSES & HAVE_WGET_WCH in dlg_config.h 112 - Add --enable-widec option in configure. 113 * Wed Jul 23 2008 - takao.fujiwara@sun.com 114 - Add l10n packages 115 * Tue Jul 22 2008 - damien.carbery@sun.com 116 - Remove l10n package because no l10n files are installed. 117 * Wed Jul 9 2008 - jim.li@sun.com 118 - Copied from SFEdialog and rename to SUNWdialog 119 * Thu Jan 11 2007 - laca@sun.com 120 - fix version string to be numeric; use the versioned tarball 121 * Thu Jun 22 2006 - laca@sun.com 122 - rename to SFEdialog 123 - delete -share pkg 124 - remove unnecessary CFLAGS and LDFLAGS 125 - add missing dep 126 * Thu May 04 2006 - damien.carbery@sun.com 127 - Bump version to match dir name inside tarball. Fix share package perms. 128 * Sun Jan 29 2006 - mike kiedrowski (lakeside-AT-cybrzn-DOT-com) 129 - Initial spec 130 131