Remove lib64 rpaths

This commit is contained in:
Kalev Lember 2016-11-24 18:39:18 +01:00
parent 4a738ad382
commit 5371be71b9

View File

@ -8,13 +8,14 @@
Name: libpeas
Version: 1.20.0
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Plug-ins implementation convenience library
License: LGPLv2+
URL: https://wiki.gnome.org/Projects/Libpeas
Source0: https://download.gnome.org/sources/%{name}/1.20/%{name}-%{version}.tar.xz
BuildRequires: chrpath
BuildRequires: gcc
BuildRequires: make
BuildRequires: intltool
@ -80,7 +81,17 @@ that are needed to write applications that use libpeas.
%install
%make_install
find %{buildroot}%{_libdir} -type f -name '*.la' -print -delete
# Remove rpath as per https://fedoraproject.org/wiki/Packaging/Guidelines#Beware_of_Rpath
chrpath --delete $RPM_BUILD_ROOT%{_bindir}/peas-demo
chrpath --delete $RPM_BUILD_ROOT%{_libdir}/libpeas-1.0/loaders/libpython3loader.so
chrpath --delete $RPM_BUILD_ROOT%{_libdir}/libpeas-1.0/loaders/libpythonloader.so
chrpath --delete $RPM_BUILD_ROOT%{_libdir}/libpeas-gtk-1.0.so
chrpath --delete $RPM_BUILD_ROOT%{_libdir}/peas-demo/plugins/helloworld/libhelloworld.so
chrpath --delete $RPM_BUILD_ROOT%{_libdir}/peas-demo/plugins/secondtime/libsecondtime.so
%find_lang libpeas
%post
@ -134,6 +145,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor >&/dev/null || :
%{_datadir}/glade/catalogs/libpeas-gtk.xml
%changelog
* Thu Nov 24 2016 Kalev Lember <klember@redhat.com> - 1.20.0-3
- Remove lib64 rpaths
* Tue Nov 08 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 1.20.0-2
- Trivial fixes in spec
- disable silent building