]> git.pld-linux.org Git - packages/kannel.git/commitdiff
- new bcond style
authoreothane <eothane@pld-linux.org>
Sat, 13 Mar 2004 21:33:06 +0000 (21:33 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    kannel.spec -> 1.17

kannel.spec

index 5afa7650ce6a7173344df1a0f86e6efd90a052f2..9e8afd063b1c806327067ae0add16bd2d431e9b1 100644 (file)
@@ -1,13 +1,12 @@
-#
-# Conditional build:
-# _with_doc            - build documentation
-# _with_openssl                - link against openssl (requires multithreaded libs)
-# _without_mysql       - don't link against mysql
-#
 # TODO:
 # - upgrade to 1.2.2
 # - check file list when built with docs
-
+#
+# Conditional build:
+%bcond_with    doc             # build documentation
+%bcond_with    openssl         # link against openssl (requires multithreaded libs)
+%bcond_without mysql           # don't link against mysql
+#
 Summary:       SMS/WAP gateway
 Summary(pl):   Bramka WAP oraz SMS
 Name:          kannel
@@ -26,10 +25,10 @@ URL:                http://www.kannel.org/
 BuildRequires: ImageMagick
 BuildRequires: libxml2-devel
 BuildRequires: autoconf
-%{!?_without_mysql:BuildRequires:      mysql-devel}
-%{?_with_doc:BuildRequires:    openjade}
+%{?with_mysql:BuildRequires:   mysql-devel}
+%{?with_doc:BuildRequires:     openjade}
 # requires multithread enabled openssl (?)
-%{?_with_openssl:BuildRequires:                openssl-devel}
+%{?with_openssl:BuildRequires:         openssl-devel}
 BuildRequires: zlib-devel
 Requires(post,preun):  /sbin/chkconfig
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -62,9 +61,9 @@ SMS, wi
 %configure \
        --with-malloc-native \
        --enable-cookies \
-       --%{!?_without_mysql:en}%{?_without_mysql:dis}able-mysql \
-       %{?_with_openssl: --with-wtls=openssl --with-ssl=%{_prefix} --en}%{!?_with_openssl: --dis}able-ssl \
-       --%{!?_with_doc:dis}%{?_with_doc:en}able-docs
+       --%{?with_mysql:en}%{!?with_mysql:dis}able-mysql \
+       %{?with_openssl: --with-wtls=openssl --with-ssl=%{_prefix} --en}%{!?with_openssl: --dis}able-ssl \
+       --%{!?with_doc:dis}%{?with_doc:en}able-docs
 
 touch .depend
 %{__make} depend
This page took 0.078187 seconds and 4 git commands to generate.