# norootforbuild %if 0%{?!_without_lua:1} && 0%{?suse_version:1}0 && 0%{suse_version} < 920 %else %define with_lua 1 %endif Name: weechat Version: 0.3.0 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 Patch2: weechat-disable_messing_with_cflags.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 cmake 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: tcl-devel BuildRequires: lzo lzo-devel libgpg-error libgcrypt BuildRequires: libgpg-error-devel libgcrypt-devel BuildRequires: autoconf automake libtool pkgconfig %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. %package devel Summary: Development Environment for %{name} Plugins Group: Development/Libraries/C and C++ Requires: %{name} = %{version}-%{release} %description devel Development environment for authoring %{name} plugins. %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 tcl Summary: TCL Scripting Support for %{name} Group: Productivity/Networking/IRC Requires: %{name} = %{version}-%{release} %description tcl TCL 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. %prep %setup -q %patch1 %patch2 %if "%{_lib}"!="lib" %__grep -rl 'INSTALL(.* lib/' . \ | xargs %__sed -i.orig -r 's|^(INSTALL\(.* )lib(/.*)$|\1%{_lib}\2|' %__grep -rl 'DESTINATION .*CMAKE_INSTALL_PREFIX.*/lib/' . \ | xargs %__sed -i.orig -r 's|^(.*DESTINATION .*CMAKE_INSTALL_PREFIX.*/)lib(/.*)|\1%{_lib}\2|' %endif %build %__mkdir build pushd build cmake -DCMAKE_INSTALL_PREFIX="%{_prefix}" VERBOSE=1 .. %__make %{?jobs:-j%{jobs}} popd #build %install pushd build %makeinstall popd #build %__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} %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 ChangeLog COPYING NEWS README %{_bindir}/weechat-curses %dir %{_libdir}/weechat %dir %{_libdir}/weechat/plugins %{_libdir}/weechat/plugins/alias.so %{_libdir}/weechat/plugins/charset.so %{_libdir}/weechat/plugins/fifo.so %{_libdir}/weechat/plugins/irc.so %{_libdir}/weechat/plugins/logger.so %{_libdir}/weechat/plugins/xfer.so %doc %{_mandir}/man1/weechat-curses.1* %{_datadir}/applications/%{name}.desktop %{_datadir}/pixmaps/%{name}.png %files devel %defattr(-,root,root) %{_includedir}/weechat %{_libdir}/pkgconfig/weechat.pc %if %{?with_lua:1}0 %files lua %defattr(-,root,root) %{_libdir}/weechat/plugins/lua.so %endif %files perl %defattr(-,root,root) %{_libdir}/weechat/plugins/perl.so %files python %defattr(-,root,root) %{_libdir}/weechat/plugins/python.so %files tcl %defattr(-,root,root) %{_libdir}/weechat/plugins/tcl.so %files ruby %defattr(-,root,root) %{_libdir}/weechat/plugins/ruby.so %files aspell %defattr(-,root,root) %{_libdir}/weechat/plugins/aspell.so %changelog * Mon Sep 14 2009 Pascal Bleser 0.3.0 - update to 0.3.0: * externalization of IRC as a plugin * new display engine (faster) * NES plugins * new plugin API * buffers with free content * dynamic filtering * smart join/part/quit filter * custom bars with custom items * buffer merging * group support in nicklist * less CPU usage * Sat Jun 13 2009 Pascal Bleser 0.2.6.3 - update to 0.2.6.3: * fixes a bug with detection of the gnutls library * Sun Apr 19 2009 Pascal Bleser 0.2.6.2 - update to 0.2.6.2: * fixes a charset decoding problem * Tue Mar 17 2009 Pascal Bleser 0.2.6.1 - update to 0.2.6.1: * fixes a crash with some special characters in IRC messages * Thu Sep 6 2007 Pascal Bleser 0.2.6 - update to 0.2.6 * Sat Jun 9 2007 Pascal Bleser - initial build service submission # Local Variables: # mode: rpm-spec # tab-width: 3 # End: