]> git.pld-linux.org Git - packages/sphinx.git/commitdiff
- Bcond without pgsql added
authorbeorn <beorn@pld-linux.org>
Fri, 16 Mar 2007 08:15:24 +0000 (08:15 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- Added missing R: and BR:

Changed files:
    sphinx.spec -> 1.5

sphinx.spec

index 15e6ff51ea317a5b8950f87eff9952a5b2ff0fb6..59e2127515f364c523b1fbbed4d9437edbc22ec0 100644 (file)
@@ -1,7 +1,9 @@
 #  TODO
 # - packages for PHP/Python API
+%bcond_without pgsql           # without pgsql support
+#
 %define                _rc             rc2
-%define                _rel    0.3
+%define                _rel            0.3
 Summary:       Free open-source SQL full-text search engine
 Summary(pl.UTF-8):     Silnik przeszukiwania pełnotekstowego SQL open-source
 Name:          sphinx
@@ -16,6 +18,13 @@ URL:         http://www.sphinxsearch.com/
 BuildRequires: autoconf
 BuildRequires: automake
 BuildRequires: mysql-devel
+%if %{with_pgsql}
+BuildRequires: postgresql-devel
+%endif
+Requires:      mysql-libs
+%if %{with_pgsql}
+Requires:      postgresql-libs
+%endif
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -46,8 +55,8 @@ z potoku XML.
 %{__automake}
 CPPFLAGS=-D_FILE_OFFSET_BITS=64
 %configure \
-       --with-mysql \
-       --with-pgsql
+       %{?with_pgsql:--with-pgsql} \
+       --with-mysql
 %{__make}
 
 %install
This page took 0.069258 seconds and 4 git commands to generate.