commit 9cfb87203fd065bf82905258cf98d3ddfef3139b1b106e18501aa0dbf630f627 Author: Tomáš Chvátal Date: Thu Nov 7 17:21:11 2019 +0000 Accepting request 746360 from home:lnussel for Factory OBS-URL: https://build.opensuse.org/request/show/746360 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-langtable?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/langtable-0.0.48.tar.gz b/langtable-0.0.48.tar.gz new file mode 100644 index 0000000..1bd534f --- /dev/null +++ b/langtable-0.0.48.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:94ecd072dd231da5164243c25b1398cca9e2b6854c41d51c83adb0324751d822 +size 1203351 diff --git a/python-langtable.changes b/python-langtable.changes new file mode 100644 index 0000000..96ec764 --- /dev/null +++ b/python-langtable.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Thu Nov 7 10:33:47 UTC 2019 - Ludwig Nussel + +- initial package version 0.0.48 for openSUSE diff --git a/python-langtable.spec b/python-langtable.spec new file mode 100644 index 0000000..2787bff --- /dev/null +++ b/python-langtable.spec @@ -0,0 +1,71 @@ +# +# spec file for package python-langtable +# +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%define skip_python2 1 +Name: python-langtable +Version: 0.0.48 +Release: 0 +Summary: Database to guess defaults for locale settings +# the translations in languages.xml and territories.xml are (mostly) +# imported from CLDR and are thus under the Unicode license, the +# short name for this license is "MIT", see: +# https://fedoraproject.org/wiki/Licensing:MIT?rd=Licensing/MIT#Modern_Style_without_sublicense_.28Unicode.29 +License: GPL-3.0+ +Group: System/Localization +URL: https://github.com/mike-fabian/langtable +Source0: https://github.com/mike-fabian/langtable/releases/download/%{version}/langtable-%{version}.tar.gz +BuildRequires: %{python_module setuptools} +BuildRequires: %{pythons} +BuildRequires: fdupes +BuildRequires: libxml2-tools +BuildArch: noarch +%python_subpackages + +%description +langtable is used to guess reasonable defaults for locale, keyboard layout, +territory, and language, if part of that information is already known. For +example, guess the territory and the keyboard layout if the language +is known or guess the language and keyboard layout if the territory is +already known. + +%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} + +%check +(cd langtable; python3 langtable.py) +python3 test_cases.py +for i in keyboards languages territories timezoneidparts timezones; do + xmllint --noout --relaxng \ + langtable/schemas/$i.rng \ + langtable/data/$i.xml.gz +done + +%files %{python_files} +%license COPYING unicode-license.txt +%doc README ChangeLog +%{python_sitelib}/* + +%changelog