[go: nahoru, domu]

Skip to content

Commit

Permalink
Merge pull request ceph#5791 from SUSE/wip-drop-lsb-release
Browse files Browse the repository at this point in the history
ceph.spec.in: drop lsb-release dependency from ceph-common

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
  • Loading branch information
ktdreyer committed Sep 4, 2015
2 parents f5553fc + e54f896 commit 74fc195
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions ceph.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,10 @@ BuildRequires: pkgconfig
BuildRequires: python
BuildRequires: python-nose
BuildRequires: python-requests
%if ( 0%{?rhel} > 0 && 0%{?rhel} < 7 ) || ( 0%{?centos} > 0 && 0%{?centos} < 7 )
%if 0%{?rhel} > 0 && 0%{?rhel} < 7
BuildRequires: python-sphinx10
%endif
%if 0%{?fedora} || 0%{defined suse_version} || 0%{?rhel} >= 7 || 0%{?centos} >= 7
%if 0%{?fedora} || 0%{?suse_version} || 0%{?rhel} >= 7
BuildRequires: python-sphinx
%endif

Expand All @@ -130,7 +130,7 @@ BuildRequires: yasm
#################################################################################
# distro-conditional dependencies
#################################################################################
%if 0%{defined suse_version}
%if 0%{?suse_version}
Requires: python-Flask
BuildRequires: net-tools
BuildRequires: libbz2-devel
Expand Down Expand Up @@ -181,9 +181,6 @@ Requires: python-requests
%if 0%{?rhel} || 0%{?fedora}
Requires: redhat-lsb-core
%endif
%if 0%{defined suse_version}
Requires: lsb-release
%endif
# python-argparse is only needed in distros with Python 2.6 or lower
%if (0%{?rhel} && 0%{?rhel} <= 6) || (0%{?suse_version} && 0%{?suse_version} <= 1110)
Requires: python-argparse
Expand Down Expand Up @@ -215,7 +212,7 @@ Summary: Rados REST gateway
Group: Development/Libraries
Requires: ceph-common = %{epoch}:%{version}-%{release}
Requires: librados2 = %{epoch}:%{version}-%{release}
%if 0%{defined suse_version}
%if 0%{?suse_version}
BuildRequires: libexpat-devel
BuildRequires: FastCGI-devel
%endif
Expand Down Expand Up @@ -556,7 +553,7 @@ export RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed -e 's/i386/i486/'`
CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS"

# fix bug in specific version of libedit-devel
%if 0%{defined suse_version}
%if 0%{?suse_version}
sed -i -e "s/-lcurses/-lncurses/g" Makefile
sed -i -e "s/-lcurses/-lncurses/g" src/Makefile
sed -i -e "s/-lcurses/-lncurses/g" man/Makefile
Expand Down Expand Up @@ -644,7 +641,7 @@ mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/ceph/bootstrap-mds
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/ceph/bootstrap-rgw
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/log/radosgw

%if %{defined suse_version}
%if 0%{?suse_version}
# Fedora seems to have some problems with this macro, use it only on SUSE
%fdupes -s $RPM_BUILD_ROOT/%{python_sitelib}
%fdupes %buildroot
Expand Down Expand Up @@ -858,7 +855,7 @@ mkdir -p %{_localstatedir}/run/ceph/
CEPH_GROUP_ID=""
CEPH_USER_ID=""
# disabled for now until we have the numbers
%if 0%{?rhel} || 0%{?centos} || 0%{?fedora}
%if 0%{?rhel} || 0%{?fedora}
CEPH_GROUP_ID="-g 167"
CEPH_USER_ID="-u 167"
%endif
Expand Down

0 comments on commit 74fc195

Please sign in to comment.