diff --git a/.irssi.metadata b/.irssi.metadata new file mode 100644 index 0000000..796cf4f --- /dev/null +++ b/.irssi.metadata @@ -0,0 +1 @@ +b79ce8c2c98a76b004f63706e7868cd363000d89 SOURCES/irssi-0.8.15.tar.bz2 diff --git a/README.md b/README.md deleted file mode 100644 index 0e7897f..0000000 --- a/README.md +++ /dev/null @@ -1,5 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 - -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/irssi-0.8.15-init-resize-crash-fix.patch b/SOURCES/irssi-0.8.15-init-resize-crash-fix.patch new file mode 100644 index 0000000..e01e4bf --- /dev/null +++ b/SOURCES/irssi-0.8.15-init-resize-crash-fix.patch @@ -0,0 +1,13 @@ +diff -up irssi-0.8.15/src/fe-text/irssi.c.old irssi-0.8.15/src/fe-text/irssi.c +diff -up irssi-0.8.15/src/fe-text/mainwindows.c.old irssi-0.8.15/src/fe-text/mainwindows.c +--- irssi-0.8.15/src/fe-text/mainwindows.c.old 2010-04-03 18:19:42.000000000 +0200 ++++ irssi-0.8.15/src/fe-text/mainwindows.c 2012-02-24 10:47:51.215293213 +0100 +@@ -355,7 +355,7 @@ static void mainwindows_resize_smaller(i + int space; + + sorted = mainwindows_get_sorted(TRUE); +- for (;;) { ++ for (;sorted != NULL;) { + space = 0; + for (tmp = mainwindows; tmp != NULL; tmp = tmp->next) { + rec = tmp->data; diff --git a/SOURCES/irssi-0.8.15-man-fix.patch b/SOURCES/irssi-0.8.15-man-fix.patch new file mode 100644 index 0000000..30bb28e --- /dev/null +++ b/SOURCES/irssi-0.8.15-man-fix.patch @@ -0,0 +1,13 @@ +diff -up irssi-0.8.15/docs/irssi.1.orig irssi-0.8.15/docs/irssi.1 +--- irssi-0.8.15/docs/irssi.1.orig 2010-04-03 18:19:55.000000000 +0200 ++++ irssi-0.8.15/docs/irssi.1 2012-08-03 16:34:19.684160994 +0200 +@@ -59,9 +59,6 @@ display the version of Irssi. + .TP + .BI "\-?, \-\-help" + show a help message. +-.TP +-.BI "\-\-usage" +-display brief usage message. + .SH SEE ALSO + .B Irssi + has been supplied with a huge amount of documentation. Check /help or look diff --git a/SOURCES/irssi-0.8.15-no-static-unload.patch b/SOURCES/irssi-0.8.15-no-static-unload.patch new file mode 100644 index 0000000..c583f1c --- /dev/null +++ b/SOURCES/irssi-0.8.15-no-static-unload.patch @@ -0,0 +1,35 @@ +--- irssi-0.8.15/src/fe-common/core/fe-modules.c.old 2010-04-03 18:19:24.000000000 +0200 ++++ irssi-0.8.15/src/fe-common/core/fe-modules.c 2010-10-12 14:43:52.586315553 +0200 +@@ -195,6 +195,8 @@ + MODULE_FILE_REC *file; + char *rootmodule, *submodule; + void *free_arg; ++ GSList *tmp; ++ int all_dynamic; + + g_return_if_fail(data != NULL); + +@@ -204,12 +206,19 @@ + + module = module_find(rootmodule); + if (module != NULL) { +- if (*submodule == '\0') +- module_unload(module); ++ if (*submodule == '\0') { ++ all_dynamic = 1; ++ for (tmp = module->files; tmp != NULL; tmp = tmp->next) ++ all_dynamic &= !MODULE_IS_STATIC((MODULE_FILE_REC*) tmp->data); ++ if (all_dynamic) ++ module_unload(module); ++ } + else { + file = module_file_find(module, submodule); +- if (file != NULL) +- module_file_unload(file); ++ if (file != NULL) { ++ if (!MODULE_IS_STATIC(file)) ++ module_file_unload(file); ++ } + else + module = NULL; + } diff --git a/SOURCES/irssi-config.h b/SOURCES/irssi-config.h new file mode 100644 index 0000000..b393e7a --- /dev/null +++ b/SOURCES/irssi-config.h @@ -0,0 +1,9 @@ +#include + +#if __WORDSIZE == 32 +#include "irssi-config-32.h" +#elif __WORDSIZE == 64 +#include "irssi-config-64.h" +#else +#error "Unknown word size" +#endif diff --git a/SPECS/irssi.spec b/SPECS/irssi.spec new file mode 100644 index 0000000..664cbb7 --- /dev/null +++ b/SPECS/irssi.spec @@ -0,0 +1,310 @@ +%define perl_vendorarch %(eval "`perl -V:installvendorarch`"; echo $installvendorarch) + +Summary: Modular text mode IRC client with Perl scripting +Name: irssi +Version: 0.8.15 +Release: 14%{?dist} + +License: GPLv2+ +Group: Applications/Communications +URL: http://irssi.org/ +Source0: http://irssi.org/files/irssi-%{version}.tar.bz2 +Source1: irssi-config.h +# Bug 796457 +Patch0: irssi-0.8.15-init-resize-crash-fix.patch +Patch1: irssi-0.8.15-man-fix.patch +Patch2: irssi-0.8.15-no-static-unload.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot +BuildRequires: ncurses-devel openssl-devel zlib-devel +BuildRequires: pkgconfig glib2-devel perl-devel perl(ExtUtils::Embed) +BuildRequires: autoconf automake libtool +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%package devel +Summary: Development package for irssi +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + +%description +Irssi is a modular IRC client with Perl scripting. Only text-mode +frontend is currently supported. The GTK/GNOME frontend is no longer +being maintained. + +%description devel +This package contains headers needed to develop irssi plugins. + +Irssi is a modular IRC client with Perl scripting. Only text-mode +frontend is currently supported. The GTK/GNOME frontend is no longer +being maintained. + + +%prep +%setup -q -n %{name}-%{version} +%patch0 -p1 -b .init-resize-crash-fix +%patch1 -p1 -b .man-fix +%patch2 -p1 -b .no-static-unload + +%build +autoreconf -i +%configure --enable-ipv6 --with-textui \ + --with-proxy \ + --with-bot \ + --with-perl=yes \ + --with-perl-lib=vendor + +make %{_smp_mflags} CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" +mv irssi-config.h irssi-config-$(getconf LONG_BIT).h +cp -p %{SOURCE1} irssi-config.h + + +%install +rm -rf $RPM_BUILD_ROOT +%makeinstall PERL_INSTALL_ROOT=$RPM_BUILD_ROOT INSTALL="%{__install} -p" +install -p irssi-config-$(getconf LONG_BIT).h $RPM_BUILD_ROOT%{_includedir}/%{name}/irssi-config-$(getconf LONG_BIT).h + +rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/modules/lib*.*a +rm -Rf $RPM_BUILD_ROOT/%{_docdir}/%{name} +find $RPM_BUILD_ROOT%{perl_vendorarch} -type f -a -name '*.bs' -a -empty -exec rm -f {} ';' +find $RPM_BUILD_ROOT%{perl_vendorarch} -type f -a -name .packlist -exec rm {} ';' +chmod -R u+w $RPM_BUILD_ROOT%{perl_vendorarch} + + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc docs/*.txt docs/*.html AUTHORS COPYING NEWS README TODO +%config(noreplace) %{_sysconfdir}/%{name}.conf +%{_bindir}/%{name} +%{_bindir}/botti +%{_datadir}/%{name} +%{_libdir}/%{name} +%{_mandir}/man1/%{name}.1* +%{perl_vendorarch}/Irssi* +%{perl_vendorarch}/auto/Irssi + + +%files devel +%defattr(-,root,root,-) +%{_includedir}/irssi/ + + +%changelog +* Mon Sep 16 2013 Jaroslav Škarvada - 0.8.15-14 +- Disabled unloading of static modules (by no-static-unload patch) + Resolves: rhbz#1007420 + +* Mon Mar 25 2013 Jaroslav Škarvada - 0.8.15-13 +- Added support for aarch64 + Resolves: rhbz#925598 + +* Thu Feb 14 2013 Fedora Release Engineering - 0.8.15-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Fri Aug 3 2012 Jaroslav Škarvada - 0.8.15-11 +- Removed usage parameter from the man page (popt leftover) + +* Thu Jul 19 2012 Fedora Release Engineering - 0.8.15-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Thu Jun 07 2012 Petr Pisar - 0.8.15-9 +- Perl 5.16 rebuild + +* Fri Feb 24 2012 Jaroslav Škarvada - 0.8.15-8 +- Fixed crash that can occur if term is resized during irssi init + (init-resize-crash-fix patch) + Resolves: rhbz#796457 + +* Fri Jan 13 2012 Fedora Release Engineering - 0.8.15-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Mon Jun 20 2011 Marcela Mašláňová - 0.8.15-6 +- Perl mass rebuild + +* Thu Jun 09 2011 Marcela Mašláňová - 0.8.15-5 +- Perl 5.14 mass rebuild + +* Wed Feb 09 2011 Fedora Release Engineering - 0.8.15-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Tue Jun 01 2010 Marcela Maslanova - 0.8.15-3 +- Mass rebuild with perl-5.12.0 + +* Mon May 31 2010 Jaroslav Škarvada - 0.8.15-2 +- Rebuilt with -fno-strict-aliasing + +* Tue Apr 13 2010 Jaroslav Škarvada - 0.8.15-1 +- Update to new version: irssi-0.8.15 + +* Fri Dec 4 2009 Stepan Kasal - 0.8.14-4 +- rebuild against perl 5.10.1 + +* Fri Aug 21 2009 Tomas Mraz - 0.8.14-3 +- rebuilt with new openssl + +* Tue Aug 11 2009 Ville Skyttä - 0.8.14-2 +- Use bzipped upstream tarball. + +* Mon Aug 3 2009 Marek Mahut - 0.8.14-1 +- Upstream release 0.8.14 + +* Fri Jul 24 2009 Fedora Release Engineering - 0.8.13-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Tue Jun 23 2009 Huzaifa Sidhpurwala - 0.8.13-2 +- Resolve CVE-2009-1959 + +* Fri May 1 2009 Marek Mahut - 0.8.13-1 +- Upstream release + +* Wed Feb 25 2009 Fedora Release Engineering - 0.8.12-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Sat Jan 17 2009 Tomas Mraz - 0.8.12-12 +- rebuild with new openssl + +* Fri Aug 29 2008 Michael Schwendt - 0.8.12-11 +- Don't include any C header files in main package. + +* Fri Mar 7 2008 Tom "spot" Callaway - 0.8.12-10 +- BR: perl(ExtUtils::Embed) + +* Thu Mar 06 2008 Tom "spot" Callaway - 0.8.12-9 +- Rebuild for new perl + +* Sat Mar 1 2008 Marek Mahut - 0.8.12-8 +- Fix for multiarch conflict (BZ#341591) + +* Tue Feb 19 2008 Fedora Release Engineering - 0.8.12-5 +- Autorebuild for GCC 4.3 + +* Sun Nov 11 2007 Marek Mahut - 0.8.12-3 +- Enabling perl build-in support as per request in BZ#375121 + +* Mon Oct 08 2007 Marek Mahut - 0.8.12-1 +- New release +- Fixes bug from BZ#239511, dropping patch + +* Sun Aug 19 2007 Marek Mahut - 0.8.11-5 +- Fixing properly irssi-support-meta-cursor-xterm.patch + +* Thu Aug 16 2007 Marek Mahut - 0.8.11-4 +- Added irssi-support-meta-cursor-xterm.patch (BZ#239511) + +* Thu Aug 16 2007 Marek Mahut - 0.8.11-2 +- Updating license tag +- Rebuild for 0.8.11 + +* Wed May 2 2007 Dams - 0.8.11-1 +- Updated to 0.8.11 +- Dropped patch0 + +* Sat Apr 21 2007 Dams - 0.8.10-7.a +- Release bump + +* Sun Sep 17 2006 Dams - 0.8.10-6.a +- Bumped release + +* Sun Sep 17 2006 Dams - 0.8.10-5.a +- Updated to 0.8.10a +- Fixed tarball name.. +- Updated Patch0 still from Saleem + +* Wed Mar 15 2006 Dams - 0.8.10-4 +- Added patch from Saleem Abdulrasool to fix invalid pointer. + +* Sat Jan 28 2006 Dams - 0.8.10-3 +- Fixed changelog -_- + +* Sat Jan 28 2006 Dams - 0.8.10-2 +- Disabled gc support + +* Sun Dec 11 2005 Dams - 0.8.10-1 +- Updated to final 0.8.10 + +* Wed Dec 7 2005 Dams - 0.8.10-0.2.rc8 +- Updated to rc8 + +* Tue Nov 15 2005 Dams - 0.8.10-0.1.rc7 +- Dropped patch 2 (seems applied upstream) and 3 (no longer needed) +- Removed conditionnal build against glib1 parts + +* Sun Nov 13 2005 Luke Macken 0.8.9-8 +- Rebuild against new openssl + +* Mon Apr 11 2005 Michael Schwendt 0.8.9-7 +- Two patches to fix build for GCC4 and new Perl with config.h. + +* Fri Apr 7 2005 Michael Schwendt +- rebuilt + +* Fri Dec 24 2004 Michael Schwendt 0:0.8.9-5 +- Reduce Perl dir ownership and add MODULE_COMPAT dependency. + +* Fri Apr 2 2004 Dams 0:0.8.9-0.fdr.4 +- Rebuilt to use new perl to prevent random segmentation fault at load + time + +* Fri Feb 6 2004 Dams 0:0.8.9-0.fdr.3 +- Patch from Michael Schwendt to fix convert-replace-trigger script + (bug #1120 comment #3) + +* Sat Dec 20 2003 Dams 0:0.8.9-0.fdr.2 +- Fixed changelog typo +- Added trigger.pl as replace.pl wont be maintained anymore +- Updated replace.pl to 0.1.4 version +- Added replace.pl URL in Source tag +- Removed .packlist files +- Added as doc a script to convert pref from replace.pl to trigger.pl + +* Thu Dec 11 2003 Dams 0:0.8.9-0.fdr.1 +- Updated to 0.8.9 + +* Mon Nov 24 2003 Dams 0:0.8.8-0.fdr.1 +- Updated to 0.8.8 +- Enabled gc + +* Sun Sep 14 2003 Dams 0:0.8.6-0.fdr.13 +- Rebuild + +* Sun Sep 14 2003 Michael Schwendt 0:0.8.6-0.fdr.12 +- apply openssl patch only if openssl-devel supports pkgconfig + +* Thu Sep 11 2003 Dams 0:0.8.6-0.fdr.11 +- Installing replace.pl in good directory + +* Thu Sep 11 2003 Dams 0:0.8.6-0.fdr.10 +- Rebuild + +* Thu Sep 11 2003 Dams 0:0.8.6-0.fdr.9 +- Using vendor perl directories + +* Thu Sep 11 2003 Dams 0:0.8.6-0.fdr.8 +- Added missing unowned directories +- Added an additionnal useful perl script (replace.pl) + +* Tue Aug 5 2003 Dams 0:0.8.6-0.fdr.7 +- Added zlib-devel buildrequires + +* Sat Jul 12 2003 Dams 0:0.8.6-0.fdr.6 +- Applied Patches from Ville Skyttä (bug #277 comment #11 and + comment #12) + +* Mon Jun 23 2003 Dams 0:0.8.6-0.fdr.5 +- Modified BuildRequires for ssl + +* Wed Jun 11 2003 Dams 0:0.8.6-0.fdr.4 +- Added another dir entry + +* Sun Jun 8 2003 Dams 0:0.8.6-0.fdr.3 +- Added some dir entry in file section + +* Tue May 20 2003 Dams 0:0.8.6-0.fdr.2 +- Exclude modules ".a" files +- Include more files as doc + +* Sat May 10 2003 Dams +- Initial build.