From 82ffe3baf1d0b630458d002c62e217e9048b85a1aedb047b9613db750f63605d Mon Sep 17 00:00:00 2001 From: Jordi Massaguer Date: Wed, 22 Jul 2015 15:00:07 +0000 Subject: [PATCH] run fdupes macro in order to remove duplicates building this package with debuginfo enabled (which is required for openSUSE:Factory) was giving this warning: [ 112s] extracting debug info from /home/abuild/rpmbuild/BUILDROOT/docker-1.7.1-22.1.x86_64/usr/src/docker/bundles/1.7.1/dynbinary/docker-1.7.1 [ 112s] *** WARNING: identical binaries are copied, not linked: [ 112s] /usr/src/docker/bundles/1.7.1/dynbinary/docker-1.7.1 [ 112s] and /usr/bin/docker which was creating this error: RPM build errors: [ 292s] Installed (but unpackaged) file(s) found: [ 292s] /usr/lib/debug/usr/src/docker/bundles/1.7.1/dynbinary/docker-1.7.1.debug Running fdupes fixes it. OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/docker?expand=0&rev=22 --- docker.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker.spec b/docker.spec index 0d62826..2882968 100644 --- a/docker.spec +++ b/docker.spec @@ -59,6 +59,7 @@ BuildRequires: go-go-md2man %else BuildRequires: gcc5-go >= 5.0 %endif +BuildRequires: fdupes BuildRequires: libapparmor-devel BuildRequires: libbtrfs-devel >= 3.8 BuildRequires: procps @@ -212,6 +213,8 @@ install -d %{buildroot}%{_mandir}/man5 install -p -m 644 man/man5/Dockerfile.5 %{buildroot}%{_mandir}/man5 %endif +%fdupes %{buildroot} + %pre echo "creating group docker..." groupadd -r docker 2>/dev/null || :