14
0

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
This commit is contained in:
Tomáš Chvátal
2020-05-26 08:04:40 +00:00
committed by Git OBS Bridge
commit a38fb4c20c
5 changed files with 100 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -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

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

View File

@@ -0,0 +1,4 @@
-------------------------------------------------------------------
Wed May 20 09:47:52 UTC 2020 - Antonio Larrosa <alarrosa@suse.com>
- Initial release of python-ufonormalizer

69
python-ufonormalizer.spec Normal file
View File

@@ -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

3
ufonormalizer-0.4.1.zip Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:44d7367fc639dcbee24393f07925955f2e9347d23a4de73f2fcaeb434f07685b
size 34564