Summary: A popular and easy to use graphical IRC (chat) client Name: hexchat Version: 2.9.4 Release: 5%{?dist} Group: Applications/Internet License: GPLv2+ URL: http://www.hexchat.org Source: https://github.com/downloads/hexchat/hexchat/%{name}-%{version}.tar.xz BuildRequires: perl-ExtUtils-Embed, python-devel, tcl-devel, pciutils-devel BuildRequires: dbus-glib-devel, intltool, libtool BuildRequires: glib2-devel, gtk2-devel BuildRequires: libproxy-devel, libsexy-devel, libnotify-devel, openssl-devel BuildRequires: desktop-file-utils, hicolor-icon-theme %description HexChat is an easy to use graphical IRC chat client for the X Window System. It allows you to join multiple IRC channels (chat rooms) at the same time, talk publicly, private one-on-one conversations etc. Even file transfers are possible. %prep %setup -q NOCONFIGURE=1 ./autogen.sh %build find -type f -exec chmod a-x {} \; find -name configure -exec chmod a+x {} \; %configure --enable-ipv6 \ --enable-spell=libsexy \ --enable-shm make %{?_smp_mflags} V=1 %install make DESTDIR=%{buildroot} install # Add SVG for hicolor install -D -m644 share/icons/hexchat.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/hexchat.svg # Get rid of libtool archives find %{buildroot} -name '*.la' -exec rm -f {} ';' # Drop deprecated TCL plugin find %{buildroot} -name 'tcl.so' -exec rm -f {} ';' # Remove unused schema rm -f %{buildroot}%{_sysconfdir}/gconf/schemas/apps_hexchat_url_handler.schemas # Fix opening irc:// links by adding mimetype and editing exec desktop-file-install \ --delete-original \ --add-mime-type='x-scheme-handler/irc;x-scheme-handler/ircs' \ --set-key=Exec --set-value='sh -c "hexchat --existing --url %U || exec hexchat"' \ %{buildroot}/%{_datadir}/applications/hexchat.desktop %find_lang %{name} %post /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : /usr/bin/update-desktop-database &> /dev/null || : %postun /usr/bin/update-desktop-database &> /dev/null || : if [ $1 -eq 0 ] ; then /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : fi %posttrans /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %files -f %{name}.lang %{_bindir}/hexchat %doc share/doc/* %dir %{_libdir}/hexchat %dir %{_libdir}/hexchat/plugins %{_libdir}/hexchat/plugins/checksum.so %{_libdir}/hexchat/plugins/doat.so %{_libdir}/hexchat/plugins/fishlim.so %{_libdir}/hexchat/plugins/sysinfo.so %{_libdir}/hexchat/plugins/perl.so %{_libdir}/hexchat/plugins/python.so %{_datadir}/applications/hexchat.desktop %{_datadir}/icons/hicolor/scalable/apps/hexchat.svg %{_datadir}/pixmaps/* %{_datadir}/dbus-1/services/org.hexchat.service.service %{_mandir}/man1/*.gz %changelog * Sun Dec 23 2012 TingPing - 2.9.4-5 - Remove tcl.so * Sun Dec 23 2012 TingPing - 2.9.4-4 - Don't build tcl and readd perl/python plugins * Sat Dec 22 2012 TingPing - 2.9.4-3 - Use desktop-file-install * Sat Dec 1 2012 TingPing - 2.9.4-2 - No longer use macros and exact versions on deps * Sat Oct 27 2012 TingPing - 2.9.4-1 - Version bump to 2.9.4 - Split up python and perl packages * Fri Oct 19 2012 TingPing - 2.9.3-1 - Version bump to 2.9.3 - Added COPYING to doc * Sat Oct 6 2012 TingPing - 2.9.2-1 - Version bump to 2.9.2 * Sat Sep 1 2012 TingPing - 2.9.1-1 - first version for hexchat 2.9.1