]>
Commit | Line | Data |
---|---|---|
a30c64ab | 1 | # |
d1d19600 | 2 | # Conditional build: |
16e18b22 | 3 | %bcond_without perl # without perl support |
4 | %bcond_without ipv6 # without IPv6 support | |
f5036096 | 5 | %bcond_without ssl # without SSL support |
2176773f | 6 | %bcond_without dynamic # without dynamic libraries |
581cd5fb | 7 | # |
d1d19600 | 8 | %{?with_perl:%include /usr/lib/rpm/macros.perl} |
e69c54b0 | 9 | |
75a558b0 | 10 | Summary: Irssi is a IRC client |
d6b5098c ER |
11 | Summary(fr.UTF-8): Irssi est un client IRC |
12 | Summary(pl.UTF-8): Irssi - wygodny w użyciu klient IRC | |
75a558b0 | 13 | Name: irssi |
0b1e4c7a | 14 | Version: 0.8.11 |
15 | Release: 1 | |
75a558b0 | 16 | License: GPL |
d4791b42 | 17 | Group: Applications/Communications |
24c5c066 SP |
18 | #Source0: http://irssi.org/files/snapshots/%{name}-%{_snap}.tar.gz |
19 | Source0: http://irssi.org/files/%{name}-%{version}.tar.gz | |
0b1e4c7a | 20 | # Source0-md5: ee23aa0f044e92c099c6acb116930e03 |
13117eda AM |
21 | Source1: %{name}.desktop |
22 | Source2: %{name}.png | |
581cd5fb | 23 | %define idea_ver 0.1.46 |
2cdf9123 JB |
24 | # NXDOMAIN |
25 | #Source3: http://real.irssi.org/files/plugins/idea/%{name}-idea-%{idea_ver}.tar.gz | |
26 | Source3: %{name}-idea-%{idea_ver}.tar.gz | |
e030c78a | 27 | # Source3-md5: c326efe317b8f67593a3cd46d5557280 |
ecd062a6 | 28 | Patch0: %{name}-dcc-send-limit.patch |
ee0d9b12 JR |
29 | Patch1: %{name}-tinfo.patch |
30 | Patch2: %{name}-home_etc.patch | |
31 | Patch3: %{name}.conf.patch | |
32 | Patch4: %{name}-idea-listlen.patch | |
eb3d727a | 33 | Patch5: %{name}-gcc4.patch |
69fc8ac9 | 34 | Patch6: %{name}-dynamic.patch |
e69c54b0 | 35 | Patch7: %{name}-invalid_free.patch |
c48a9e4d | 36 | URL: http://www.irssi.org/ |
13117eda | 37 | BuildRequires: autoconf |
a30c64ab | 38 | BuildRequires: automake |
a0e32961 | 39 | BuildRequires: gettext-devel |
2cdf9123 | 40 | # for idea only |
581cd5fb | 41 | BuildRequires: glib-devel >= 1:1.2.10-13 |
a6f4c972 | 42 | BuildRequires: glib2-devel >= 2.1.0 |
a30c64ab | 43 | BuildRequires: libtool |
c694f984 | 44 | BuildRequires: ncurses-devel >= 5.0 |
4f6fa20a | 45 | %{?with_ssl:BuildRequires: openssl-devel >= 0.9.7d} |
331b9a8a | 46 | %{?with_perl:BuildRequires: perl-devel >= 1:5.8.4} |
ed5b13fb | 47 | BuildRequires: pkgconfig |
4d2cef65 | 48 | BuildRequires: popt-devel |
6639e834 | 49 | %{?with_perl:BuildRequires: rpm-perlprov} |
eeb34517 | 50 | BuildRequires: rpmbuild(macros) >= 1.315 |
1da5a0b0 | 51 | Requires: perl(DynaLoader) = %(%{__perl} -MDynaLoader -e 'print DynaLoader->VERSION') |
071656b5 ER |
52 | Obsoletes: irssi-speech |
53 | Obsoletes: irssi-sql | |
1da5a0b0 | 54 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
c5c87082 | 55 | |
eeb34517 | 56 | %if %{with dynamic} |
57 | %define filterout_ld -Wl,--as-needed | |
58 | %endif | |
59 | ||
738c3ae3 | 60 | %description |
d4791b42 | 61 | Irssi is a textUI IRC client with IPv6 support. |
738c3ae3 | 62 | |
fab8b1be | 63 | %description -l fr.UTF-8 |
d4791b42 | 64 | Irssi est client IRC. |
6f85d63f | 65 | |
fab8b1be | 66 | %description -l pl.UTF-8 |
d4791b42 | 67 | Irssi jest tekstowym klientem IRC ze wsparciem dla IPv6. |
73c49657 | 68 | |
74cc6bc5 | 69 | %package plugin-idea |
f52ef808 | 70 | Summary: Irssi plugin IDEA crypt |
d6b5098c | 71 | Summary(pl.UTF-8): Wtyczka do irssi do szyfrowania IDEA |
f52ef808 | 72 | Group: Applications/Communications |
071656b5 | 73 | Requires: %{name} = %{version}-%{release} |
2cdf9123 | 74 | Requires: glib >= 1:1.2.10-13 |
74cc6bc5 | 75 | |
76 | %description plugin-idea | |
39eceb32 | 77 | This package contains IDEA Crypt plugin for Irssi. |
78 | ||
fab8b1be JR |
79 | %description plugin-idea -l pl.UTF-8 |
80 | Ten pakiet zawiera wtyczkę do Irssi z szyfrowaniem IDEA. | |
74cc6bc5 | 81 | |
738c3ae3 | 82 | %prep |
0b1e4c7a | 83 | %setup -q -a3 |
51b33c8b | 84 | %patch0 -p1 |
85 | %patch1 -p1 | |
972ba5d8 | 86 | %patch2 -p1 |
01baf907 | 87 | %patch3 -p1 |
12689c1e | 88 | %patch4 -p1 |
eb3d727a | 89 | %patch5 -p1 |
69fc8ac9 | 90 | %if %{with dynamic} |
91 | %patch6 -p1 | |
92 | %endif | |
e69c54b0 | 93 | %patch7 -p1 |
738c3ae3 | 94 | |
2cdf9123 JB |
95 | echo 'AC_DEFUN([AM_PATH_GLIB],[:])' > glib1.m4 |
96 | ||
738c3ae3 | 97 | %build |
64ee8d3e | 98 | %{__libtoolize} |
6932dd71 | 99 | %{__aclocal} -I . |
d0022294 | 100 | %{__autoconf} |
101 | %{__automake} | |
c694f984 | 102 | %configure \ |
c5c87082 | 103 | --without-socks \ |
13117eda | 104 | --with-bot \ |
be6cd0e4 | 105 | --with-textui \ |
d4791b42 | 106 | --with-proxy \ |
cb029a46 | 107 | --with-terminfo \ |
d4791b42 | 108 | --with-modules \ |
d1d19600 | 109 | %{?with_perl:--with-perl=yes} \ |
110 | %{?with_perl:--with-perl-lib=vendor} \ | |
111 | %{!?with_perl:--with-perl=no} \ | |
112 | %{?with_ipv6:--enable-ipv6} \ | |
f5036096 AG |
113 | --enable-nls \ |
114 | --%{?with_ssl:en}%{!?with_ssl:dis}able-ssl | |
694c1a92 | 115 | |
feabde7d | 116 | %{__make} |
738c3ae3 | 117 | |
581cd5fb | 118 | cd irssi-idea-%{idea_ver} |
74cc6bc5 | 119 | %{__libtoolize} |
120 | %{__aclocal} -I . | |
121 | %{__autoconf} | |
122 | %{__automake} | |
123 | %configure | |
124 | ||
125 | %{__make} | |
126 | ||
127 | ||
738c3ae3 AF |
128 | %install |
129 | rm -rf $RPM_BUILD_ROOT | |
16afed53 | 130 | install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir}} |
73c49657 | 131 | |
1352901f | 132 | %{__make} install \ |
133 | DESTDIR=$RPM_BUILD_ROOT \ | |
f29dbe19 | 134 | docdir=%{_datadir}/%{name}-%{version} |
bed6758a | 135 | |
16afed53 | 136 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} |
f29dbe19 | 137 | install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir} |
d4791b42 | 138 | |
581cd5fb | 139 | %{__make} -C irssi-idea-%{idea_ver} install \ |
74cc6bc5 | 140 | DESTDIR=$RPM_BUILD_ROOT |
141 | ||
738c3ae3 | 142 | %clean |
bed6758a | 143 | rm -rf $RPM_BUILD_ROOT |
738c3ae3 | 144 | |
be6cd0e4 | 145 | %files |
75a558b0 | 146 | %defattr(644,root,root,755) |
0d89b8d9 | 147 | %doc AUTHORS ChangeLog README TODO NEWS docs/*.{txt,html} |
d4791b42 | 148 | %attr(755,root,root) %{_bindir}/* |
c5c87082 | 149 | %dir %{_libdir}/irssi |
d4791b42 | 150 | %dir %{_libdir}/irssi/modules |
74cc6bc5 | 151 | %attr(755,root,root) %{_libdir}/irssi/modules/libirc_proxy.so* |
69fc8ac9 | 152 | %if %{with dynamic} |
153 | %attr(755,root,root) %{_libdir}/libirssi*.so.* | |
154 | %endif | |
be6cd0e4 | 155 | %{_datadir}/%{name} |
16afed53 | 156 | %{_desktopdir}/irssi.desktop |
f29dbe19 | 157 | %{_pixmapsdir}/* |
c84e79dc | 158 | %{_sysconfdir}/irssi.conf |
159 | %{_mandir}/man1/* | |
160 | ||
d1d19600 | 161 | %if %{with perl} |
c84e79dc | 162 | %{perl_vendorarch}/*.pm |
163 | %dir %{perl_vendorarch}/Irssi | |
164 | %{perl_vendorarch}/Irssi/*.pm | |
165 | ||
166 | %dir %{perl_vendorarch}/auto/Irssi | |
167 | %{perl_vendorarch}/auto/Irssi/*.bs | |
168 | %attr(755,root,root) %{perl_vendorarch}/auto/Irssi/*.so | |
169 | ||
170 | %dir %{perl_vendorarch}/auto/Irssi/Irc | |
171 | %{perl_vendorarch}/auto/Irssi/Irc/*.bs | |
172 | %attr(755,root,root) %{perl_vendorarch}/auto/Irssi/Irc/*.so | |
173 | ||
174 | %dir %{perl_vendorarch}/auto/Irssi/TextUI | |
175 | %{perl_vendorarch}/auto/Irssi/TextUI/*.bs | |
176 | %attr(755,root,root) %{perl_vendorarch}/auto/Irssi/TextUI/*.so | |
177 | ||
178 | %dir %{perl_vendorarch}/auto/Irssi/UI | |
179 | %{perl_vendorarch}/auto/Irssi/UI/*.bs | |
180 | %attr(755,root,root) %{perl_vendorarch}/auto/Irssi/UI/*.so | |
181 | %endif | |
74cc6bc5 | 182 | |
183 | %files plugin-idea | |
184 | %defattr(644,root,root,755) | |
185 | %attr(755,root,root) %{_libdir}/irssi/modules/libidea.so |