Skip to content

Commit

Permalink
build/ops: rpm: introduce _remote_tarball_prefix macro
Browse files Browse the repository at this point in the history
With this macro, we can use a single Source0 line for all supported distros.
RH/CentOS/Fedora needs the prefix, while SUSE builds in the OBS use a local
tarball.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
  • Loading branch information
smithfarm committed Nov 26, 2017
1 parent a3738fd commit d476ca7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ceph.spec.in
Expand Up @@ -27,6 +27,7 @@
%bcond_without ceph_test_package
%bcond_without cephfs_java
%bcond_with lowmem_builder
%global _remote_tarball_prefix https://download.ceph.com/tarballs/
%endif
%if 0%{?suse_version}
%bcond_with selinux
Expand All @@ -35,7 +36,7 @@
%bcond_without lowmem_builder
#Compat macro for new _fillupdir macro introduced in Nov 2017
%if ! %{defined _fillupdir}
%define _fillupdir /var/adm/fillup-templates
%global _fillupdir /var/adm/fillup-templates
%endif
%if 0%{?is_opensuse}
%bcond_without lttng
Expand Down Expand Up @@ -83,8 +84,9 @@ License: LGPL-2.1 and CC-BY-SA-1.0 and GPL-2.0 and BSL-1.0 and BSD-3-Clause and
Group: System/Filesystems
%endif
URL: http://ceph.com/
Source0: https://download.ceph.com/tarballs/@TARBALL_BASENAME@.tar.bz2
Source0: %{?_remote_tarball_prefix}@TARBALL_BASENAME@.tar.bz2
%if 0%{?suse_version}
# _insert_obs_source_lines_here
%if 0%{?is_opensuse}
ExclusiveArch: x86_64 aarch64 ppc64 ppc64le
%else
Expand Down

0 comments on commit d476ca7

Please sign in to comment.