diff options
author | Harshavardhana <harsha@harshavardhana.net> | 2013-07-25 20:10:55 -0700 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2013-07-25 23:11:19 -0700 |
commit | 115f6a679ba0117a5757fe69f8f326d633c38fbf (patch) | |
tree | d4090d8b938501300eeeb7ecda659696181d1303 /glusterfs.spec.in | |
parent | e9c583598b8ad58bbda15759067ff57eca619e95 (diff) |
build: Add '--without bd' to disable 'bd' xlator rpmbuild
Change-Id: I9f1774788362d8250693002318b617cd16e1a668
BUG: 950083
Signed-off-by: Harshavardhana <harsha@harshavardhana.net>
Reviewed-on: http://review.gluster.org/5397
Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Bala FA <barumuga@redhat.com>
Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'glusterfs.spec.in')
-rw-r--r-- | glusterfs.spec.in | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/glusterfs.spec.in b/glusterfs.spec.in index 27fb5197096..2e94c3315dd 100644 --- a/glusterfs.spec.in +++ b/glusterfs.spec.in @@ -35,6 +35,10 @@ # rpmbuild -ta @PACKAGE_NAME@-@PACKAGE_VERSION@tar.gz --without syslog %{?_without_syslog:%global _without_syslog --disable-syslog} +# if you wish to compile an rpm without the BD map support... +# rpmbuild -ta @PACKAGE_NAME@-@PACKAGE_VERSION@.tar.gz --without bd +%{?_without_bd:%global _without_bd --disable-bd-xlator} + %if ( 0%{?fedora} && 0%{?fedora} > 16 ) || ( 0%{?rhel} && 0%{?rhel} > 6 ) %global _with_systemd true %endif @@ -111,8 +115,10 @@ BuildRequires: systemtap-sdt-devel BuildRequires: python-devel BuildRequires: python-ctypes %if ( 0%{?fedora} ) || ( 0%{?rhel} && 0%{?rhel} >= 6 ) +%if ( 0%{!?_without_bd:1} ) BuildRequires: lvm2-devel %endif +%endif Obsoletes: hekafs <= 0.7 Obsoletes: %{name}-libs <= 2.0.0 @@ -327,7 +333,7 @@ This package provides the api include files. %build ./autogen.sh -%configure %{?_without_rdma} %{?_without_epoll} %{?_without_fusermount} %{?_without_georeplication} %{?_without_ocf} %{?_without_syslog} +%configure %{?_without_rdma} %{?_without_epoll} %{?_without_fusermount} %{?_without_georeplication} %{?_without_ocf} %{?_without_syslog} %{?_without_bd} # fix hardening and remove rpath in shlibs %if ( 0%{?fedora} && 0%{?fedora} > 17 ) || ( 0%{?rhel} && 0%{?rhel} > 6 ) @@ -690,6 +696,9 @@ if [ $1 -ge 1 ]; then fi %changelog +* Thu Jul 25 2013 Harshavardhana <fharshav@redhat.com> +- Allow to build with '--without bd' to disable 'bd' xlator + * Thu Jun 27 2013 Kaleb S. KEITHLEY <kkeithle@redhat.com> - fix the hardening fix for shlibs, use %{__sed} macro, shorter ChangeLog |