]> git.pld-linux.org Git - packages/irssi.git/commitdiff
- %bcond_with new_bcond_style
authoreothane <eothane@pld-linux.org>
Fri, 2 Jan 2004 15:41:35 +0000 (15:41 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- added %bcond_without ipv6

Changed files:
    irssi.spec -> 1.93

irssi.spec

index 475de1e6040be47091d9645b4fa0ba4db245faed..c1612e96c5a0eb8d18d64142d8172c0b7a28e4ec 100644 (file)
@@ -1,6 +1,9 @@
-%{!?_without_perl:%include     /usr/lib/rpm/macros.perl}
+# Conditional build:
+%bcond_without  perl   # without perl support
+%bcond_without  ipv6   # without IPv6 support
+#
 %define                _idea_ver       0.1.46
 %define                _idea_ver       0.1.46
-
+%{?with_perl:%include  /usr/lib/rpm/macros.perl}
 Summary:       Irssi is a IRC client
 Summary(fr):   Irssi est un client IRC
 Summary(pl):   Irssi - wygodny w u¿yciu klient IRC
 Summary:       Irssi is a IRC client
 Summary(fr):   Irssi est un client IRC
 Summary(pl):   Irssi - wygodny w u¿yciu klient IRC
@@ -28,7 +31,7 @@ BuildRequires:        glib-devel
 BuildRequires: glib2-devel >= 2.1.0
 BuildRequires: ncurses-devel >= 5.0
 BuildRequires: openssl-devel >= 0.9.7c
 BuildRequires: glib2-devel >= 2.1.0
 BuildRequires: ncurses-devel >= 5.0
 BuildRequires: openssl-devel >= 0.9.7c
-%{?!_without_perl:BuildRequires:       perl-devel >= 5.6.1}
+%{?with_perl:BuildRequires:    perl-devel >= 5.6.1}
 BuildRequires: pkgconfig
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 Obsoletes:     %{name}-speech
 BuildRequires: pkgconfig
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 Obsoletes:     %{name}-speech
@@ -75,10 +78,10 @@ rm -f missing
        --with-proxy \
        --with-terminfo \
        --with-modules \
        --with-proxy \
        --with-terminfo \
        --with-modules \
-       %{?!_without_perl:--with-perl=yes} \
-       %{?!_without_perl:--with-perl-lib=vendor} \
-       %{?_without_perl:--with-perl=no} \
-       --enable-ipv6 \
+       %{?with_perl:--with-perl=yes} \
+       %{?with_perl:--with-perl-lib=vendor} \
+       %{!?with_perl:--with-perl=no} \
+       %{?with_ipv6:--enable-ipv6} \
        --enable-nls
 
 %{__make}
        --enable-nls
 
 %{__make}
@@ -125,7 +128,7 @@ rm -rf $RPM_BUILD_ROOT
 %{_sysconfdir}/irssi.conf
 %{_mandir}/man1/*
 
 %{_sysconfdir}/irssi.conf
 %{_mandir}/man1/*
 
-%if %{?!_without_perl:1}0
+%if %{with perl}
 %{perl_vendorarch}/*.pm
 %dir %{perl_vendorarch}/Irssi
 %{perl_vendorarch}/Irssi/*.pm
 %{perl_vendorarch}/*.pm
 %dir %{perl_vendorarch}/Irssi
 %{perl_vendorarch}/Irssi/*.pm
This page took 0.266839 seconds and 4 git commands to generate.