[master 1/1] Put translations into a subpackage shared by Python 2 and 3

vpodzime installerbot-noreply at redhat.com
Mon Jul 27 14:25:45 UTC 2015


From: Vratislav Podzimek <vpodzime at redhat.com>

With providing both Python 2 and Python 3 packages we need to make sure both
have the translations available. This commit makes the translations shared by
both Python 2 and 3 subpackages by putting them into a separate subpackage
required by both.
---
 python-blivet.spec | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/python-blivet.spec b/python-blivet.spec
index e58f6ae..78bc890 100644
--- a/python-blivet.spec
+++ b/python-blivet.spec
@@ -45,11 +45,19 @@ Requires: libblockdev-plugins-all >= %{libblockdevver}
 Requires: libselinux-python
 Requires: python-hawkey
 Requires: pygobject3
+Requires: %{realname}-data
 
 %description
 The python-blivet package is a python module for examining and modifying
 storage configuration.
 
+%package -n %{realname}-data
+Summary: Data for the %{realname} python module.
+
+%description -n %{realname}-data
+The %{realname}-data package provides data files required by the %{realname}
+python module.
+
 %if 0%{with_python3}
 %package -n python3-%{realname}
 Summary: A python3 package for examining and modifying storage configuration.
@@ -68,6 +76,7 @@ Requires: e2fsprogs >= %{e2fsver}
 Requires: lsof
 Requires: python3-hawkey
 Requires: python3-gobject
+Requires: %{realname}-data
 
 %description -n python3-%{realname}
 The python3-%{realname} is a python3 package for examining and modifying storage
@@ -102,6 +111,8 @@ popd
 %doc README ChangeLog examples
 %{python_sitelib}/*
 
+%files -n %{realname}-data -f %{realname}.lang
+
 %if 0%{?with_python3}
 %files -n python3-%{realname}
 %license COPYING


-- 
To view this commit on github, visit https://github.com/rhinstaller/blivet/commit/733acf71df6dd0f2e80ba48406ef814b5156f26f


More information about the anaconda-patches mailing list