commit a38fb4c20c96116cc3c83ad3c522c7cb17f1ddc331231e19a3d2bf37130b3051 Author: Tomáš Chvátal Date: Tue May 26 08:04:40 2020 +0000 Accepting request 808925 from home:alarrosa:branches:devel:languages:python New package python-ufonormalizer OBS-URL: https://build.opensuse.org/request/show/808925 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ufonormalizer?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/python-ufonormalizer.changes b/python-ufonormalizer.changes new file mode 100644 index 0000000..73ef4f7 --- /dev/null +++ b/python-ufonormalizer.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Wed May 20 09:47:52 UTC 2020 - Antonio Larrosa + +- Initial release of python-ufonormalizer diff --git a/python-ufonormalizer.spec b/python-ufonormalizer.spec new file mode 100644 index 0000000..e043cdf --- /dev/null +++ b/python-ufonormalizer.spec @@ -0,0 +1,69 @@ +# +# spec file for package python-ufonormalizer +# +# Copyright (c) 2020 SUSE LLC +# +# 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/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-ufonormalizer +Version: 0.4.1 +Release: 0 +Summary: Script to normalize the XML and other data inside of a UFO +License: BSD-3-Clause +Group: Development/Languages/Python +URL: https://github.com/unified-font-object/ufoNormalizer +Source: https://files.pythonhosted.org/packages/source/u/ufonormalizer/ufonormalizer-%{version}.zip +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRequires: unzip +Requires: python-setuptools +Requires(post): update-alternatives +Requires(postun): update-alternatives +BuildArch: noarch +%python_subpackages + +%description +Script to normalize the XML and other data inside of a UFO. + +%prep +%setup -q -n ufonormalizer-%{version} +sed -i -e '1{\,^#! %{_bindir}/env python,d}' src/ufonormalizer.py + +%build +%python_build + +%install +%python_install +%python_clone -a %{buildroot}%{_bindir}/ufonormalizer + +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%python_exec setup.py test + +%post +%python_install_alternative ufonormalizer + +%postun +%python_uninstall_alternative ufonormalizer + +%files %{python_files} +%doc README.md +%license LICENSE.txt +%python_alternative %{_bindir}/ufonormalizer +%{python_sitelib}/* + +%changelog diff --git a/ufonormalizer-0.4.1.zip b/ufonormalizer-0.4.1.zip new file mode 100644 index 0000000..89d3a4d --- /dev/null +++ b/ufonormalizer-0.4.1.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:44d7367fc639dcbee24393f07925955f2e9347d23a4de73f2fcaeb434f07685b +size 34564