Added libotr conditionals for RHEL
This commit is contained in:
parent
b23dd5e34d
commit
76ca69ac0a
16
irssi.spec
16
irssi.spec
@ -1,9 +1,15 @@
|
|||||||
|
%if 0%{?rhel} < 10
|
||||||
|
%bcond_without otr
|
||||||
|
%else
|
||||||
|
%bcond_with otr
|
||||||
|
%endif
|
||||||
|
|
||||||
%define perl_vendorarch %(eval "`perl -V:installvendorarch`"; echo $installvendorarch)
|
%define perl_vendorarch %(eval "`perl -V:installvendorarch`"; echo $installvendorarch)
|
||||||
|
|
||||||
Summary: Modular text mode IRC client with Perl scripting
|
Summary: Modular text mode IRC client with Perl scripting
|
||||||
Name: irssi
|
Name: irssi
|
||||||
Version: 1.4.3
|
Version: 1.4.3
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
|
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: http://irssi.org/
|
URL: http://irssi.org/
|
||||||
@ -23,7 +29,9 @@ BuildRequires: autoconf
|
|||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
BuildRequires: utf8proc-devel
|
BuildRequires: utf8proc-devel
|
||||||
|
%if %{with otr}
|
||||||
BuildRequires: libotr-devel
|
BuildRequires: libotr-devel
|
||||||
|
%endif
|
||||||
|
|
||||||
Requires: perl(lib)
|
Requires: perl(lib)
|
||||||
Requires: perl(Symbol)
|
Requires: perl(Symbol)
|
||||||
@ -61,7 +69,8 @@ autoreconf -fi
|
|||||||
--with-perl=module \
|
--with-perl=module \
|
||||||
--with-perl-lib=vendor \
|
--with-perl-lib=vendor \
|
||||||
--enable-true-color \
|
--enable-true-color \
|
||||||
--with-otr=yes
|
%{?with_otr:--with-otr=yes} \
|
||||||
|
%{!?with_otr:--with-otr=no}
|
||||||
|
|
||||||
%make_build CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
%make_build CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
||||||
mv irssi-config.h irssi-config-$(getconf LONG_BIT).h
|
mv irssi-config.h irssi-config-$(getconf LONG_BIT).h
|
||||||
@ -98,6 +107,9 @@ chmod -R u+w $RPM_BUILD_ROOT%{perl_vendorarch}
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Mar 2 2023 Jaroslav Škarvada <jskarvad@redhat.com> - 1.4.3-3
|
||||||
|
- Added libotr conditionals for RHEL
|
||||||
|
|
||||||
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.3-2
|
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.3-2
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user