contrib/rpm: put translations in NetworkManager-libnm and NetworkManager-glib packages
One can install the libraries without NetworkManager. Thus, the translations should be there. Doing this increases the package size of the libraries significantly. For a user who only has libnm without NetworkManager installed, this is acceptable, because the whole point of the change is to ensure such a user also gets translations. For a user who requires libnm and libnm-glib packages, this unfortunately increases the additional package size as the translations are now present twice. What would be better is if NetworkManager-libnm would only contain translations for libnm/NetworkManager, and NetworkManager-glib only translations for libnm-util/libnm-glib.
This commit is contained in:
@@ -510,7 +510,7 @@ fi
|
|||||||
%postun libnm -p /sbin/ldconfig
|
%postun libnm -p /sbin/ldconfig
|
||||||
|
|
||||||
|
|
||||||
%files -f %{name}.lang
|
%files
|
||||||
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.NetworkManager.conf
|
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.NetworkManager.conf
|
||||||
%{_sysconfdir}/dbus-1/system.d/nm-dispatcher.conf
|
%{_sysconfdir}/dbus-1/system.d/nm-dispatcher.conf
|
||||||
%{_sysconfdir}/dbus-1/system.d/nm-ifcfg-rh.conf
|
%{_sysconfdir}/dbus-1/system.d/nm-ifcfg-rh.conf
|
||||||
@@ -589,7 +589,7 @@ fi
|
|||||||
%{_libdir}/%{name}/libnm-wwan.so
|
%{_libdir}/%{name}/libnm-wwan.so
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files glib
|
%files glib -f %{name}.lang
|
||||||
%{_libdir}/libnm-glib.so.*
|
%{_libdir}/libnm-glib.so.*
|
||||||
%{_libdir}/libnm-glib-vpn.so.*
|
%{_libdir}/libnm-glib-vpn.so.*
|
||||||
%{_libdir}/libnm-util.so.*
|
%{_libdir}/libnm-util.so.*
|
||||||
@@ -627,7 +627,7 @@ fi
|
|||||||
%{_datadir}/vala/vapi/libnm-*.deps
|
%{_datadir}/vala/vapi/libnm-*.deps
|
||||||
%{_datadir}/vala/vapi/libnm-*.vapi
|
%{_datadir}/vala/vapi/libnm-*.vapi
|
||||||
|
|
||||||
%files libnm
|
%files libnm -f %{name}.lang
|
||||||
%{_libdir}/libnm.so.*
|
%{_libdir}/libnm.so.*
|
||||||
%{_libdir}/girepository-1.0/NM-1.0.typelib
|
%{_libdir}/girepository-1.0/NM-1.0.typelib
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user