SHA256
1
0
forked from pool/libguestfs

- Include gconv modules for hivex (bnc#900530)

OBS-URL: https://build.opensuse.org/package/show/Virtualization/libguestfs?expand=0&rev=320
This commit is contained in:
Olaf Hering 2014-10-14 08:35:35 +00:00 committed by Git OBS Bridge
parent aec0a02080
commit 5b20983ebf
3 changed files with 36 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Oct 14 10:34:12 CEST 2014 - ohering@suse.de
- Include gconv modules for hivex (bnc#900530)
-------------------------------------------------------------------
Fri Sep 5 09:53:22 CEST 2014 - ohering@suse.de

View File

@ -2,6 +2,26 @@
#%stage: block
#
fdupes_s() {
local _target=""
local _file=
fdupes --quiet --noempty --recurse "$@" |
while read _file
do
if test -z "$_target"
then
_target="$_file"
else
if test -z "$_file"
then
_target=""
continue
fi
echo ln -fv "${_target##*/}" "$_file"
fi
done
}
# copy daemon manually because it is located in RPM_BUILD_ROOT
mkdir -vp $tmp_mnt/usr/sbin
cp_bin $(type -p guestfsd) $tmp_mnt/usr/sbin
@ -37,6 +57,15 @@ do
fi
done
for d in /usr/lib*/gconv
do
if test -e $d
then
cp -avL --parents $d $tmp_mnt/
fdupes_s $tmp_mnt$d
fi
done
for t in \
screen \
vt100 \

View File

@ -166,6 +166,7 @@ BuildRequires: fuse-devel
%endif
#
%if %{with hivex}
BuildRequires: glibc-locale
BuildRequires: hivex-devel
%endif
#
@ -403,6 +404,7 @@ BuildRequires: e2fsprogs
%if %{with ext4_writeable}
BuildRequires: ext4-writeable-kmp-default
%endif
BuildRequires: fdupes
BuildRequires: file
BuildRequires: findutils
BuildRequires: gawk