[hexchat] Initial import

tingping tingping at fedoraproject.org
Fri Dec 28 04:28:39 UTC 2012


commit 306abb4d4e412ed108da3f66cde91dd67c20f971
Author: TingPing <tingping at tingping.se>
Date:   Thu Dec 27 23:27:06 2012 -0500

    Initial import

 hexchat.spec |   92 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 92 insertions(+), 0 deletions(-)
---
diff --git a/hexchat.spec b/hexchat.spec
new file mode 100644
index 0000000..359ecf1
--- /dev/null
+++ b/hexchat.spec
@@ -0,0 +1,92 @@
+Summary:   A popular and easy to use graphical IRC (chat) client
+Name:      hexchat
+Version:   2.9.4
+Release:   1%{?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
+* Thu Dec 27 2012 TingPing <tingping at tingping.se> - 2.9.4-1
+- Initial HexChat package


More information about the scm-commits mailing list