]> git.pld-linux.org Git - packages/cherokee.git/commitdiff
- mysql, ffmpeg and ldap bconds added
authorJacek Konieczny <jajcus@pld-linux.org>
Wed, 7 Apr 2010 13:00:32 +0000 (13:00 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    cherokee.spec -> 1.26

cherokee.spec

index 8fddc4611a7a62105287f4954446d8d650b267e9..873c04e7fae4c34fac65764122813e0adf4231a3 100644 (file)
@@ -1,8 +1,12 @@
 # TODO:
 # TODO:
-# - does it requires spawn-fcgi?
+#   - does it requires spawn-fcgi?
+#   - move modules to subpackages. At least, those with extra dependencies.
 #
 # Conditional build:
 %bcond_without geoip           # without GeoIP support
 #
 # Conditional build:
 %bcond_without geoip           # without GeoIP support
+%bcond_without mysql           # without MySQL support
+%bcond_without ldap            # without LDAP support
+%bcond_without ffmpeg          # without ffmpeg support
 #
 Summary:       Fast, Flexible and Lightweight Web server
 Summary(pl.UTF-8):     Cherokee - serwer WWW
 #
 Summary:       Fast, Flexible and Lightweight Web server
 Summary(pl.UTF-8):     Cherokee - serwer WWW
@@ -22,10 +26,10 @@ URL:                http://www.cherokee-project.com/
 %{?with_geoip:BuildRequires:   GeoIP-devel}
 BuildRequires: autoconf
 BuildRequires: automake
 %{?with_geoip:BuildRequires:   GeoIP-devel}
 BuildRequires: autoconf
 BuildRequires: automake
-BuildRequires: ffmpeg-devel
+%{?with_ffmpeg:BuildRequires:  ffmpeg-devel}
 BuildRequires: libtool
 BuildRequires: libtool
-BuildRequires: mysql-devel
-BuildRequires: openldap-devel
+%{?with_mysql:BuildRequires:   mysql-devel}
+%{?with_ldap:BuildRequires:    openldap-devel}
 BuildRequires: openssl-devel
 BuildRequires: pam-devel
 BuildRequires: pcre-devel
 BuildRequires: openssl-devel
 BuildRequires: pam-devel
 BuildRequires: pcre-devel
@@ -114,7 +118,10 @@ export PHPCGI=%{_bindir}/php.fcgi
        --with-wwwroot=%{_wwwroot} \
        --with-wwwuser=cherokee \
        --with-wwwgroup=http \
        --with-wwwroot=%{_wwwroot} \
        --with-wwwuser=cherokee \
        --with-wwwgroup=http \
-       %{!?with_geoip:--without-geoip}
+       %{!?with_geoip:--without-geoip} \
+       %{!?with_mysql:--without-mysql} \
+       %{!?with_ffmpeg:--without-ffmpeg} \
+       %{!?with_ldap:--without-ldap}
 %{__make}
 
 %install
 %{__make}
 
 %install
@@ -199,7 +206,7 @@ fi
 %attr(755,root,root) %{_libdir}/cherokee/libplugin_common.so
 %attr(755,root,root) %{_libdir}/cherokee/libplugin_custom_error.so
 %attr(755,root,root) %{_libdir}/cherokee/libplugin_custom.so
 %attr(755,root,root) %{_libdir}/cherokee/libplugin_common.so
 %attr(755,root,root) %{_libdir}/cherokee/libplugin_custom_error.so
 %attr(755,root,root) %{_libdir}/cherokee/libplugin_custom.so
-%attr(755,root,root) %{_libdir}/cherokee/libplugin_dbslayer.so
+%{?with_mysql:%attr(755,root,root) %{_libdir}/cherokee/libplugin_dbslayer.so}
 %attr(755,root,root) %{_libdir}/cherokee/libplugin_deflate.so
 %attr(755,root,root) %{_libdir}/cherokee/libplugin_directory.so
 %attr(755,root,root) %{_libdir}/cherokee/libplugin_dirlist.so
 %attr(755,root,root) %{_libdir}/cherokee/libplugin_deflate.so
 %attr(755,root,root) %{_libdir}/cherokee/libplugin_directory.so
 %attr(755,root,root) %{_libdir}/cherokee/libplugin_dirlist.so
@@ -220,10 +227,10 @@ fi
 %attr(755,root,root) %{_libdir}/cherokee/libplugin_htdigest.so
 %attr(755,root,root) %{_libdir}/cherokee/libplugin_htpasswd.so
 %attr(755,root,root) %{_libdir}/cherokee/libplugin_ip_hash.so
 %attr(755,root,root) %{_libdir}/cherokee/libplugin_htdigest.so
 %attr(755,root,root) %{_libdir}/cherokee/libplugin_htpasswd.so
 %attr(755,root,root) %{_libdir}/cherokee/libplugin_ip_hash.so
-%attr(755,root,root) %{_libdir}/cherokee/libplugin_ldap.so
+%{?with_ldap:%attr(755,root,root) %{_libdir}/cherokee/libplugin_ldap.so}
 %attr(755,root,root) %{_libdir}/cherokee/libplugin_libssl.so
 %attr(755,root,root) %{_libdir}/cherokee/libplugin_method.so
 %attr(755,root,root) %{_libdir}/cherokee/libplugin_libssl.so
 %attr(755,root,root) %{_libdir}/cherokee/libplugin_method.so
-%attr(755,root,root) %{_libdir}/cherokee/libplugin_mysql.so
+%{?with_mysql:%attr(755,root,root) %{_libdir}/cherokee/libplugin_mysql.so}
 %attr(755,root,root) %{_libdir}/cherokee/libplugin_ncsa.so
 %attr(755,root,root) %{_libdir}/cherokee/libplugin_not.so
 %attr(755,root,root) %{_libdir}/cherokee/libplugin_or.so
 %attr(755,root,root) %{_libdir}/cherokee/libplugin_ncsa.so
 %attr(755,root,root) %{_libdir}/cherokee/libplugin_not.so
 %attr(755,root,root) %{_libdir}/cherokee/libplugin_or.so
This page took 0.12344 seconds and 4 git commands to generate.