Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
4bca8ff7c3
!27 [sync] PR-24: 【轻量级 PR】:fix install warning
From: @openeuler-sync-bot 
Reviewed-by: @HelloWorld_lvcongqing 
Signed-off-by: @HelloWorld_lvcongqing
2023-05-31 02:47:30 +00:00
leeffo
cd7a8f2aca fix install warning
Signed-off-by: leeffo <liweiganga@uniontech.com>
(cherry picked from commit 38839c46d904ae2ffd595d009a017a54527f32f2)
2023-05-30 17:31:08 +08:00
openeuler-ci-bot
dd06226368
!25 [sync] PR-22: enable debuginfo for fix strip
From: @openeuler-sync-bot 
Reviewed-by: @HelloWorld_lvcongqing 
Signed-off-by: @HelloWorld_lvcongqing
2023-05-30 09:30:43 +00:00
liweiganga
cc93658731 fix: enable debug
(cherry picked from commit cbdb4bd4388f7f1b99650776953fac87cb49ef56)
2023-05-30 17:05:16 +08:00
openeuler-ci-bot
13c908665e
!21 [sync] PR-15: fix issue:#I63PB2
From: @openeuler-sync-bot 
Reviewed-by: @yeqinglong01 
Signed-off-by: @yeqinglong01
2022-12-07 09:35:17 +00:00
liweiganga
fea8377f34 fix issue:#I63PB2
(cherry picked from commit f737ed47e674bf7973eb747a29dfe83914a176d8)
2022-12-07 17:13:31 +08:00
openeuler-ci-bot
d1fe74db82
!19 [sync] PR-14: fix: linkfile size and install warning
From: @openeuler-sync-bot 
Reviewed-by: @yeqinglong01 
Signed-off-by: @yeqinglong01
2022-12-07 09:13:04 +00:00
liweiganga
47040068cf fix: linkfile size and install warning
(cherry picked from commit 2b8e054d14ab3e46e16bfd9b5524098fc9ef147d)
2022-12-07 16:55:28 +08:00
openeuler-ci-bot
6c3ea8a13b
!17 [sync] PR-13: remove rpath
From: @openeuler-sync-bot 
Reviewed-by: @yeqinglong01 
Signed-off-by: @yeqinglong01
2022-12-07 08:48:20 +00:00
liweiganga
7337eab0fe fix issue:#I63PB2
(cherry picked from commit 1c48e3d81cdadf46265a024c305cbe68038ffdab)
2022-12-07 16:30:39 +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