File weechat.spec of Package weechat

#
# spec file for package weechat (Version 0.2.6.3)
#
# Copyright 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.


Summary: Fast, light and extensible chat client
Name: weechat
Version: 0.2.6.3
Release: 1
Source0: %{name}-%{version}.tar.bz2
Vendor: %{vendor}
URL: http://weechat.flashtux.org/index.php
License: GPL
Group: Productivity/Networking/IRC
AutoReqProv: on
Requires: lua >= 5.1
Requires: perl = %{perl_version}
Requires: aspell
BuildRequires: gtk2-devel ncurses-devel ruby perl lua python aspell fdupes
BuildRoot: %{_builddir}/%{name}-%{version}-build

Suggests: ruby python

%description
Fast, light and extensible chat client for the
command line interface.

This version corresponds to the stable branch.
With just GTK2 and ncurses interfaces.

%prep
%setup -q


%build
if [ -x ./configure ]; then
  CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix} \
	--enable-ncurses \
	--enable-gtk \
	--libdir=%{_libdir} \
	--datadir=%{_datadir} \
	--docdir=%{_docdir} \
	--sysconfdir=%{_sysconfdir} \
	--mandir=%{_mandir} \
	--disable-static
else
  CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%{_prefix}
fi
%{__make} %{?jobs:-j%jobs}

%debug_package


%install
%{__make} DESTDIR=$RPM_BUILD_ROOT install 
%fdupes %{buildroot}

if [ -d "%{buildroot}%{_datadir}/doc" ]
then
%__install -d -m 0755 %{buildroot}%{_docdir}
%__mv -f %{buildroot}%{_datadir}/doc/%{name} \
%{buildroot}%{_docdir}
fi

%find_lang %{name}

%clean
rm -rf $RPM_BUILD_ROOT


%files -f %{name}.lang
%defattr(-,root,root,-)
%attr(0755,root,root)%{_bindir}/%{name}-curses
%attr(0755,root,root)%{_bindir}/%{name}-gtk
%{_libdir}/%{name}
%{_libdir}/%{name}/plugins/charset.la
%{_libdir}/%{name}/plugins/charset.so
%{_libdir}/%{name}/plugins/charset.so.0
%{_libdir}/%{name}/plugins/charset.so.0.0.0
%{_libdir}/%{name}/plugins/perl.la
%{_libdir}/%{name}/plugins/perl.so
%{_libdir}/%{name}/plugins/perl.so.0
%{_libdir}/%{name}/plugins/perl.so.0.0.0

%lang(cs) %{_datadir}/locale/cs/LC_MESSAGES/%{name}.mo
%lang(de) %{_datadir}/locale/de/LC_MESSAGES/%{name}.mo
%lang(es) %{_datadir}/locale/es/LC_MESSAGES/%{name}.mo
%lang(fr) %{_datadir}/locale/fr/LC_MESSAGES/%{name}.mo
%lang(hu) %{_datadir}/locale/hu/LC_MESSAGES/%{name}.mo
%lang(ru) %{_datadir}/locale/ru/LC_MESSAGES/%{name}.mo

%doc %{_docdir}/%{name}
%doc %{_docdir}/%{name}/html/de/weechat-doc.css
%doc %{_docdir}/%{name}/html/en/weechat-doc.css
%doc %{_docdir}/%{name}/html/fr/weechat-doc.css
%doc %{_docdir}/%{name}/weechat_quickstart.cs.txt
%doc %{_docdir}/%{name}/weechat_quickstart.de.txt
%doc %{_docdir}/%{name}/weechat_quickstart.en.txt
%doc %{_docdir}/%{name}/weechat_quickstart.fr.txt
%doc %{_docdir}/%{name}/weechat_quickstart.pl.txt
%doc %{_docdir}/%{name}/weechat_quickstart.ru.txt
%doc %{_docdir}/%{name}/weechat_quickstart.sco.txt
%doc %{_docdir}/%{name}/weechat_quickstart.sv.txt

%doc %{_mandir}/man1/%{name}-curses.1.gz


%changelog
* Mon Jun 22 2009 Mario GarcĂ­a H. <code933k@gmail.com> - 0.2.6.3
- Initial package.
openSUSE Build Service is sponsored by