3 # - consider doing subpackages for all those plugins (which one should be in main package ?)
6 %bcond_without aspell # don't build aspell support
7 %bcond_without gtk # build gtk support
8 %bcond_with qt # don't build qt support
9 %bcond_without ruby # don't build ruby plugin support
10 %bcond_without lua # don't build lua plugin support
11 %bcond_without perl # don't build perl plugin support
12 %bcond_without python # don't build python plugin support
13 %bcond_without gnutls # don't build gnutls support
15 %define skip_post_check_so ruby.so.0.0.0
17 Summary: WeeChat - fast and light chat environment
18 Summary(pl.UTF-8): WeeChat - szybkie i lekkie środowisko do rozmów
23 Group: Applications/Communications
24 Source0: http://www.weechat.org/files/src/%{name}-%{version}.tar.gz
25 # Source0-md5: a36a89b6012994dc67c4c0ea36784d1d
26 Patch0: %{name}-ac.patch
27 Patch1: %{name}-plugins_header.patch
28 Patch2: %{name}-curses.patch
29 URL: http://www.weechat.org/
30 %{?with_aspell:BuildRequires: aspell-devel}
31 BuildRequires: autoconf
32 BuildRequires: automake
33 BuildRequires: gettext-devel
34 %{?with_gnutls:BuildRequires: gnutls-devel}
35 %{?with_gtk:BuildRequires: gtk+2-devel}
36 BuildRequires: libtool
37 %{?with_lua:BuildRequires: lua-devel >= 5.0}
38 BuildRequires: ncurses-devel
39 %{?with_perl:BuildRequires: perl-devel}
40 BuildRequires: pkgconfig
42 BuildRequires: python-devel
43 BuildRequires: python-modules
45 %{?with_qt:BuildRequires: qt-devel}
46 BuildRequires: rpmbuild(macros) >= 1.129
47 %{?with_ruby:BuildRequires: ruby-devel}
48 BuildRequires: tcl-devel
49 Requires: %{name}-common = %{version}-%{release}
50 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
53 WeeChat (Wee Enhanced Environment for Chat) is a fast and light chat
54 environment for many operating systems. Everything can be done with a
55 keyboard. It is customizable and extensible with scripts.
57 %description -l pl.UTF-8
58 WeeChat (Wee Ehanced Environment for Chat) to szybkie i lekkie
59 środowisko do rozmów dla wielu systemów operacyjnych. Pozwala wszystko
60 zrobić przy pomocy klawiatury. Jest konfigurowalne i rozszerzalne za
64 Summary: GTK WeeChat UI
65 Group: Applications/Communications
66 Requires: %{name}-common = %{version}-%{release}
72 Summary: WeeChat common files
73 Group: Applications/Communications
83 sed -i -e 's#PYTHON_LIB=.*#PYTHON_LIB=%{_libdir}#g' configure.in
91 %if "%{_lib}" == "lib64"
92 --enable-libsuffix=64 \
94 --enable-threads=posix \
97 --%{?with_qt:en}%{!?with_qt:dis}able-qt \
99 --%{?with_aspell:en}%{!?with_aspell:dis}able-aspell \
100 --%{?with_gtk:en}%{!?with_gtk:dis}able-gtk \
101 --%{?with_perl:en}%{!?with_perl:dis}able-perl \
102 --%{?with_python:en}%{!?with_python:dis}able-python \
103 --%{?with_ruby:en}%{!?with_ruby:dis}able-ruby \
104 --%{?with_lua:en}%{!?with_lua:dis}able-lua \
105 --%{?with_gnutls:en}%{!?with_gnutls:dis}able-gnutls
109 rm -rf $RPM_BUILD_ROOT
110 install -d $RPM_BUILD_ROOT%{_mandir}/man1
113 DESTDIR=$RPM_BUILD_ROOT
115 rm -f $RPM_BUILD_ROOT%{_libdir}/weechat/plugins/*.la
116 cp doc/weechat-curses.1 $RPM_BUILD_ROOT%{_mandir}/man1
121 rm -rf $RPM_BUILD_ROOT
124 %defattr(644,root,root,755)
125 %attr(755,root,root) %{_bindir}/weechat-curses
126 %{_mandir}/man1/weechat-curses.1*
130 %defattr(644,root,root,755)
131 %attr(755,root,root) %{_bindir}/weechat-gtk
134 %files common -f %{name}.lang
135 %defattr(644,root,root,755)
136 %doc AUTHORS ChangeLog NEWS README UPGRADE_0.3
137 %dir %{_includedir}/weechat
138 %dir %{_libdir}/weechat
139 %dir %{_libdir}/weechat/plugins
140 %{_includedir}/weechat/weechat-plugin.h
141 %attr(755,root,root) %{_libdir}/weechat/plugins/alias.so*
142 %attr(755,root,root) %{_libdir}/weechat/plugins/aspell.so*
143 %attr(755,root,root) %{_libdir}/weechat/plugins/charset.so*
144 %attr(755,root,root) %{_libdir}/weechat/plugins/fifo.so*
145 %attr(755,root,root) %{_libdir}/weechat/plugins/irc.so*
146 %attr(755,root,root) %{_libdir}/weechat/plugins/logger.so*
147 %attr(755,root,root) %{_libdir}/weechat/plugins/lua.so*
148 %attr(755,root,root) %{_libdir}/weechat/plugins/perl.so*
149 %attr(755,root,root) %{_libdir}/weechat/plugins/python.so*
150 %attr(755,root,root) %{_libdir}/weechat/plugins/relay.so*
151 %attr(755,root,root) %{_libdir}/weechat/plugins/rmodifier.so*
152 %attr(755,root,root) %{_libdir}/weechat/plugins/ruby.so*
153 %attr(755,root,root) %{_libdir}/weechat/plugins/tcl.so*
154 %attr(755,root,root) %{_libdir}/weechat/plugins/xfer.so*
155 %{_pkgconfigdir}/weechat.pc