1
0
mirror of https://github.com/moparisthebest/hexchat synced 2024-11-02 08:25:04 -04:00
hexchat/share/misc/hexchat.spec

140 lines
4.0 KiB
RPMSpec
Raw Normal View History

2011-02-23 22:14:30 -05:00
Summary: A popular and easy to use graphical IRC (chat) client
2012-07-13 12:04:00 -04:00
Name: hexchat
2012-10-27 13:28:51 -04:00
Version: 2.9.4
Release: 1%{?dist}
2011-02-23 22:14:30 -05:00
Group: Applications/Internet
License: GPLv2+
2012-07-13 12:04:00 -04:00
URL: http://www.hexchat.org
Source: https://github.com/downloads/hexchat/hexchat/hexchat-%{version}.tar.xz
2011-02-23 22:14:30 -05:00
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
2012-10-27 14:15:12 -04:00
BuildRequires: perl, perl(ExtUtils::Embed), python-devel, tcl-devel, pciutils-devel
2012-10-27 13:28:51 -04:00
BuildRequires: dbus-devel, dbus-glib-devel
2011-02-23 22:14:30 -05:00
BuildRequires: glib2-devel >= 2.10.0, gtk2-devel >= 2.10.0, bison >= 1.35
2012-10-27 13:28:51 -04:00
BuildRequires: libtool, autoconf, gettext-devel, pkgconfig
BuildRequires: libproxy-devel, libsexy-devel, libnotify-devel, openssl-devel
BuildRequires: desktop-file-utils, hicolor-icon-theme
2012-10-27 14:15:12 -04:00
Requires: hwdata
2011-02-23 22:14:30 -05:00
%description
2012-07-13 23:04:45 -04:00
HexChat is an easy to use graphical IRC chat client for the X Window System.
2011-02-23 22:14:30 -05:00
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.
%package tcl
2012-10-27 13:28:51 -04:00
Summary: Tcl script plugin for HexChat
Group: Applications/Internet
Requires: %{name}%{?_isa} = %{version}-%{release}
2011-02-23 22:14:30 -05:00
%description tcl
2012-10-27 13:28:51 -04:00
The HexChat plugin providing the Tcl scripting interface.
%package perl
Summary: Perl script plugin for HexChat
Group: Applications/Internet
Requires: %{name}%{?_isa} = %{version}-%{release}
%description perl
The HexChat plugin providing the Perl scripting interface.
%package python
Summary: Python script plugin for HexChat
Group: Applications/Internet
Requires: %{name}%{?_isa} = %{version}-%{release}
%description python
The HexChat plugin providing the Python scripting interface.
2011-02-23 22:14:30 -05:00
%prep
%setup -q
%build
2012-10-27 13:28:51 -04:00
./autogen.sh
2011-02-23 22:14:30 -05:00
2012-10-27 13:28:51 -04:00
%configure --enable-ipv6 \
2011-02-23 22:14:30 -05:00
--enable-spell=libsexy \
2012-10-27 13:28:51 -04:00
--enable-tcl=%{_libdir} \
2011-02-23 22:14:30 -05:00
--enable-shm
make %{?_smp_mflags}
%install
%{__rm} -rf $RPM_BUILD_ROOT
2012-10-27 13:28:51 -04:00
%{__make} install DESTDIR=$RPM_BUILD_ROOT
# Add SVG for hicolor
%{__install} -D -m644 share/icons/hexchat.svg $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/scalable/apps/hexchat.svg
2011-02-23 22:14:30 -05:00
# Get rid of libtool archives
2012-07-13 12:04:00 -04:00
%{__rm} -f $RPM_BUILD_ROOT%{_libdir}/hexchat/plugins/*.la
2011-02-23 22:14:30 -05:00
2012-10-27 13:28:51 -04:00
# Remove unused schema
%{__rm} -f $RPM_BUILD_ROOT%{_sysconfdir}/gconf/schemas/apps_hexchat_url_handler.schemas
2011-02-23 22:14:30 -05:00
2012-10-27 13:28:51 -04:00
# Fix opening irc:// links by adding mimetype and editing exec
desktop-file-edit --set-key=Exec --set-value='sh -c "hexchat --existing --url %U || exec hexchat"' \
$RPM_BUILD_ROOT%{_datadir}/applications/hexchat.desktop
2011-02-23 22:14:30 -05:00
2012-10-27 13:28:51 -04:00
desktop-file-edit --add-mime-type='x-scheme-handler/irc;x-scheme-handler/ircs' \
$RPM_BUILD_ROOT%{_datadir}/applications/hexchat.desktop
2011-02-23 22:14:30 -05:00
2012-10-27 13:28:51 -04:00
%find_lang %{name}
2011-02-23 22:14:30 -05:00
%clean
%{__rm} -rf $RPM_BUILD_ROOT
2012-10-27 13:28:51 -04:00
%post
gtk-update-icon-cache %{_datadir}/icons/hicolor
update-desktop-database
%postun
gtk-update-icon-cache %{_datadir}/icons/hicolor
update-desktop-database
2011-02-23 22:14:30 -05:00
%files -f %{name}.lang
%defattr(-,root,root)
2012-07-13 12:04:00 -04:00
%{_bindir}/hexchat
2012-10-27 13:28:51 -04:00
%doc share/doc/changelog.md
%doc share/doc/readme.md
%doc share/doc/faq.md
%doc share/doc/COPYING
2012-07-13 12:04:00 -04:00
%dir %{_libdir}/hexchat
%dir %{_libdir}/hexchat/plugins
2012-10-27 13:28:51 -04:00
%{_libdir}/hexchat/plugins/checksum.so
%{_libdir}/hexchat/plugins/doat.so
%{_libdir}/hexchat/plugins/fishlim.so
%{_libdir}/hexchat/plugins/sysinfo.so
2012-07-13 12:04:00 -04:00
%{_datadir}/applications/hexchat.desktop
2012-10-27 13:28:51 -04:00
%{_datadir}/icons/hicolor/scalable/apps/hexchat.svg
2011-02-23 22:14:30 -05:00
%{_datadir}/pixmaps/*
2012-07-13 12:04:00 -04:00
%{_datadir}/dbus-1/services/org.hexchat.service.service
2012-10-27 13:28:51 -04:00
%{_mandir}/man1/hexchat.1.gz
2011-02-23 22:14:30 -05:00
%files tcl
%defattr(-,root,root)
2012-07-13 12:04:00 -04:00
%{_libdir}/hexchat/plugins/tcl.so
2011-02-23 22:14:30 -05:00
2012-10-27 13:28:51 -04:00
%files perl
%defattr(-,root,root)
%doc plugins/perl/hexchat-perl.html
%{_libdir}/hexchat/plugins/perl.so
%files python
%defattr(-,root,root)
%doc plugins/python/hexchat-python.md
%{_libdir}/hexchat/plugins/python.so
%changelog
* Sat Oct 27 2012 TingPing <tingping@tingping.se> - 2.9.4-1
- Version bump to 2.9.4
- Split up python and perl packages
* Fri Oct 19 2012 TingPing <tingping@tingping.se> - 2.9.3-1
- Version bump to 2.9.3
- Added COPYING to doc
* Sat Oct 6 2012 TingPing <tingping@tingping.se> - 2.9.2-1
- Version bump to 2.9.2
* Sat Sep 1 2012 TingPing <tingping@tingping.se> - 2.9.1-1
- first version for hexchat 2.9.1