1 # 2 # spec file for package SUNWirssi 3 # 4 # Copyright (c) 2006 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 jouby 9 # 10 11 %include Solaris.inc 12 13 %define OSR 9487:0.x 14 15 Name: SUNWirssi 16 Summary: irssi - a terminal based IRC client 17 Version: 0.8.14 18 License: GPL v2 19 Source: http://www.irssi.org/files/irssi-%{version}.tar.gz 20 # date:2008-08-18 owner:fujiwara type:feature bugster:6737999 bugzilla:617 21 Patch1: irssi-01-textdomain.diff 22 # date:2008-08-18 owner:jouby type:bug 23 Patch2: irssi-02-manpage.diff 24 SUNW_BaseDir: %{_basedir} 25 SUNW_Copyright: %{name}.copyright 26 BuildRoot: %{_tmppath}/%{name}-%{version}-build 27 28 %include default-depend.inc 29 Requires: SUNWglib2 30 Requires: SUNWopenssl-libraries 31 BuildRequires: SUNWglib2-devel 32 33 %define perl_archlib /usr/perl5/vendor_perl/5.8.4/i86pc-solaris-64int 34 %define perl_version 5.8.4 35 %ifarch sparc 36 %define perl_dir sun4-solaris-64int 37 %else 38 %define perl_dir i86pc-solaris-64int 39 %endif 40 41 Requires: SUNWperl584usr 42 43 %description 44 Irssi is a terminal based IRC client for UNIX systems. 45 46 %prep 47 %setup -q -n irssi-%version 48 %patch1 -p1 49 %patch2 -p1 50 51 %build 52 CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` 53 if test "x$CPUS" = "x" -o $CPUS = 0; then 54 CPUS=1 55 fi 56 57 export CFLAGS="%optflags" 58 export LDFLAGS="%{_ldflags}" 59 60 ./configure --prefix=%{_prefix} \ 61 --bindir=%{_bindir} \ 62 --sysconfdir=%{_sysconfdir} \ 63 --includedir=%{_includedir} \ 64 --mandir=%{_mandir} \ 65 --libdir=%{_libdir} \ 66 --with-perl=yes \ 67 --with-proxy \ 68 --with-perl-lib=%{_prefix}/perl5/vendor_perl/%{perl_version} 69 70 make -j$CPUS 71 72 %install 73 rm -rf $RPM_BUILD_ROOT 74 75 make install DESTDIR=$RPM_BUILD_ROOT 76 77 rm ${RPM_BUILD_ROOT}%{_libdir}/irssi/modules/*.la 78 rm ${RPM_BUILD_ROOT}%{_prefix}/perl5/vendor_perl/%{perl_version}/%{perl_dir}/auto/Irssi/.packlist 79 rm ${RPM_BUILD_ROOT}%{_prefix}/perl5/vendor_perl/%{perl_version}/%{perl_dir}/auto/Irssi/*/.packlist 80 rm ${RPM_BUILD_ROOT}%{_prefix}/perl5/vendor_perl/%{perl_version}/%{perl_dir}/perllocal.pod 81 rm ${RPM_BUILD_ROOT}/etc/irssi.conf 82 rm -r ${RPM_BUILD_ROOT}%{_docdir} ${RPM_BUILD_ROOT}%{_includedir} 83 rmdir $RPM_BUILD_ROOT/etc 84 85 %clean 86 rm -rf $RPM_BUILD_ROOT 87 88 %files 89 %doc README AUTHORS 90 %doc(bzip2) COPYING NEWS ChangeLog 91 %dir %attr (0755, root, other) %{_datadir}/doc 92 %defattr (-, root, bin) 93 %{_bindir}/* 94 %{_libdir}/irssi/ 95 %dir %attr(0755, root, bin) %{_prefix}/perl5 96 %dir %attr(0755, root, bin) %{_prefix}/perl5/vendor_perl 97 %dir %attr(0755, root, bin) %{_prefix}/perl5/vendor_perl/%{perl_version} 98 %{_prefix}/perl5/vendor_perl/%{perl_version}/* 99 %dir %attr (0755, root, sys) %{_datadir} 100 %{_datadir}/irssi/ 101 %dir %attr(0755, root, bin) %{_mandir} 102 %dir %attr(0755, root, bin) %{_mandir}/man1 103 %{_mandir}/man1/* 104 105 %changelog 106 * Wed Aug 12 2009 - christian.kelly@sun.com 107 - Bump to 0.8.14 108 - Remove irssi-03-awk.diff, upstream. 109 * Fri Jun 26 2009 - chris.wang@sun.com 110 - Change spec and patch owner to jouby 111 * Tue Apr 21 2009 - chris.wang@sun.com 112 - add irssi-03-awk.diff to make the grammar comfort with /usr/bin/awk 113 * Thu Apr 16 2009 - chris.wang@sun.com 114 - bump to 0.8.13 115 * Web Mar 04 2009 - chris.wang@sun.com 116 - Transfer the ownership to bewitche 117 * Tue Feb 10 2009 - halton.huo@sun.com 118 - Add dependency on SUNWgnome-base-libs SUNWopenssl-libraries, CR #6755918 119 * Fri Jan 16 2009 - Henry Zhang <hua.zhang@sun.com> 120 - change --with-perl=yes to load perl automatically 121 * Fri Sep 12 2008 - Henry Zhang <hua.zhang@sun.com> 122 - Add %doc to %files for copyright 123 * Mon Aug. 21 2008 - Henry Zhang hua.zhang@sun.com 124 - Add irssi-02-manpage.diff 125 * Mon Aug 18 2008 - takao.fujiwara@sun.com 126 - Add irssi-01-textdomain.diff to enable i18n. 127 * Thu Aug 07 2008 - damien.carbery@sun.com 128 - Fix %install and %files to work on sparc. 129 * Mon Jul 21 2008 - Henry Zhang hua.zhang@sun.com 130 - Change to SUNWirssi 131 * Fri Oct 09 2007 - Petr Sobotka sobotkap@centrum.cz 132 - bump to 0.8.12 133 * Sun Apr 08 2007 - Thomas Wagner 134 - bump to 0.8.11-rc1, removed tarball_version (re-add if ever needed) 135 * Fri Sep 01 2006 - Eric Boutilier 136 - Initial spec 137 138