|
|
306abb4 |
Summary: A popular and easy to use graphical IRC (chat) client
|
|
|
306abb4 |
Name: hexchat
|
|
|
84f2404 |
Version: 2.9.5
|
|
|
84f2404 |
Release: 1%{?dist}
|
|
|
306abb4 |
Group: Applications/Internet
|
|
|
306abb4 |
License: GPLv2+
|
|
|
306abb4 |
URL: http://www.hexchat.org
|
|
|
84f2404 |
Source: http://dl.hexchat.org/hexchat/%{name}-%{version}.tar.xz
|
|
|
306abb4 |
|
|
|
84f2404 |
BuildRequires: perl-ExtUtils-Embed, python-devel, pciutils-devel
|
|
|
306abb4 |
BuildRequires: dbus-glib-devel, intltool, libtool
|
|
|
306abb4 |
BuildRequires: glib2-devel, gtk2-devel
|
|
|
306abb4 |
BuildRequires: libproxy-devel, libsexy-devel, libnotify-devel, openssl-devel
|
|
|
306abb4 |
BuildRequires: desktop-file-utils, hicolor-icon-theme
|
|
|
306abb4 |
|
|
|
306abb4 |
%description
|
|
|
306abb4 |
HexChat is an easy to use graphical IRC chat client for the X Window System.
|
|
|
306abb4 |
It allows you to join multiple IRC channels (chat rooms) at the same time,
|
|
|
306abb4 |
talk publicly, private one-on-one conversations etc. Even file transfers
|
|
|
306abb4 |
are possible.
|
|
|
306abb4 |
|
|
|
306abb4 |
%prep
|
|
|
306abb4 |
%setup -q
|
|
|
306abb4 |
NOCONFIGURE=1 ./autogen.sh
|
|
|
306abb4 |
|
|
|
306abb4 |
%build
|
|
|
84f2404 |
%configure --enable-spell=libsexy
|
|
|
306abb4 |
|
|
|
306abb4 |
make %{?_smp_mflags} V=1
|
|
|
306abb4 |
|
|
|
306abb4 |
%install
|
|
|
306abb4 |
make DESTDIR=%{buildroot} install
|
|
|
306abb4 |
|
|
|
306abb4 |
# Get rid of libtool archives
|
|
|
306abb4 |
find %{buildroot} -name '*.la' -exec rm -f {} ';'
|
|
|
306abb4 |
|
|
|
84f2404 |
# Remove include, not worth a -devel package
|
|
|
84f2404 |
rm -f %{buildroot}%{_includedir}/hexchat-plugin.h
|
|
|
306abb4 |
|
|
|
306abb4 |
# Remove unused schema
|
|
|
306abb4 |
rm -f %{buildroot}%{_sysconfdir}/gconf/schemas/apps_hexchat_url_handler.schemas
|
|
|
306abb4 |
|
|
|
306abb4 |
# Fix opening irc:// links by adding mimetype and editing exec
|
|
|
306abb4 |
desktop-file-install \
|
|
|
306abb4 |
--add-mime-type='x-scheme-handler/irc;x-scheme-handler/ircs' \
|
|
|
669a1e7 |
--remove-key=Exec \
|
|
|
669a1e7 |
--dir=%{buildroot}%{_datadir}/applications/ \
|
|
|
669a1e7 |
%{buildroot}%{_datadir}/applications/hexchat.desktop
|
|
|
669a1e7 |
|
|
|
669a1e7 |
# Workaround for EL's version of desktop-file-install
|
|
|
84f2404 |
echo Exec="sh -c \"hexchat --existing --url %u || exec hexchat\"">>%{buildroot}%{_datadir}/applications/hexchat.desktop
|
|
|
306abb4 |
|
|
|
306abb4 |
%find_lang %{name}
|
|
|
306abb4 |
|
|
|
306abb4 |
%post
|
|
|
306abb4 |
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
306abb4 |
/usr/bin/update-desktop-database &> /dev/null || :
|
|
|
306abb4 |
|
|
|
306abb4 |
%postun
|
|
|
306abb4 |
/usr/bin/update-desktop-database &> /dev/null || :
|
|
|
306abb4 |
if [ $1 -eq 0 ] ; then
|
|
|
306abb4 |
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
|
|
|
306abb4 |
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
306abb4 |
fi
|
|
|
306abb4 |
|
|
|
306abb4 |
%posttrans
|
|
|
306abb4 |
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
306abb4 |
|
|
|
306abb4 |
%files -f %{name}.lang
|
|
|
306abb4 |
%{_bindir}/hexchat
|
|
|
306abb4 |
%doc share/doc/*
|
|
|
306abb4 |
%dir %{_libdir}/hexchat
|
|
|
306abb4 |
%dir %{_libdir}/hexchat/plugins
|
|
|
306abb4 |
%{_libdir}/hexchat/plugins/checksum.so
|
|
|
306abb4 |
%{_libdir}/hexchat/plugins/doat.so
|
|
|
306abb4 |
%{_libdir}/hexchat/plugins/fishlim.so
|
|
|
306abb4 |
%{_libdir}/hexchat/plugins/sysinfo.so
|
|
|
306abb4 |
%{_libdir}/hexchat/plugins/perl.so
|
|
|
306abb4 |
%{_libdir}/hexchat/plugins/python.so
|
|
|
306abb4 |
%{_datadir}/applications/hexchat.desktop
|
|
|
84f2404 |
%{_datadir}/icons/hicolor/*
|
|
|
306abb4 |
%{_datadir}/dbus-1/services/org.hexchat.service.service
|
|
|
306abb4 |
%{_mandir}/man1/*.gz
|
|
|
306abb4 |
|
|
|
306abb4 |
%changelog
|
|
|
84f2404 |
* Mon Apr 1 2013 TingPing <tingping@tingping.se> - 2.9.5-1
|
|
|
84f2404 |
- Version bump to 2.9.5
|
|
|
84f2404 |
|
|
|
5d627ee |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.9.4-2
|
|
|
5d627ee |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
5d627ee |
|
|
|
306abb4 |
* Thu Dec 27 2012 TingPing <tingping@tingping.se> - 2.9.4-1
|
|
|
306abb4 |
- Initial HexChat package
|