diff --git a/.cvsignore b/.cvsignore index 9307d03..b3f4340 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -xchat-1.8.7.tar.bz2 +xchat-1.8.8.tar.bz2 diff --git a/sources b/sources index 3667187..4e976ba 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -2bdcf2b77f6bf1385bc63a17dcafbe90 xchat-1.8.7.tar.bz2 +8496a0438c1062d3d8f96f92d5e48a52 xchat-1.8.8.tar.bz2 diff --git a/xchat-1.8.7-use-sysconf-to-detect-cpus.patch b/xchat-1.8.7-use-sysconf-to-detect-cpus.patch new file mode 100644 index 0000000..417690d --- /dev/null +++ b/xchat-1.8.7-use-sysconf-to-detect-cpus.patch @@ -0,0 +1,34 @@ +--- src/common/util.c.use-sysconf-to-detect-cpus Tue Feb 5 07:44:27 2002 ++++ src/common/util.c Tue Feb 5 07:45:59 2002 +@@ -399,14 +399,11 @@ + int fh; + + *mhz = 0; +- *cpus = 0; ++ *cpus = (int) sysconf(_SC_NPROCESSORS_ONLN); + + fh = open ("/proc/cpuinfo", O_RDONLY); /* linux 2.2+ only */ + if (fh == -1) +- { +- *cpus = 1; + return; +- } + + while (1) + { +@@ -421,15 +418,9 @@ + } else if (!strncmp (buf, "clock\t\t:", 8)) /* PPC */ + { + *mhz = atoi (buf + 9); +- } else if (!strncmp (buf, "processor\t", 10)) +- { +- (*cpus)++; + } + } + close (fh); +- if (!*cpus) +- *cpus = 1; +- + #endif + #ifdef USING_FREEBSD + diff --git a/xchat.spec b/xchat.spec index 98ab0be..4fa08b4 100644 --- a/xchat.spec +++ b/xchat.spec @@ -1,18 +1,21 @@ +%define WithoutGNOME 1 + Summary: A GTK+ IRC (chat) client. Name: xchat -Version: 1.8.7 -Release: 1.72.0 +Version: 1.8.8 +Release: 4 Epoch: 1 Group: Applications/Internet License: GPL -Url: http://xchat.org -Source: http://xchat.org/files/source/1.4/xchat-%{version}.tar.bz2 +URL: http://www.xchat.org +Source: http://www.xchat.org/files/source/1.8/xchat-%{version}.tar.bz2 Buildroot: %{_tmppath}/%{name}-%{version}-root Patch4: xchat-1.8.1-konqueror.patch Patch5: xchat-1.8.4-fix-USE_GNOME.patch +Patch6: xchat-1.8.7-use-sysconf-to-detect-cpus.patch -BuildRequires: gnome-libs +%{?!WithoutGNOME:BuildRequires: gnome-libs} %description X-Chat is an IRC client for the X Window System and GTK+. X-Chat is @@ -22,14 +25,22 @@ fairly easy to use and includes a nice interface. %setup -q %patch5 -p0 -b .fix-USE_GNOME +%patch6 -p0 -b .use-sysconf-to-detect-cpus %build -%configure --disable-panel --disable-textfe --enable-japanese-conv --enable-openssl +%configure --disable-panel --disable-textfe --enable-japanese-conv \ + --enable-openssl --enable-ipv6 %{?WithoutGNOME:--disable-gnome} + make %install rm -rf $RPM_BUILD_ROOT %makeinstall +%if %{WithoutGNOME} +mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/X11/applnk/Internet $RPM_BUILD_ROOT%{_datadir}/pixmaps +install -m 644 xchat.desktop $RPM_BUILD_ROOT%{_sysconfdir}/X11/applnk/Internet +install -m 644 xchat.png $RPM_BUILD_ROOT%{_datadir}/pixmaps +%endif %find_lang %name @@ -37,14 +48,35 @@ rm -rf $RPM_BUILD_ROOT %defattr(-,root,root) %doc README ChangeLog doc/xchat.sgml doc/*.html scripts-python scripts-perl %{_bindir}/xchat -%{_datadir}/gnome/apps/Internet/xchat.desktop +%{_sysconfdir}/X11/applnk/Internet/xchat.desktop %{_datadir}/pixmaps/* %clean rm -rf $RPM_BUILD_ROOT %changelog -* Thu Jan 10 2002 Mike A. Harris 1.8.7-0.1 +* Tue Mar 27 2002 Mike A. Harris 1.8.8-3 +- Disabled GNOME support since it doesn't seem too useful anyways, and forces + all xchat users to install GNOME libs even if they use KDE. (#59626) +- Updated URL and source lines in spec. + +* Wed Mar 6 2002 Mike A. Harris 1.8.8-1 +- Updated to xchat 1.8.8 + +* Tue Feb 26 2002 Mike A. Harris 1.8.7-6 +- Built in new buildroot + +* Tue Feb 5 2002 Mike A. Harris 1.8.7-5 +- Added xchat-1.8.7-use-sysconf-to-detect-cpus.patch to use glibc's sysconf() + to detect the number of processors available. + +* Mon Feb 4 2002 Mike A. Harris 1.8.7-4 +- Enabled IPv6 support as per the request for enhancement (#52124) + +* Thu Jan 24 2002 Mike A. Harris 1.8.7-3 +- Rebuilt in new build environment + +* Thu Jan 10 2002 Mike A. Harris 1.8.7-2 - Updated to xchat 1.8.7 - New release fixes security vulnerability in CTCP reply - Built erratum for all supported releases (1.8.7-1.62.0, 1.8.7-1.70.0,