Skip to content

Commit

Permalink
Merge pull request #6114 from SUSE/wip-suse-spec-fixes
Browse files Browse the repository at this point in the history
ceph.spec.in: correctly declare systemd dependency for SLE/openSUSE

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
  • Loading branch information
ktdreyer committed Oct 1, 2015
2 parents 7db35f2 + 7b1882f commit 965e628
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions ceph.spec.in
Expand Up @@ -35,7 +35,7 @@ restorecon -R /var/log/ceph > /dev/null 2>&1;
# the _with_systemd variable only implies that we'll install
# /etc/tmpfiles.d/ceph.conf in order to set up the socket directory in
# /var/run/ceph.
%if 0%{?fedora} || 0%{?rhel} >= 7 || 0%{?suse_version} > 1300
%if 0%{?fedora} || 0%{?rhel} >= 7 || 0%{?suse_version} >= 1210
%global _with_systemd 1
%endif

Expand Down Expand Up @@ -82,10 +82,6 @@ Requires: cryptsetup
Requires: findutils
Requires: which
Requires(post): binutils
# We require this to be present for %%{_tmpfilesdir}
%if 0%{?_with_systemd}
Requires: systemd
%endif
%if 0%{with cephfs_java}
BuildRequires: sharutils
%endif
Expand Down Expand Up @@ -135,6 +131,10 @@ BuildRequires: yasm
# distro-conditional dependencies
#################################################################################
%if 0%{?suse_version}
%if 0%{?_with_systemd}
BuildRequires: systemd-rpm-macros
%{?systemd_requires}
%endif
Requires: python-Flask
BuildRequires: net-tools
BuildRequires: libbz2-devel
Expand All @@ -152,6 +152,9 @@ BuildRequires: mozilla-nss-devel
BuildRequires: keyutils-devel
BuildRequires: libatomic-ops-devel
%else
%if 0%{?_with_systemd}
Requires: systemd
%endif
BuildRequires: bzip2-devel
BuildRequires: nss-devel
BuildRequires: keyutils-libs-devel
Expand Down

0 comments on commit 965e628

Please sign in to comment.