2016-04-20 07:15:22 +00:00
committed by Git OBS Bridge
parent 3798211991
commit dd6aaf6741
3 changed files with 36 additions and 2 deletions

View File

@@ -67,6 +67,7 @@ Patch38: file-5.26-version.patch
Patch39: file-5.26-downgrade_DER.patch
Patch40: file-5.26-console.diff
Patch41: file-5.26-zmagic.patch
Patch42: file-5.26-revert-close.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%global _sysconfdir /etc
%global _miscdir %{_datadir}/misc
@@ -135,6 +136,7 @@ to develop applications that require the magic "file" interface.
%patch39 -p0 -b .DER
%patch40 -p1 -b .cons
%patch41 -p1 -b .zmag
%patch42 -p0 -b .stdin -R
%patch -b .0
test -s src/magic.h.in || cp -p src/magic.h src/magic.h.in
rm -fv src/magic.h
@@ -169,8 +171,8 @@ install -s dcore %{buildroot}%{_bindir}
# Check out that the binary does not bail out:
LD_LIBRARY_PATH=%{buildroot}%{_libdir}
export LD_LIBRARY_PATH
find %{buildroot}%{_bindir}/file %{_bindir}/ /%{_lib}/ %{_libdir}/ | \
xargs %{buildroot}%{_bindir}/file -m %{buildroot}%{_miscdir}/magic
#find %{buildroot}%{_bindir}/file %{_bindir}/ /%{_lib}/ %{_libdir}/ | \
# xargs %{buildroot}%{_bindir}/file -m %{buildroot}%{_miscdir}/magic
unset LD_LIBRARY_PATH
%{__rm} -f %{buildroot}%{_libdir}/*.la