Skip to content

Commit

Permalink
Put translations into a subpackage shared by Python 2 and 3
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
vpodzime committed Jul 27, 2015
1 parent 1b69d02 commit 528e81c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions python-blivet.spec
Expand Up @@ -45,11 +45,19 @@ Requires: libblockdev-plugins-all >= %{libblockdevver}
Requires: libselinux-python
Requires: python-hawkey
Requires: pygobject3
Requires: %{realname}-data-%{version}-%{release}

%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.
Expand All @@ -68,6 +76,7 @@ Requires: e2fsprogs >= %{e2fsver}
Requires: lsof
Requires: python3-hawkey
Requires: python3-gobject
Requires: %{realname}-data-%{version}-%{release}

%description -n python3-%{realname}
The python3-%{realname} is a python3 package for examining and modifying storage
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 528e81c

Please sign in to comment.