Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-langtable for openSUSE:Factory checked in at 2023-05-26 20:15:35 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-langtable (Old) and /work/SRC/openSUSE:Factory/.python-langtable.new.1533 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-langtable" Fri May 26 20:15:35 2023 rev:8 rq:1089077 version:0.0.61 Changes: -------- --- /work/SRC/openSUSE:Factory/python-langtable/python-langtable.changes 2022-12-07 17:36:16.772970998 +0100 +++ /work/SRC/openSUSE:Factory/.python-langtable.new.1533/python-langtable.changes 2023-05-26 20:15:51.912402757 +0200 @@ -1,0 +2,12 @@ +Thu May 25 06:16:29 UTC 2023 - Daniel Garcia <daniel.gar...@suse.com> + +- Build data package with multibuild + +------------------------------------------------------------------- +Thu Apr 27 20:56:49 UTC 2023 - Josef Reidinger <jreidin...@suse.com> + +- Split python-langtable-data subpackage to hold XML data that + package use it saves some spaces and allows usage of that XML + without python dependency + +------------------------------------------------------------------- New: ---- _multibuild ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-langtable.spec ++++++ --- /var/tmp/diff_new_pack.I0Q4cn/_old 2023-05-26 20:15:52.276404927 +0200 +++ /var/tmp/diff_new_pack.I0Q4cn/_new 2023-05-26 20:15:52.280404951 +0200 @@ -1,7 +1,7 @@ # -# spec file for package python-langtable +# spec file # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,8 +16,17 @@ # +%global flavor @BUILD_FLAVOR@%{nil} +%if "%{flavor}" == "data" +%define psuffix -data-src +%bcond_without data +%else +%define psuffix %{nil} +%bcond_with data +%endif %define skip_python2 1 -Name: python-langtable +%global literalpython python +Name: python-langtable%{psuffix} Version: 0.0.61 Release: 0 Summary: Database to guess defaults for locale settings @@ -34,6 +43,9 @@ BuildRequires: fdupes BuildRequires: libxml2-tools BuildRequires: python-rpm-macros +%if %{without data} +Requires: %{literalpython}-langtable-data = %{version} +%endif BuildArch: noarch %python_subpackages @@ -44,16 +56,34 @@ is known or guess the language and keyboard layout if the territory is already known. +%package -n python-langtable-data +Summary: XML data to map various locale settingsn and its relations + +%description -n python-langtable-data +Provides XML data used by python-langtable. Packaged separately so it is not affected +by more python target versions and also it can be used indenpendently. + %prep %autosetup -n langtable-%{version} %build -sed -i -e "s,_DATADIR = .*,_DATADIR = '%{python3_sitelib}/langtable'," langtable/langtable.py %python_build %install -%python_install -%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%if %{with data} +# Data package + mkdir -p %{buildroot}/%{_datadir}/langtable/data + mv langtable/data/* %{buildroot}/%{_datadir}/langtable/data +%else +# Main package + %python_install + %python_expand %fdupes %{buildroot}%{$python_sitelib} + %python_expand rm -rf %{buildroot}%{$python_sitelib}/langtable/data +%endif + +# Main package +%if %{without data} %check (cd langtable; python3 langtable.py) @@ -69,4 +99,11 @@ %doc README ChangeLog %{python_sitelib}/* +%else +# Data package + +%files -n python-langtable-data +%{_datadir}/langtable +%endif + %changelog ++++++ _multibuild ++++++ <multibuild> <package>data</package> </multibuild>