1 |
Name: irssi |
2 |
Version: 0.8.21 |
3 |
%define subrel 1 |
4 |
Release: %mkrel 1 |
5 |
Summary: IRC client |
6 |
License: GPLv2+ |
7 |
Group: Networking/IRC |
8 |
URL: http://irssi.org/ |
9 |
Source0: https://github.com/%{name}/%{name}/releases/download/%{version}/%{name}-%{version}.tar.gz |
10 |
Patch0: CVE-2017-9468.patch |
11 |
Patch1: CVE-2017-9469.patch |
12 |
BuildRequires: ncurses-devel |
13 |
BuildRequires: glib2-devel |
14 |
BuildRequires: openssl-devel |
15 |
BuildRequires: perl-devel |
16 |
Recommends: irssi-perl |
17 |
|
18 |
%description |
19 |
Irssi is a modular and flexible IRC client for UNIX that has only a text mode |
20 |
user interface (but as 80-90% of the code isn't text mode specific, other UIs |
21 |
could be created pretty easily). Also, Irssi isn't really even IRC specific |
22 |
anymore, there are already working SILC and ICB modules available. Support for |
23 |
other protocols like ICQ and Jabber could be created some day too. |
24 |
|
25 |
Irssi is one of the most popular IRC clients at the moment. |
26 |
|
27 |
%package devel |
28 |
Group: Development/C |
29 |
Summary: Static libraries for the development of irssi applications |
30 |
Requires: %{name} = %{version} |
31 |
|
32 |
%description devel |
33 |
Static libraries for the development of irssi applications. |
34 |
|
35 |
%package perl |
36 |
Group: Networking/IRC |
37 |
Summary: Perl plugin for irssi |
38 |
Requires: %{name} = %{version} |
39 |
Conflicts: perl-silc |
40 |
|
41 |
%description perl |
42 |
Perl plugin for irssi. |
43 |
|
44 |
%prep |
45 |
%setup -q |
46 |
%apply_patches |
47 |
|
48 |
%build |
49 |
%configure2_5x --with-plugins \ |
50 |
--enable-ipv6 \ |
51 |
--with-proxy \ |
52 |
--with-socks \ |
53 |
--with-bot \ |
54 |
--with-perl=module \ |
55 |
--with-perl-lib=%{perl_vendorlib} |
56 |
%make |
57 |
|
58 |
%install |
59 |
%makeinstall_std |
60 |
|
61 |
# Files that should not be installed: |
62 |
rm -f %{buildroot}%{perl_vendorarch}/perllocal.pod |
63 |
rm -rf %{buildroot}%{_docdir}/%{name} |
64 |
|
65 |
%files |
66 |
%doc AUTHORS README.md TODO NEWS docs/* |
67 |
%attr(755,root,root) %{_bindir}/* |
68 |
%{_datadir}/%{name} |
69 |
%exclude %{_datadir}/%{name}/scripts |
70 |
%dir %{_libdir}/%{name} |
71 |
%dir %{_libdir}/%{name}/modules |
72 |
%exclude %{_libdir}/%{name}/modules/libfe_perl.* |
73 |
%exclude %{_libdir}/%{name}/modules/libperl_core.* |
74 |
%{_libdir}/%{name}/modules/*.so |
75 |
%{_libdir}/%{name}/modules/*.la |
76 |
%config(noreplace) %{_sysconfdir}/%{name}.conf |
77 |
%{_mandir}/man1/%{name}.1* |
78 |
|
79 |
%files devel |
80 |
%{_libdir}/%{name}/modules/*.a |
81 |
%{_includedir}/%{name} |
82 |
|
83 |
%files perl |
84 |
%{_libdir}/%{name}/modules/libfe_perl.so |
85 |
%{_libdir}/%{name}/modules/libfe_perl.la |
86 |
%{_libdir}/%{name}/modules/libperl_core.so |
87 |
%{_libdir}/%{name}/modules/libperl_core.la |
88 |
%{perl_vendorarch}/Irssi* |
89 |
%{perl_vendorarch}/auto/* |
90 |
%{_datadir}/%{name}/scripts |