!17 add library path file to /etc/ld.so.conf.d
From: @zhang__3125 Reviewed-by: @dwl301 Signed-off-by: @dwl301
This commit is contained in:
commit
25c6ab3fcc
15
gedit.spec
15
gedit.spec
@ -11,7 +11,7 @@
|
||||
Name: gedit
|
||||
Epoch: 2
|
||||
Version: 42.2
|
||||
Release: 2
|
||||
Release: 3
|
||||
Summary: Text editor for the GNOME desktop
|
||||
License: GPLv2+ and GFDL-1.1-or-later
|
||||
URL: https://wiki.gnome.org/Apps/Gedit
|
||||
@ -98,11 +98,20 @@ documentation for user of gedit.
|
||||
%install
|
||||
%meson_install
|
||||
chrpath -d %{buildroot}%{_bindir}/gedit
|
||||
mkdir -p %{buildroot}/etc/ld.so.conf.d
|
||||
echo "%{_libdir}/gedit" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf
|
||||
|
||||
%py_byte_compile %{__python3} %{buildroot}%{python3_sitelib}/gi/overrides
|
||||
%py_byte_compile %{__python3} %{buildroot}%{_libdir}/gedit/plugins/
|
||||
|
||||
%find_lang %{name} --with-gnome
|
||||
|
||||
%post
|
||||
/sbin/ldconfig
|
||||
|
||||
%postun
|
||||
/sbin/ldconfig
|
||||
|
||||
%check
|
||||
appstream-util validate-relax --nonet %{buildroot}/%{_metainfodir}/org.gnome.gedit.appdata.xml
|
||||
desktop-file-validate %{buildroot}%{_datadir}/applications/org.gnome.gedit.desktop
|
||||
@ -156,6 +165,7 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/org.gnome.gedit.deskt
|
||||
%{_datadir}/icons/hicolor/*/apps/org.gnome.gedit.svg
|
||||
%{_datadir}/icons/hicolor/symbolic/apps/org.gnome.gedit-symbolic.svg
|
||||
%{_metainfodir}/org.gnome.gedit.appdata.xml
|
||||
%config(noreplace) /etc/ld.so.conf.d/*
|
||||
|
||||
%files devel
|
||||
%{_includedir}/gedit-%{apiver}/
|
||||
@ -168,6 +178,9 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/org.gnome.gedit.deskt
|
||||
%{_mandir}/man1/*
|
||||
|
||||
%changelog
|
||||
* Fri Mar 24 2023 lin zhang <lin.zhang@turbolinux.com.cn> - 2:42.2-3
|
||||
- add library path file to /etc/ld.so.conf.d
|
||||
|
||||
* Mon Mar 13 2023 lin zhang <lin.zhang@turbolinux.com.cn> - 2:42.2-2
|
||||
- remove rpath
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user