summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2013-04-15 15:49:38 +0200
committerRemi Collet <fedora@famillecollet.com>2013-04-15 15:49:38 +0200
commitcfbc4c408f23f8f10e022958e57d63c15df712c4 (patch)
tree1a48a44a62cd0743487b2928f67ffbb334b2f29f
parent6550c0047402a16d4212fe92010de1a33eca529d (diff)
libcouchbase: fix BR
-rw-r--r--libcouchbase.spec23
1 files changed, 20 insertions, 3 deletions
diff --git a/libcouchbase.spec b/libcouchbase.spec
index 87ac676..8892dec 100644
--- a/libcouchbase.spec
+++ b/libcouchbase.spec
@@ -5,6 +5,12 @@
# Tests require some need which are downloaded during make
%global with_tests %{?_with_tests:1}%{!?_with_tests:0}
+%if 0%{?fedora} >= 15 || 0%{?rhel} >= 6
+%global with_dtrace 1
+%else
+%global with_dtrace 0
+%endif
+
Name: libcouchbase
Version: 2.0.5
Release: 1%{?dist}
@@ -20,8 +26,13 @@ Source11: http://files.couchbase.com/maven2/org/couchbase/mock/CouchbaseMoc
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-BuildRequires: autoconf
+BuildRequires: libtool
BuildRequires: cyrus-sasl-devel
+BuildRequires: libevent-devel >= 1.4
+BuildRequires: libev-devel >= 1.4
+%if %{with_dtrace}
+BuildRequires: systemtap-sdt-devel >= 1.8
+%endif
%description
@@ -66,11 +77,16 @@ EOF
%if %{with_tests}
cp %{SOURCE10} gtest-1.6.0.zip
cp %{SOURCE11} tests/CouchbaseMock.jar
-
%endif
+
%build
autoreconf -i --force
+
+# Hack for manpage layout
+sed -e '/manpage_layout=/s/=.*/=bsd/' \
+ -i configure
+
%{configure} \
%if ! %{with_tests}
--disable-tests \
@@ -92,8 +108,9 @@ rm -f %{buildroot}%{_libdir}/*.la
%defattr(-,root,root,-)
%doc LICENSE RELEASE_NOTES.markdown
%{_libdir}/%{name}.so.*
-# Plugins
+# Backends
%{_libdir}/%{name}_libevent.so
+%{_libdir}/%{name}_libev.so
%files devel
%defattr(-,root,root,-)