SHA256
1
0
forked from pool/libvirt

- Use %fdupes for duplicate file checking instead of hand-rolled

function

OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=184
This commit is contained in:
James Fehlig 2012-01-03 16:29:06 +00:00 committed by Git OBS Bridge
parent 313e7cf2d5
commit 2caea9a03a
2 changed files with 8 additions and 17 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Jan 3 09:20:43 MST 2012 - jfehlig@suse.com
- Use %fdupes for duplicate file checking instead of hand-rolled
function
-------------------------------------------------------------------
Wed Dec 14 18:13:11 MST 2011 - jfehlig@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package libvirt
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -769,22 +769,6 @@ rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}-python
rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/nwfilter
%endif
ln_dupes()
{
target=""
fdupes -r "$1" | while read file; do
if [ -z "$file" ] || [ -z "$target" ]; then
target="$file"
continue
fi
ln -sf "${target#.}" "$file"
done
}
(
cd $RPM_BUILD_ROOT
ln_dupes .%{_docdir}/%{name}
ln_dupes ./usr/share/locale
)
# init scripts
mkdir -p $RPM_BUILD_ROOT/etc/init.d
%if %{with_libvirtd}
@ -796,6 +780,7 @@ ln -s /etc/init.d/libvirt-guests $RPM_BUILD_ROOT%{_sbindir}/rclibvirt-guests
#/usr/share/SuSEfirewall2/services/TEMPLATE
mkdir -p $RPM_BUILD_ROOT/%{_fwdefdir}
install -m 644 %{S:2} $RPM_BUILD_ROOT/%{_fwdefdir}/libvirtd-relocation-server
%fdupes -s $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT