File tree Expand file tree Collapse file tree 5 files changed +6
-16
lines changed
Expand file tree Collapse file tree 5 files changed +6
-16
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ Build-Depends: bash,
1010 debhelper (>= 10~) | dh-systemd,
1111 gcc,
1212 git,
13- libbtrfs-dev | btrfs-tools,
1413 libc-dev,
1514 libdevmapper-dev,
1615 libltdl-dev,
Original file line number Diff line number Diff line change @@ -85,9 +85,6 @@ rpm: fedora centos ## build all rpm packages
8585.PHONY : fedora
8686fedora : $(FEDORA_RELEASES ) # # build all fedora rpm packages
8787
88- .PHONY : centos-8 centos-9
89- centos-8 centos-9 : RPMBUILD_EXTRA_FLAGS=--define '_without_btrfs 1'
90-
9188.PHONY : centos
9289centos : $(CENTOS_RELEASES ) # # build all centos rpm packages
9390
Original file line number Diff line number Diff line change 11%global debug_package %{nil }
22
3- # BTRFS is enabled by default, but can be disabled by defining _without_btrfs
4- %if %{undefined _with_btrfs} && %{undefined _without_btrfs}
5- %define _with_btrfs 1
6- %endif
7-
83Name: docker-ce
94Version: %{_version }
105Release: %{_release }%{?dist }
@@ -33,7 +28,6 @@ Requires: tar
3328Requires: xz
3429
3530BuildRequires: bash
36- %{?_with_btrfs:BuildRequires: btrfs-progs-devel}
3731BuildRequires: ca-certificates
3832BuildRequires: cmake
3933BuildRequires: device-mapper-devel
Original file line number Diff line number Diff line change @@ -34,10 +34,10 @@ COPY SPECS /root/rpmbuild/SPECS
3434# TODO change once we support scan-plugin on other architectures
3535RUN \
3636 if [ "$(uname -m)" = "x86_64" ]; then \
37- dnf builddep --define '_without_btrfs 1' - y /root/rpmbuild/SPECS/*.spec; \
37+ dnf builddep -y /root/rpmbuild/SPECS/*.spec; \
3838 else \
39- dnf builddep --define '_without_btrfs 1' - y /root/rpmbuild/SPECS/docker-c*.spec; \
40- dnf builddep --define '_without_btrfs 1' - y /root/rpmbuild/SPECS/docker-b*.spec; \
39+ dnf builddep -y /root/rpmbuild/SPECS/docker-c*.spec; \
40+ dnf builddep -y /root/rpmbuild/SPECS/docker-b*.spec; \
4141 fi
4242
4343COPY --from=golang /usr/local/go /usr/local/go
Original file line number Diff line number Diff line change @@ -30,10 +30,10 @@ COPY SPECS /root/rpmbuild/SPECS
3030# TODO change once we support scan-plugin on other architectures
3131RUN \
3232 if [ "$(uname -m)" = "x86_64" ]; then \
33- dnf builddep --define '_without_btrfs 1' - y /root/rpmbuild/SPECS/*.spec; \
33+ dnf builddep -y /root/rpmbuild/SPECS/*.spec; \
3434 else \
35- dnf builddep --define '_without_btrfs 1' - y /root/rpmbuild/SPECS/docker-c*.spec; \
36- dnf builddep --define '_without_btrfs 1' - y /root/rpmbuild/SPECS/docker-b*.spec; \
35+ dnf builddep -y /root/rpmbuild/SPECS/docker-c*.spec; \
36+ dnf builddep -y /root/rpmbuild/SPECS/docker-b*.spec; \
3737 fi
3838
3939COPY --from=golang /usr/local/go /usr/local/go
You can’t perform that action at this time.
0 commit comments