SHA256
1
0
forked from pool/weechat
OBS User unknown 2007-06-08 22:48:34 +00:00 committed by Git OBS Bridge
parent 5439f1768f
commit d21ef9092f

View File

@ -2,6 +2,11 @@
%define _prefix /usr %define _prefix /usr
%if 0%{?!_without_lua:1} && 0%{?suse_version:1}0 && 0%{suse_version} < 920
%else
%define with_lua
%endif
Name: weechat Name: weechat
Version: 0.2.5 Version: 0.2.5
Release: 0 Release: 0
@ -13,15 +18,18 @@ URL: http://weechat.flashtux.org/
Group: Productivity/Networking/IRC Group: Productivity/Networking/IRC
License: GNU General Public License (GPL) License: GNU General Public License (GPL)
BuildRoot: %{_tmppath}/build-%{name}-%{version} BuildRoot: %{_tmppath}/build-%{name}-%{version}
BuildRequires: ncurses ncurses-devel lua lua-devel perl python python-devel BuildRequires: ncurses ncurses-devel perl python python-devel
BuildRequires: ruby gcc gnutls gnutls-devel glibc-devel aspell aspell-devel BuildRequires: ruby gcc gnutls gnutls-devel glibc-devel aspell aspell-devel
%if %{?with_lua:1}0
BuildRequires: lua-devel
%endif
%if 0%{suse_version} >= 1000 %if 0%{suse_version} >= 1000
BuildRequires: ruby-devel BuildRequires: ruby-devel
%endif %endif
BuildRequires: lzo lzo-devel libgpg-error libgcrypt BuildRequires: lzo lzo-devel libgpg-error libgcrypt
BuildRequires: libgpg-error-devel libgcrypt-devel BuildRequires: libgpg-error-devel libgcrypt-devel
BuildRequires: autoconf automake libtool BuildRequires: autoconf automake libtool
%if 0%{suse_release} %if 0%{?suse_version:1}
BuildRequires: update-desktop-files BuildRequires: update-desktop-files
%endif %endif
@ -31,6 +39,7 @@ for many operating systems. Everything can be done with a keyboard, and it
is customizable and extensible with scripts. Many GUIs are available (Curses, 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. GTK, and Qt). It is compliant with RFCs 1459, 2810, 2811, 2812, and 2813.
%if %{?with_lua:1}0
%package lua %package lua
Summary: Lua Scripting Support for %{name} Summary: Lua Scripting Support for %{name}
Group: Productivity/Networking/IRC Group: Productivity/Networking/IRC
@ -38,6 +47,7 @@ Requires: %{name} = %{version}-%{release}
%description lua %description lua
Lua scripting plugin for %{name} Lua scripting plugin for %{name}
%endif
%package perl %package perl
Summary: Perl Scripting Support for %{name} Summary: Perl Scripting Support for %{name}
@ -93,7 +103,7 @@ Spell-checking support for %{name}, using aspell.
%__install -D -m 0644 "%{SOURCE1}" "%{buildroot}%{_datadir}/applications/%{name}.desktop" %__install -D -m 0644 "%{SOURCE1}" "%{buildroot}%{_datadir}/applications/%{name}.desktop"
%__install -D -m 0644 weechat_icon_32.png "%{buildroot}%{_datadir}/pixmaps/%{name}.png" %__install -D -m 0644 weechat_icon_32.png "%{buildroot}%{_datadir}/pixmaps/%{name}.png"
%if 0%{suse_release} %if 0%{?suse_version:1}
%suse_update_desktop_file -r "%{name}" Network IRCClient %suse_update_desktop_file -r "%{name}" Network IRCClient
%endif %endif
@ -114,10 +124,12 @@ Spell-checking support for %{name}, using aspell.
%{_datadir}/applications/%{name}.desktop %{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png %{_datadir}/pixmaps/%{name}.png
%if %{?with_lua:1}0
%files lua %files lua
%defattr(-,root,root) %defattr(-,root,root)
%{_libdir}/weechat/plugins/lua.so %{_libdir}/weechat/plugins/lua.so
%{_libdir}/weechat/plugins/lua.so.* %{_libdir}/weechat/plugins/lua.so.*
%endif
%files perl %files perl
%defattr(-,root,root) %defattr(-,root,root)