Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
2726d05ec9
!24 【轻量级 PR】:fix install warning
From: @leeffo 
Reviewed-by: @HelloWorld_lvcongqing 
Signed-off-by: @HelloWorld_lvcongqing
2023-05-30 09:30:54 +00:00
leeffo
38839c46d9
fix install warning
Signed-off-by: leeffo <liweiganga@uniontech.com>
2023-05-30 09:04:05 +00:00
openeuler-ci-bot
287f68dca5
!22 enable debuginfo for fix strip
From: @HelloWorld_lvcongqing 
Reviewed-by: @weidongkl 
Signed-off-by: @weidongkl
2023-03-07 05:55:37 +00:00
liweiganga
cbdb4bd438 fix: enable debug 2023-03-07 10:14:19 +08:00
openeuler-ci-bot
4ed53fbc57
!20 [sync] PR-15: fix issue:#I63PB2
From: @openeuler-sync-bot 
Reviewed-by: @yeqinglong01 
Signed-off-by: @yeqinglong01
2022-12-07 09:26:16 +00:00
liweiganga
260cff457a fix issue:#I63PB2
(cherry picked from commit f737ed47e674bf7973eb747a29dfe83914a176d8)
2022-12-07 17:13:24 +08:00
openeuler-ci-bot
c2b8cf9673
!18 [sync] PR-14: fix: linkfile size and install warning
From: @openeuler-sync-bot 
Reviewed-by: @yeqinglong01 
Signed-off-by: @yeqinglong01
2022-12-07 09:12:25 +00:00
liweiganga
f3c58fa722 fix: linkfile size and install warning
(cherry picked from commit 2b8e054d14ab3e46e16bfd9b5524098fc9ef147d)
2022-12-07 16:55:19 +08:00
openeuler-ci-bot
a71b48b12e
!16 [sync] PR-13: remove rpath
From: @openeuler-sync-bot 
Reviewed-by: @yeqinglong01 
Signed-off-by: @yeqinglong01
2022-12-07 08:54:51 +00:00
liweiganga
acd904781e fix issue:#I63PB2
(cherry picked from commit 1c48e3d81cdadf46265a024c305cbe68038ffdab)
2022-12-07 16:30:33 +08:00

View File

@ -1,7 +1,7 @@
%global debug_package %{nil}
%define specrelease 1%{?dist}
#%%global debug_package %{nil}
%define specrelease 6%{?dist}
%if 0%{?openeuler}
%define specrelease 1
%define specrelease 6
%endif
Name: deepin-reader
@ -34,8 +34,8 @@ BuildRequires: fontconfig-devel
BuildRequires: lcms2-devel
BuildRequires: libX11-devel
BuildRequires: qt5-qtbase-private-devel
BuildRequires: chrpath
BuildRequires: fdupes
%description
%{summary}.
@ -54,6 +54,33 @@ popd
%install
%make_install -C build INSTALL_ROOT="%buildroot"
pushd %{buildroot}/usr/lib/%{name}
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
popd
# remove rpath info
for file in $(find %{buildroot}/ -executable -type f -exec file {} ';' | grep "\<ELF\>" | awk -F ':' '{print $1}')
do
if [ ! -u "$file" ]; then
if [ -w "$file" ]; then
chrpath -d $file
fi
fi
done
# add rpath path in ld.so.conf.d
mkdir -p %{buildroot}%{_sysconfdir}/ld.so.conf.d
echo "%{_bindir}/%{name}" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf
echo "/usr/lib/%{name}" >> %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf
%files
%doc README.md
%license LICENSE
@ -64,8 +91,24 @@ popd
# /usr/lib/libdeepin-pdfium.*
%{_datadir}/deepin-manual/manual-assets/application/deepin-reader/document-viewer/*
/usr/lib/deepin-reader/libdeepin-poppler*
%config(noreplace) /etc/ld.so.conf.d/%{name}-%{_arch}.conf
%changelog
* Tue May 30 2023 leeffo <liweiganga@uniontech.com> - 5.9.9-6
- fix: fix install warning
* Tue Mar 07 2023 liweiganga <liweiganga@uniontech.com> - 5.9.9-5
- fix: enable debug
* Wed Dec 07 2022 liweiganga <liweiganga@uniontech.com> - 5.9.9-4
- fix: remove rpath
* 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
- fix: remove rpath
* Tue Jul 19 2022 konglidong <konglidong@uniontech.com> - 5.9.9-1
- update to 5.9.9