Hi, On Sat, 2005-10-29 at 10:31 +1300, Glynn Foster wrote: > I'd totally encourage people to try it out and start creating their own > spec files with it. Just as a bonus, I've attached 2 *new* spec files to > start you off, Emacs and XChat - all a developer needs, right? Hopefully > over the next couple of weeks we can put together a repository of spec > files and patches that people can grab to build their own Solaris > packages for.
So looking back over some emails trying to figure out why everyone sucks and haven't been sending their spec files, I noticed that I actually didn't sent XChat like I intended. Attached now - along with fetchmail for a proof of concept to potentially replace the companion CD. It's that easy. Glynn -------------- next part -------------- # # spec file for package SUNWxchat.spec # # includes module(s): xchat # # Copyright (c) 2004 Sun Microsystems, Inc. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # %include Solaris.inc Name: SUNWxchat Summary: Xchat Version: 2.4.5 Source: http://www.xchat.org/files/source/2.4/xchat-%{version}.tar.bz2 Patch1: xchat-01-gettext.diff SUNW_BaseDir: %{_basedir} BuildRoot: %{_tmppath}/%{name}-%{version}-build %include default-depend.inc BuildRequires: SUNWgnome-libs-devel BuildRequires: CBEbison BuildRequires: SUNWPython Requires: SUNWgnome-libs Requires: SUNWxchat-share %package share Summary: Xchat - platform independent files, /usr/share SUNW_BaseDir: %{_basedir} %include default-depend.inc %prep %setup -q -n xchat-%version %patch1 -p1 touch NEWS %build CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` if test "x$CPUS" = "x" -o $CPUS = 0; then CPUS=1 fi export CFLAGS="%optflags -I/usr/sfw/include -DANSICPP" export RPM_OPT_FLAGS="$CFLAGS" export ACLOCAL_FLAGS="-I %{_datadir}/aclocal" export PERL5LIB=%{_prefix}/perl5/site_perl/5.6.1/sun4-solaris-64int export CPPFLAGS="-I/usr/sfw/include" export LDFLAGS="-L/usr/sfw/lib -R/usr/sfw/lib" export MSGFMT="/usr/bin/msgfmt" glib-gettextize -f libtoolize --copy --force intltoolize --copy --force --automake aclocal $ACLOCAL_FLAGS autoheader automake -a -c -f autoconf ./configure --prefix=%{_prefix} --mandir=%{_mandir} \ --libdir=%{_libdir} \ --libexecdir=%{_libexecdir} \ --sysconfdir=%{_sysconfdir} --disable-python make -j$CPUS %install make install DESTDIR=$RPM_BUILD_ROOT #FIXME: Should create an l10n package rm -rf $RPM_BUILD_ROOT%{_datadir}/locale rm -rf $RPM_BUILD_ROOT%{_libdir}/xchat/plugins/*.la %clean rm -rf $RPM_BUILD_ROOT %files %defattr (-, root, other) %dir %attr (0755, root, bin) %{_bindir} %{_bindir}/* %dir %attr (0755, root, bin) %{_libdir} %{_libdir}/* %files share %defattr (-, root, other) %dir %attr (0755, root, sys) %{_datadir} %{_datadir}/applications %{_datadir}/pixmaps %changelog * Wed Oct 12 2005 - laca at sun.com - update to 2.4.5; fix * Thu Jan 06 2004 - Brian.Cameron at sun.com - created -------------- next part -------------- # # spec file for package SUNWfetchmail.spec # # includes module(s): fetchmail # # Copyright (c) 2004 Sun Microsystems, Inc. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # %include Solaris.inc Name: SUNWfetchmail Summary: Fetchmail Version: 6.2.5 Source: http://www.catb.org/~esr/fetchmail/fetchmail-%{version}.tar.gz Patch1: fetchmail-01-gettext.diff SUNW_BaseDir: %{_basedir} BuildRoot: %{_tmppath}/%{name}-%{version}-build %include default-depend.inc %prep %setup -q -n fetchmail-%version %patch1 -p1 %build CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` if test "x$CPUS" = "x" -o $CPUS = 0; then CPUS=1 fi export CFLAGS="%optflags -I/usr/sfw/include -DANSICPP" export RPM_OPT_FLAGS="$CFLAGS" export ACLOCAL_FLAGS="-I %{_datadir}/aclocal" export PERL5LIB=%{_prefix}/perl5/site_perl/5.6.1/sun4-solaris-64int export CPPFLAGS="-I/usr/sfw/include" export LDFLAGS="-L/usr/sfw/lib -R/usr/sfw/lib" export MSGFMT="/usr/bin/msgfmt" glib-gettextize -f libtoolize --copy --force intltoolize --copy --force --automake aclocal $ACLOCAL_FLAGS autoheader autoconf ./configure --prefix=%{_prefix} \ --mandir=%{_mandir} \ --libdir=%{_libdir} \ --libexecdir=%{_libexecdir} \ --sysconfdir=%{_sysconfdir} \ --enable-POP3 --enable-IMAP \ --disable-nls make -j$CPUS %install make install DESTDIR=$RPM_BUILD_ROOT #FIXME: Should create an l10n package and fix the man pages rm -rf $RPM_BUILD_ROOT%{_datadir} %clean rm -rf $RPM_BUILD_ROOT %files %defattr (-, root, other) %dir %attr (0755, root, bin) %{_bindir} %{_bindir}/* %changelog * Thu Oct 13 2005 - glynn.foster at sun.com - Initial spec -------------- next part -------------- A non-text attachment was scrubbed... Name: fetchmail-01-gettext.diff Type: text/x-patch Size: 1846 bytes Desc: not available URL: <http://mail.opensolaris.org/pipermail/desktop-discuss/attachments/20051108/90e030d5/attachment.bin> -------------- next part -------------- A non-text attachment was scrubbed... Name: xchat-01-gettext.diff Type: text/x-patch Size: 546 bytes Desc: not available URL: <http://mail.opensolaris.org/pipermail/desktop-discuss/attachments/20051108/90e030d5/attachment-0001.bin>
