306abb4
Summary:   A popular and easy to use graphical IRC (chat) client
306abb4
Name:      hexchat
2c6b514
Version:   2.10.2
2c6b514
Release:   1%{?dist}
306abb4
Group:     Applications/Internet
306abb4
License:   GPLv2+
2c6b514
URL:       https://hexchat.github.io
2c6b514
Source:    https://dl.hexchat.net/hexchat/%{name}-%{version}.tar.xz
306abb4
84f2404
BuildRequires: perl-ExtUtils-Embed, python-devel, pciutils-devel
TingPing 88b7a4f
BuildRequires: dbus-glib-devel, intltool, libtool, gnome-common
2856062
BuildRequires: glib2-devel, gtk2-devel, libcanberra-devel
TingPing 88b7a4f
BuildRequires: libproxy-devel, libnotify-devel, openssl-devel
2c6b514
BuildRequires: desktop-file-utils, hicolor-icon-theme, sound-theme-freedesktop iso-codes-devel
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
2856062
%package devel
2856062
Summary: Development files for %{name}
2856062
Group: Development/Libraries
2856062
Requires: %{name}%{?_isa} = %{version}-%{release}
2856062
%description devel
2856062
This package contains the development files for %{name}.
2856062
306abb4
%prep
306abb4
%setup -q
306abb4
306abb4
%build
2856062
%configure
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
306abb4
# Fix opening irc:// links by adding mimetype and editing exec
306abb4
desktop-file-install \
2856062
    --set-key=Exec --set-value="hexchat -e %U" \
669a1e7
    --dir=%{buildroot}%{_datadir}/applications/ \
669a1e7
    %{buildroot}%{_datadir}/applications/hexchat.desktop
669a1e7
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
TingPing 88b7a4f
%doc COPYING readme.md
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/*
2856062
%{_datadir}/appdata/hexchat.appdata.xml
306abb4
%{_datadir}/dbus-1/services/org.hexchat.service.service
306abb4
%{_mandir}/man1/*.gz
306abb4
2856062
%files devel
2856062
%{_includedir}/hexchat-plugin.h
2856062
%{_libdir}/pkgconfig/hexchat-plugin.pc
2856062
306abb4
%changelog
2c6b514
* Tue Nov 25 2014 TingPing <tingping@tingping.se> - 2.10.2-1
2c6b514
- Version bump to 2.10.2
2c6b514
96c3847
* Thu Aug 28 2014 Jitka Plesnikova <jplesnik@redhat.com> - 2.10.1-3
96c3847
- Perl 5.20 rebuild
96c3847
40579ae
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.10.1-2
40579ae
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
40579ae
6bea1ca
* Mon Jul 28 2014 TingPing <tingping@tingping.se> - 2.10.1-1
6bea1ca
- Version bump to 2.10.1
6bea1ca
c23ddcc
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.10.0-2
c23ddcc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
c23ddcc
TingPing 88b7a4f
* Mon Jun 2 2014 TingPing <tingping@tingping.se> - 2.10.0-1
TingPing 88b7a4f
- Version bump to 2.10.0
TingPing 88b7a4f
c90e70b
* Mon Sep 16 2013 TingPing <tingping@tingping.se> - 2.9.6.1-1
c90e70b
- Version bump to 2.9.6.1
c90e70b
2856062
* Wed Sep 11 2013 TingPing <tingping@tingping.se> - 2.9.6-1
2856062
- Version bump to 2.9.6
2856062
80d5cbe
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.9.5-3
80d5cbe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
80d5cbe
94ffa3d
* Sat Aug 03 2013 Kevin Fenzi <kevin@scrye.com> 2.9.5-2
94ffa3d
- Rebuild for new perl
94ffa3d
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