2010-11-09 00:33:01 +01:00
|
|
|
#
|
2011-05-16 10:31:45 +02:00
|
|
|
# spec file for package weechat (Version 0.3.5)
|
2010-11-09 00:33:01 +01:00
|
|
|
#
|
|
|
|
# Copyright (c) 2010 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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
2007-06-09 00:40:41 +02:00
|
|
|
|
2010-11-09 00:33:01 +01:00
|
|
|
# norootforbuild
|
2007-06-09 00:48:34 +02:00
|
|
|
|
2010-11-09 00:33:01 +01:00
|
|
|
Name: weechat
|
2011-10-23 01:05:08 +02:00
|
|
|
Version: 0.3.6
|
2011-01-16 16:23:34 +01:00
|
|
|
Release: 0
|
2010-11-09 00:33:01 +01:00
|
|
|
Summary: Portable, Fast, Light and Extensible Chat Client
|
|
|
|
Source: http://www.weechat.org/files/src/weechat-%{version}.tar.bz2
|
|
|
|
Source1: weechat.desktop
|
|
|
|
Patch1: weechat-0.3.3-fix-strftime.patch
|
2011-10-23 01:05:08 +02:00
|
|
|
Patch2: weechat-remove_build_timestamp.patch
|
2011-01-16 16:23:34 +01:00
|
|
|
URL: http://www.weechat.org
|
2010-11-09 00:33:01 +01:00
|
|
|
Group: Productivity/Networking/IRC
|
|
|
|
License: GNU General Public License (GPL)
|
2011-01-16 16:23:34 +01:00
|
|
|
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
|
|
|
BuildRequires: ncurses-devel perl python-devel cmake
|
|
|
|
BuildRequires: ruby gcc gnutls gnutls-devel glibc-devel aspell-devel
|
|
|
|
BuildRequires: libstdc++-devel gcc-c++
|
2010-11-09 00:33:01 +01:00
|
|
|
BuildRequires: lua-devel ruby-devel
|
2009-09-14 19:11:57 +02:00
|
|
|
BuildRequires: tcl-devel
|
2011-01-16 16:23:34 +01:00
|
|
|
BuildRequires: lzo-devel libgpg-error libgcrypt
|
|
|
|
BuildRequires: libgpg-error-devel libgcrypt-devel
|
2010-11-09 00:33:01 +01:00
|
|
|
BuildRequires: autoconf automake libtool pkgconfig
|
2007-06-09 00:48:34 +02:00
|
|
|
%if 0%{?suse_version:1}
|
2010-11-09 00:33:01 +01:00
|
|
|
BuildRequires: update-desktop-files
|
2009-11-07 02:46:55 +01:00
|
|
|
%endif
|
2007-06-09 00:40:41 +02:00
|
|
|
|
|
|
|
%description
|
2010-11-09 00:33:01 +01:00
|
|
|
WeeChat (Wee Enhanced Environment for Chat) is a fast and light cross-platform
|
|
|
|
chat environment. It can be entirely controlled with the keyboard, has a
|
|
|
|
plugin-based architecture and is customizable and extensible with scripts in
|
|
|
|
several scripting languages.
|
|
|
|
|
2010-12-20 16:53:49 +01:00
|
|
|
%lang_package
|
2011-01-16 16:23:34 +01:00
|
|
|
|
2009-09-14 16:00:40 +02:00
|
|
|
%package devel
|
2010-11-09 00:33:01 +01:00
|
|
|
Summary: Development Environment for %{name} Plugins
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
2009-09-14 16:00:40 +02:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
Development environment for authoring %{name} plugins.
|
|
|
|
|
2007-06-09 00:40:41 +02:00
|
|
|
%package lua
|
2010-11-09 00:33:01 +01:00
|
|
|
Summary: Lua Scripting Support for %{name}
|
|
|
|
Group: Productivity/Networking/IRC
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
2007-06-09 00:40:41 +02:00
|
|
|
|
|
|
|
%description lua
|
2009-11-07 01:32:08 +01:00
|
|
|
Support for %{name} scripts written in the Lua language.
|
2007-06-09 00:40:41 +02:00
|
|
|
|
|
|
|
%package perl
|
2010-11-09 00:33:01 +01:00
|
|
|
Summary: Perl Scripting Support for %{name}
|
|
|
|
Group: Productivity/Networking/IRC
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
2007-06-09 00:40:41 +02:00
|
|
|
|
|
|
|
%description perl
|
2009-11-07 01:32:08 +01:00
|
|
|
Support for %{name} scripts written in the Perl language.
|
2007-06-09 00:40:41 +02:00
|
|
|
|
|
|
|
%package python
|
2010-11-09 00:33:01 +01:00
|
|
|
Summary: Python Scripting Support for %{name}
|
|
|
|
Group: Productivity/Networking/IRC
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
2007-06-09 00:40:41 +02:00
|
|
|
|
|
|
|
%description python
|
2009-11-07 01:32:08 +01:00
|
|
|
Support for %{name} scripts written in the Python language.
|
2007-06-09 00:40:41 +02:00
|
|
|
|
2009-09-14 16:00:40 +02:00
|
|
|
%package tcl
|
2010-11-09 00:33:01 +01:00
|
|
|
Summary: Tcl Scripting Support for %{name}
|
|
|
|
Group: Productivity/Networking/IRC
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
2009-09-14 16:00:40 +02:00
|
|
|
|
|
|
|
%description tcl
|
2009-11-07 01:32:08 +01:00
|
|
|
Support for %{name} scripts written in the Tcl language.
|
2009-09-14 16:00:40 +02:00
|
|
|
|
2007-06-09 00:40:41 +02:00
|
|
|
%package ruby
|
2010-11-09 00:33:01 +01:00
|
|
|
Summary: Ruby Scripting Support for %{name}
|
|
|
|
Group: Productivity/Networking/IRC
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
2007-06-09 00:40:41 +02:00
|
|
|
|
|
|
|
%description ruby
|
2009-11-07 01:32:08 +01:00
|
|
|
Support for %{name} scripts written in the Ruby language.
|
2007-06-09 00:40:41 +02:00
|
|
|
|
|
|
|
%package aspell
|
2010-11-09 00:33:01 +01:00
|
|
|
Summary: Aspell Spell-Checking Support for %{name}
|
|
|
|
Group: Productivity/Networking/IRC
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
2007-06-09 00:40:41 +02:00
|
|
|
|
|
|
|
%description aspell
|
2009-11-07 01:32:08 +01:00
|
|
|
Spell-checking support for %{name}, using the aspell library.
|
2007-06-09 00:40:41 +02:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2010-11-09 00:33:01 +01:00
|
|
|
%patch1 -p1
|
2011-10-23 01:05:08 +02:00
|
|
|
%patch2
|
2007-06-09 00:40:41 +02:00
|
|
|
|
2009-09-14 16:00:40 +02:00
|
|
|
%build
|
2010-11-09 00:33:01 +01:00
|
|
|
export CFLAGS="%{optflags}"
|
2009-09-14 16:00:40 +02:00
|
|
|
%__mkdir build
|
|
|
|
pushd build
|
2010-11-09 00:33:01 +01:00
|
|
|
cmake \
|
|
|
|
-DCMAKE_INSTALL_PREFIX="%{_prefix}" \
|
|
|
|
-DLIBDIR="%{_libdir}" \
|
|
|
|
-DPYTHON_LIBRARY="%{_libdir}/libpython%{py_ver}.so" ..
|
|
|
|
%__make %{?_smp_flags} VERBOSE=1
|
2009-09-14 16:00:40 +02:00
|
|
|
popd #build
|
2007-06-09 00:40:41 +02:00
|
|
|
|
|
|
|
%install
|
2009-09-14 16:00:40 +02:00
|
|
|
pushd build
|
2007-06-09 00:40:41 +02:00
|
|
|
%makeinstall
|
2009-09-14 16:00:40 +02:00
|
|
|
popd #build
|
2007-06-09 00:40:41 +02:00
|
|
|
|
|
|
|
%__install -D -m 0644 "%{SOURCE1}" "%{buildroot}%{_datadir}/applications/%{name}.desktop"
|
|
|
|
%__install -D -m 0644 weechat_icon_32.png "%{buildroot}%{_datadir}/pixmaps/%{name}.png"
|
2009-09-14 16:00:40 +02:00
|
|
|
%if 0%{?suse_version}
|
2007-06-09 00:40:41 +02:00
|
|
|
%suse_update_desktop_file -r "%{name}" Network IRCClient
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%find_lang "%{name}"
|
|
|
|
|
|
|
|
%clean
|
2011-01-16 16:23:34 +01:00
|
|
|
%{?buildroot:%__rm -rf "%{buildroot}"}
|
2007-06-09 00:40:41 +02:00
|
|
|
|
2011-03-24 00:55:34 +01:00
|
|
|
%if 0%{?suse_version} >= 1140
|
|
|
|
|
|
|
|
%post
|
|
|
|
%desktop_database_post
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%desktop_database_postun
|
|
|
|
%endif
|
|
|
|
|
2010-11-09 00:33:01 +01:00
|
|
|
%files
|
2007-06-09 00:40:41 +02:00
|
|
|
%defattr(-,root,root)
|
2009-09-14 16:00:40 +02:00
|
|
|
%doc AUTHORS ChangeLog COPYING NEWS README
|
2007-06-09 00:40:41 +02:00
|
|
|
%{_bindir}/weechat-curses
|
|
|
|
%dir %{_libdir}/weechat
|
|
|
|
%dir %{_libdir}/weechat/plugins
|
2009-09-14 16:00:40 +02:00
|
|
|
%{_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
|
2011-01-16 16:23:34 +01:00
|
|
|
%{_libdir}/weechat/plugins/relay.so
|
|
|
|
%{_libdir}/weechat/plugins/rmodifier.so
|
2009-09-14 16:00:40 +02:00
|
|
|
%{_libdir}/weechat/plugins/xfer.so
|
2007-06-09 00:40:41 +02:00
|
|
|
%doc %{_mandir}/man1/weechat-curses.1*
|
|
|
|
%{_datadir}/applications/%{name}.desktop
|
|
|
|
%{_datadir}/pixmaps/%{name}.png
|
|
|
|
|
2010-11-09 00:33:01 +01:00
|
|
|
%files -f "%{name}.lang" lang
|
|
|
|
|
2009-09-14 16:00:40 +02:00
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_includedir}/weechat
|
|
|
|
%{_libdir}/pkgconfig/weechat.pc
|
|
|
|
|
2007-06-09 00:40:41 +02:00
|
|
|
%files lua
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/weechat/plugins/lua.so
|
|
|
|
|
|
|
|
%files perl
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/weechat/plugins/perl.so
|
|
|
|
|
|
|
|
%files python
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/weechat/plugins/python.so
|
2009-09-14 16:00:40 +02:00
|
|
|
|
|
|
|
%files tcl
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/weechat/plugins/tcl.so
|
2007-06-09 00:40:41 +02:00
|
|
|
|
|
|
|
%files ruby
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/weechat/plugins/ruby.so
|
|
|
|
|
|
|
|
%files aspell
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/weechat/plugins/aspell.so
|
|
|
|
|
|
|
|
%changelog
|