!6 remove rpath
From: @cherry530 Reviewed-by: @wu-leilei Signed-off-by: @wu-leilei
This commit is contained in:
commit
4fbd366945
@ -1,7 +1,7 @@
|
||||
Name: libgphoto2
|
||||
Summary: library for giving access to literally hundreds of digital cameras
|
||||
Version: 2.5.18
|
||||
Release: 3
|
||||
Release: 4
|
||||
License: GPLv2+ and GPLv2
|
||||
URL: http://www.gphoto.org/
|
||||
Source0: http://downloads.sourceforge.net/gphoto/%{name}-%{version}.tar.bz2
|
||||
@ -11,6 +11,7 @@ Patch2: gphoto2-device-return.patch
|
||||
|
||||
BuildRequires: gcc gcc-c++ make systemd libtool-ltdl-devel libjpeg-devel gd-devel
|
||||
BuildRequires: pkgconfig(libxml-2.0) pkgconfig(libexif) lockdev-devel pkgconfig(libusb-1.0)
|
||||
BuildRequires: chrpath
|
||||
|
||||
Requires: lockdev
|
||||
|
||||
@ -61,6 +62,13 @@ pushd packaging/linux-hotplug/
|
||||
${RPM_BUILD_ROOT}%{_libdir}/%{name}/print-camera-list udev-rules version 136 > ${RPM_BUILD_ROOT}%{_udevrulesdir}/40-%{name}.rules
|
||||
popd
|
||||
|
||||
cd $RPM_BUILD_ROOT/%{_libdir}/libgphoto2_port/0.12.0/
|
||||
file `find -type f`| grep -w ELF | awk -F":" '{print $1}' | for i in `xargs`
|
||||
do
|
||||
chrpath -d $i
|
||||
done
|
||||
cd -
|
||||
|
||||
find ${RPM_BUILD_ROOT} -type f -name "*.la" -print -delete
|
||||
|
||||
%find_lang %{name}-6
|
||||
@ -107,5 +115,8 @@ cp -a ${RPM_BUILD_ROOT}%{_pkgdocdir}/* __doc
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%changelog
|
||||
* Wed Nov 08 2023 xu_ping <707078654@qq.com> - 2.5.18-4
|
||||
- remove rpath
|
||||
|
||||
* Wed Nov 20 2019 caomeng<caomeng5@huawei.com> - 2.5.18-3
|
||||
- Package init
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user