From c9209093b4875ebe398b2c9aa83a4c8fa4c76c06 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Tue, 8 Nov 2016 10:09:39 +0100 Subject: [PATCH] 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. --- contrib/fedora/rpm/NetworkManager.spec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contrib/fedora/rpm/NetworkManager.spec b/contrib/fedora/rpm/NetworkManager.spec index f7ee7e0bb9..6814d382de 100644 --- a/contrib/fedora/rpm/NetworkManager.spec +++ b/contrib/fedora/rpm/NetworkManager.spec @@ -510,7 +510,7 @@ fi %postun libnm -p /sbin/ldconfig -%files -f %{name}.lang +%files %{_sysconfdir}/dbus-1/system.d/org.freedesktop.NetworkManager.conf %{_sysconfdir}/dbus-1/system.d/nm-dispatcher.conf %{_sysconfdir}/dbus-1/system.d/nm-ifcfg-rh.conf @@ -589,7 +589,7 @@ fi %{_libdir}/%{name}/libnm-wwan.so %endif -%files glib +%files glib -f %{name}.lang %{_libdir}/libnm-glib.so.* %{_libdir}/libnm-glib-vpn.so.* %{_libdir}/libnm-util.so.* @@ -627,7 +627,7 @@ fi %{_datadir}/vala/vapi/libnm-*.deps %{_datadir}/vala/vapi/libnm-*.vapi -%files libnm +%files libnm -f %{name}.lang %{_libdir}/libnm.so.* %{_libdir}/girepository-1.0/NM-1.0.typelib