2007-01-16 00:17:55 +01:00
|
|
|
#
|
2011-11-21 14:24:17 +01:00
|
|
|
# spec file for package irssi
|
2007-01-16 00:17:55 +01:00
|
|
|
#
|
2015-01-07 17:40:31 +01:00
|
|
|
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:17:55 +01:00
|
|
|
#
|
2009-06-10 17:09:24 +02:00
|
|
|
# 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.
|
|
|
|
|
2007-01-16 00:17:55 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2014-10-17 15:29:52 +02:00
|
|
|
|
2014-09-04 17:32:51 +02:00
|
|
|
%bcond_with socks
|
2008-03-10 18:11:36 +01:00
|
|
|
|
2007-01-16 00:17:55 +01:00
|
|
|
Name: irssi
|
2014-10-17 15:29:52 +02:00
|
|
|
Version: 0.8.17
|
2012-03-06 09:29:32 +01:00
|
|
|
Release: 0
|
2007-10-19 04:33:14 +02:00
|
|
|
%define pkg_name irssi
|
2014-10-17 15:29:52 +02:00
|
|
|
%define pkg_version 0.8.17
|
2007-08-28 18:57:24 +02:00
|
|
|
#
|
|
|
|
#
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2014-09-04 17:32:51 +02:00
|
|
|
%if %{with socks}
|
2013-06-10 18:16:57 +02:00
|
|
|
%if 0%{?suse_version} > 1110
|
2013-02-11 12:20:23 +01:00
|
|
|
BuildRequires: dante-devel
|
2013-06-10 18:16:57 +02:00
|
|
|
%endif
|
2014-09-04 17:32:51 +02:00
|
|
|
%endif
|
2012-03-06 09:29:32 +01:00
|
|
|
BuildRequires: glib2-devel
|
|
|
|
BuildRequires: ncurses-devel
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
BuildRequires: pkgconfig
|
2011-01-12 14:14:19 +01:00
|
|
|
%if 0%{?suse_version}
|
|
|
|
BuildRequires: update-desktop-files
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version} > 1130
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
%endif
|
2011-01-12 14:16:42 +01:00
|
|
|
BuildRequires: perl
|
2007-10-19 04:33:14 +02:00
|
|
|
Conflicts: %{pkg_name}-snapshot
|
2007-08-28 18:57:24 +02:00
|
|
|
#
|
2007-10-19 04:33:14 +02:00
|
|
|
Url: http://www.irssi.org
|
2014-10-17 15:29:52 +02:00
|
|
|
Source: http://www.irssi.org/files/irssi-%{pkg_version}.tar.bz2
|
2011-01-12 14:14:19 +01:00
|
|
|
Source1: irssi.desktop
|
|
|
|
Source2: irssi.png
|
|
|
|
Source99: irssi-rpmlintrc
|
|
|
|
Patch: irssi-0.8.15_ssl_proxy.patch
|
2013-09-26 18:25:54 +02:00
|
|
|
# PATCH-FIX-OPENSUSE irssi-0.8.15-ssl-passphrase.patch bnc#842532
|
|
|
|
Patch1: irssi-0.8.15-ssl-passphrase.patch
|
2014-01-22 18:52:18 +01:00
|
|
|
# PATCH-FIX-OPENSUSE irssi-0.8.16_missing_prototype_warnings.patch
|
|
|
|
Patch2: irssi-0.8.16_missing_prototype_warnings.patch
|
2007-08-28 18:57:24 +02:00
|
|
|
#
|
2011-01-12 14:14:19 +01:00
|
|
|
Summary: Modular, Secure, and Well Designed IRC Client
|
2012-03-06 09:29:32 +01:00
|
|
|
License: GPL-2.0+
|
|
|
|
Group: Productivity/Networking/IRC
|
2011-01-12 14:14:19 +01:00
|
|
|
%if 0%{?suse_version} > 1130
|
|
|
|
%{perl_requires}
|
2013-09-05 17:44:44 +02:00
|
|
|
%{?libperl_requires}
|
2011-01-12 14:14:19 +01:00
|
|
|
%else
|
2013-09-05 17:44:44 +02:00
|
|
|
Requires: perl = %{perl_version}
|
2011-01-12 14:14:19 +01:00
|
|
|
%endif
|
2007-01-16 00:17:55 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
Irssi is a modular IRC client for UNIX that currently only has a text
|
|
|
|
mode user interface. However, 80-90% of the code is not text mode
|
|
|
|
specific, so other UIs could be created easily. Also, Irssi is not
|
|
|
|
really even IRC specific anymore. There are already working SILC and
|
|
|
|
ICB modules available. Support for other protocols, like ICQ and
|
|
|
|
Jabber, could be added some day, too.
|
|
|
|
|
|
|
|
It is the code that separates Irssi from ircII, BitchX, epic, and the
|
|
|
|
rest of the text clients. It is not using the ircII code.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Timo Sirainen <cras@irssi.org>
|
|
|
|
|
|
|
|
%package devel
|
2007-10-19 04:33:14 +02:00
|
|
|
Requires: %{pkg_name} = %{version}
|
2014-01-22 18:52:18 +01:00
|
|
|
Requires: dante-devel
|
2007-08-28 18:57:24 +02:00
|
|
|
#
|
|
|
|
Summary: Development package for irssi
|
2012-03-06 09:29:32 +01:00
|
|
|
Group: Development/Languages/C and C++
|
2007-01-16 00:17:55 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains the development files for irssi. It allows to
|
|
|
|
compile plugins for the irssi package.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Timo Sirainen <cras@irssi.org>
|
|
|
|
|
|
|
|
%prep
|
2014-10-17 15:29:52 +02:00
|
|
|
%setup -q -n %{pkg_name}-%{pkg_version}
|
2011-01-12 14:14:19 +01:00
|
|
|
#patch
|
2014-07-29 18:17:52 +02:00
|
|
|
#patch1
|
2014-01-22 18:52:18 +01:00
|
|
|
%patch2
|
2007-01-16 00:17:55 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
# cp curses.m4 acinclude.m4
|
2007-08-02 15:53:49 +02:00
|
|
|
#touch irssi.cvs
|
|
|
|
#NOCONFIGURE=yes ./autogen.sh
|
2007-10-19 04:33:14 +02:00
|
|
|
%if 0%{?sles_version} == 9
|
|
|
|
export PKG_CONFIG_PATH="/opt/gnome/%{_lib}/pkgconfig:$PKG_CONFIG_PATH"
|
|
|
|
%endif
|
2015-01-07 17:40:31 +01:00
|
|
|
export CFLAGS="%{optflags} -fno-strict-aliasing -DGLIB_DISABLE_DEPRECATION_WARNINGS -fPIE"
|
|
|
|
export LDFLAGS="-pie"
|
2007-01-16 00:17:55 +01:00
|
|
|
%configure \
|
2014-10-17 15:29:52 +02:00
|
|
|
--enable-ipv6 \
|
|
|
|
--with-bot \
|
|
|
|
--with-proxy \
|
2014-09-04 17:32:51 +02:00
|
|
|
%if %{with socks}
|
2014-10-17 15:29:52 +02:00
|
|
|
--with-socks \
|
2014-09-04 17:32:51 +02:00
|
|
|
%endif
|
2014-10-17 15:29:52 +02:00
|
|
|
--enable-dane \
|
|
|
|
--enable-ssl \
|
|
|
|
--with-ncurses \
|
|
|
|
--with-terminfo \
|
|
|
|
--enable-true-color \
|
|
|
|
--with-perl=yes \
|
|
|
|
--with-perl-lib=vendor
|
2011-01-12 14:14:19 +01:00
|
|
|
%__make %{?jobs:-j%{jobs}} all
|
2007-01-16 00:17:55 +01:00
|
|
|
|
|
|
|
%install
|
2007-10-19 04:33:14 +02:00
|
|
|
%makeinstall docdir=%{_docdir}/%{pkg_name}
|
2007-01-16 00:17:55 +01:00
|
|
|
%perl_process_packlist
|
2011-01-12 14:14:19 +01:00
|
|
|
%__rm %{buildroot}%{_libdir}/irssi/modules/libirc_proxy.{a,la}
|
|
|
|
|
|
|
|
%__install -D -m0644 "%{SOURCE1}" "%{buildroot}%{_datadir}/applications/%{name}.desktop"
|
|
|
|
%__install -D -m0644 "%{SOURCE2}" "%{buildroot}%{_datadir}/pixmaps/irssi.png"
|
|
|
|
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
%suse_update_desktop_file -r "%{name}" Network IRCClient
|
|
|
|
%endif
|
2007-01-16 00:17:55 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2009-06-10 17:09:24 +02:00
|
|
|
%config(noreplace) %{_sysconfdir}/irssi.conf
|
2007-01-16 00:17:55 +01:00
|
|
|
%{_bindir}/botti
|
|
|
|
%{_bindir}/irssi
|
|
|
|
# modules
|
|
|
|
%dir %{_libdir}/irssi
|
|
|
|
%dir %{_libdir}/irssi/modules
|
|
|
|
%{_libdir}/irssi/modules/*.so*
|
|
|
|
# scripts & themes
|
2007-10-19 04:33:14 +02:00
|
|
|
%dir %{_datadir}/%{pkg_name}
|
|
|
|
%{_datadir}/%{pkg_name}/*
|
2007-01-16 00:17:55 +01:00
|
|
|
#perl
|
|
|
|
%dir %perl_vendorarch/Irssi
|
|
|
|
%perl_vendorarch/Irssi.pm
|
|
|
|
%perl_vendorarch/Irssi/*
|
|
|
|
%perl_vendorarch/auto/Irssi
|
|
|
|
# docs
|
|
|
|
%dir %_defaultdocdir/irssi
|
|
|
|
%docdir %_defaultdocdir/irssi/
|
|
|
|
%doc %_defaultdocdir/irssi/*
|
2011-01-12 14:14:19 +01:00
|
|
|
%doc %_mandir/man1/*.1%{ext_man}
|
|
|
|
%{_datadir}/applications/%{name}.desktop
|
|
|
|
%{_datadir}/pixmaps/irssi.png
|
|
|
|
%if 0%{?suse_version} <= 1130
|
|
|
|
/var/adm/perl-modules/%{pkg_name}
|
|
|
|
%endif
|
2007-01-16 00:17:55 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_includedir}/irssi/
|
2008-03-10 18:11:36 +01:00
|
|
|
|
2007-03-29 22:18:30 +02:00
|
|
|
%changelog
|