weechat/weechat.spec

163 lines
4.0 KiB
RPMSpec

# norootforbuild
%define _prefix /usr
%if 0%{?!_without_lua:1} && 0%{?suse_version:1}0 && 0%{suse_version} < 920
%else
%define with_lua 1
%endif
Name: weechat
Version: 0.2.5
Release: 0
Summary: Portable, Fast, Light and Extensible IRC Client
Source: http://weechat.flashtux.org/download/weechat-%{version}.tar.bz2
Source1: weechat.desktop
Patch1: weechat-fix-strftime.patch
URL: http://weechat.flashtux.org/
Group: Productivity/Networking/IRC
License: GNU General Public License (GPL)
BuildRoot: %{_tmppath}/build-%{name}-%{version}
BuildRequires: ncurses ncurses-devel perl python python-devel
BuildRequires: ruby gcc gnutls gnutls-devel glibc-devel aspell aspell-devel
BuildRequires: libstdc++-devel
%if %{?with_lua:1}0
BuildRequires: lua-devel
%endif
%if 0%{suse_version} >= 1000
BuildRequires: ruby-devel
%endif
BuildRequires: lzo lzo-devel libgpg-error libgcrypt
BuildRequires: libgpg-error-devel libgcrypt-devel
BuildRequires: autoconf automake libtool
%if 0%{?suse_version:1}
BuildRequires: update-desktop-files
%endif
%description
WeeChat (Wee Enhanced Environment for Chat) is a fast and light IRC client
for many operating systems. Everything can be done with a keyboard, and it
is customizable and extensible with scripts. Many GUIs are available (Curses,
GTK, and Qt). It is compliant with RFCs 1459, 2810, 2811, 2812, and 2813.
%if %{?with_lua:1}0
%package lua
Summary: Lua Scripting Support for %{name}
Group: Productivity/Networking/IRC
Requires: %{name} = %{version}-%{release}
%description lua
Lua scripting plugin for %{name}
%endif
%package perl
Summary: Perl Scripting Support for %{name}
Group: Productivity/Networking/IRC
Requires: %{name} = %{version}-%{release}
%description perl
Perl scripting plugin for %{name}
%package python
Summary: Python Scripting Support for %{name}
Group: Productivity/Networking/IRC
Requires: %{name} = %{version}-%{release}
%description python
Python scripting plugin for %{name}
%package ruby
Summary: Ruby Scripting Support for %{name}
Group: Productivity/Networking/IRC
Requires: %{name} = %{version}-%{release}
%description ruby
Ruby scripting plugin for %{name}
%package aspell
Summary: Aspell Spell-Checking Support for %{name}
Group: Productivity/Networking/IRC
Requires: %{name} = %{version}-%{release}
%description aspell
Spell-checking support for %{name}, using aspell.
%debug_package
%prep
%setup -q
%patch1
%build
# don't, breaks build:
# autoreconf -fiv
%configure \
--disable-wxwidgets \
--disable-gtk \
--disable-qt
%__make %{?jobs:-j%{jobs}}
%install
%makeinstall
%__rm "%{buildroot}%{_libdir}/weechat/plugins"/*.{a,la}
%__install -D -m 0644 "%{SOURCE1}" "%{buildroot}%{_datadir}/applications/%{name}.desktop"
%__install -D -m 0644 weechat_icon_32.png "%{buildroot}%{_datadir}/pixmaps/%{name}.png"
%if 0%{?suse_version:1}
%suse_update_desktop_file -r "%{name}" Network IRCClient
%endif
%find_lang "%{name}"
%clean
%__rm -rf "%{buildroot}"
%files -f "%{name}.lang"
%defattr(-,root,root)
%doc AUTHORS BUGS ChangeLog COPYING FAQ* NEWS README TODO
%{_bindir}/weechat-curses
%dir %{_libdir}/weechat
%dir %{_libdir}/weechat/plugins
%{_libdir}/weechat/plugins/charset.so*
%doc %{_datadir}/doc/weechat
%doc %{_mandir}/man1/weechat-curses.1*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%if %{?with_lua:1}0
%files lua
%defattr(-,root,root)
%{_libdir}/weechat/plugins/lua.so
%{_libdir}/weechat/plugins/lua.so.*
%endif
%files perl
%defattr(-,root,root)
%{_libdir}/weechat/plugins/perl.so
%{_libdir}/weechat/plugins/perl.so.*
%files python
%defattr(-,root,root)
%{_libdir}/weechat/plugins/python.so
%{_libdir}/weechat/plugins/python.so.*
%files ruby
%defattr(-,root,root)
%{_libdir}/weechat/plugins/ruby.so
%{_libdir}/weechat/plugins/ruby.so.*
%files aspell
%defattr(-,root,root)
%{_libdir}/weechat/plugins/aspell.so
%{_libdir}/weechat/plugins/aspell.so.*
%changelog
* Sat Jun 9 2007 Pascal Bleser <guru@unixtech.be>
- initial build service submission
# Local Variables:
# mode: rpm-spec
# tab-width: 3
# End: