!19 [sync] PR-14: fix: linkfile size and install warning
From: @openeuler-sync-bot Reviewed-by: @yeqinglong01 Signed-off-by: @yeqinglong01
This commit is contained in:
commit
d1fe74db82
@ -1,7 +1,7 @@
|
|||||||
%global debug_package %{nil}
|
%global debug_package %{nil}
|
||||||
%define specrelease 1%{?dist}
|
%define specrelease 1%{?dist}
|
||||||
%if 0%{?openeuler}
|
%if 0%{?openeuler}
|
||||||
%define specrelease 2
|
%define specrelease 3
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
Name: deepin-reader
|
Name: deepin-reader
|
||||||
@ -35,6 +35,7 @@ BuildRequires: lcms2-devel
|
|||||||
BuildRequires: libX11-devel
|
BuildRequires: libX11-devel
|
||||||
BuildRequires: qt5-qtbase-private-devel
|
BuildRequires: qt5-qtbase-private-devel
|
||||||
BuildRequires: chrpath
|
BuildRequires: chrpath
|
||||||
|
BuildRequires: fdupes
|
||||||
|
|
||||||
%description
|
%description
|
||||||
%{summary}.
|
%{summary}.
|
||||||
@ -53,7 +54,19 @@ popd
|
|||||||
%install
|
%install
|
||||||
%make_install -C build INSTALL_ROOT="%buildroot"
|
%make_install -C build INSTALL_ROOT="%buildroot"
|
||||||
|
|
||||||
|
mapfile -t dups <<<"$(fdupes -1 .)"
|
||||||
|
for line in "${dups[@]}"; do
|
||||||
|
realfile="$(echo "${line}" | tr '[:space:]' '\n' | sort -r | head -1)"
|
||||||
|
mapfile -t dupes <<<"$(echo "${line}" | tr '[:space:]' '\n' | sort -r | tail --lines=+2)"
|
||||||
|
for dup in "${dupes[@]}"; do
|
||||||
|
test -z "${dup}" && continue
|
||||||
|
ln -s -f "${realfile}" "${dup}"
|
||||||
|
done
|
||||||
|
done
|
||||||
|
|
||||||
chrpath -d %{buildroot}%{_bindir}/%{name}
|
chrpath -d %{buildroot}%{_bindir}/%{name}
|
||||||
|
mkdir -p %{buildroot}/etc/ld.so.conf.d
|
||||||
|
echo "/usr/lib/%{name}" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc README.md
|
%doc README.md
|
||||||
@ -65,8 +78,12 @@ chrpath -d %{buildroot}%{_bindir}/%{name}
|
|||||||
# /usr/lib/libdeepin-pdfium.*
|
# /usr/lib/libdeepin-pdfium.*
|
||||||
%{_datadir}/deepin-manual/manual-assets/application/deepin-reader/document-viewer/*
|
%{_datadir}/deepin-manual/manual-assets/application/deepin-reader/document-viewer/*
|
||||||
/usr/lib/deepin-reader/libdeepin-poppler*
|
/usr/lib/deepin-reader/libdeepin-poppler*
|
||||||
|
%config(noreplace) /etc/ld.so.conf.d/%{name}-%{_arch}.conf
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Dec 05 2022 liweiganga <liweiganga@uniontech.com> - 5.9.9-3
|
||||||
|
- fix: linkfile size and install warning
|
||||||
|
|
||||||
* Mon Dec 05 2022 liweiganga <liweiganga@uniontech.com> - 5.9.9-2
|
* Mon Dec 05 2022 liweiganga <liweiganga@uniontech.com> - 5.9.9-2
|
||||||
- fix: remove rpath
|
- fix: remove rpath
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user