diff --git a/python-barcode-0.13.1.tar.gz b/python-barcode-0.13.1.tar.gz deleted file mode 100644 index c7fe110..0000000 --- a/python-barcode-0.13.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fafba4aa24e9d969777be521c294ff18f6c2b36ad63b5fc2f2108d972e23b252 -size 235921 diff --git a/python-barcode-0.14.0.tar.gz b/python-barcode-0.14.0.tar.gz new file mode 100644 index 0000000..2214466 --- /dev/null +++ b/python-barcode-0.14.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:241b34aa5c5cb6a9889882f9409b0182903a2c5d19b4218be3609cdbbd5ffdf9 +size 228128 diff --git a/python-python-barcode.changes b/python-python-barcode.changes index 7990988..4b50481 100644 --- a/python-python-barcode.changes +++ b/python-python-barcode.changes @@ -1,3 +1,24 @@ +------------------------------------------------------------------- +Thu Jul 14 20:48:46 UTC 2022 - Ben Greiner + +- Update to 0.14.0 + * Breaking: The default dimensions have changed slightly. This is + so that the results of generating a PNG and an SVG look more + alike. + * Previous versions included an empty text element for SVGs with + no comment. This is no longer the case. + * Some internals have been improved so as to allow better + subclassing. Subclasses of Barcode can now override + default_writer_options and default_writer(). + * A guardbar parameter has been added to EAN barcodes. This + renders barcodes with guardars (longer bars). + * Added support for Python 3.10. + * The documentation setup has been redone, hopefully squashing a + lot of legacy quirks. + * Previous versions installed the tests module. This was not + intentional and have been fixed. +- Remove ancient pathlib dependency + ------------------------------------------------------------------- Mon Oct 26 04:08:04 UTC 2020 - Steve Kowalik diff --git a/python-python-barcode.spec b/python-python-barcode.spec index a2a8c0b..44ef58b 100644 --- a/python-python-barcode.spec +++ b/python-python-barcode.spec @@ -1,7 +1,7 @@ # -# spec file for package python-python-barcode +# spec file # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2022 SUSE LLC # Copyright (c) 2019 Dr. Axel Braun # # All modifications and additions to the file contributed by third parties @@ -21,14 +21,13 @@ %define skip_python2 1 %define base_name python-barcode Name: python-%{base_name} -Version: 0.13.1 +Version: 0.14.0 Release: 0 Summary: Library to create Barcodes with Python License: MIT URL: https://github.com/WhyNotHugo/python-barcode Source: https://files.pythonhosted.org/packages/source/p/%{base_name}/%{base_name}-%{version}.tar.gz BuildRequires: %{python_module Pillow} -BuildRequires: %{python_module pathlib} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools} @@ -37,9 +36,9 @@ BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: dejavu-fonts Requires(post): update-alternatives -Requires(postun): update-alternatives -Provides: python-pyBarcode -Obsoletes: python-pyBarcode +Requires(postun):update-alternatives +Provides: python-pyBarcode = %{version}-%{release} +Obsoletes: python-pyBarcode < %{version}-%{release} BuildArch: noarch %python_subpackages @@ -59,11 +58,15 @@ rm docs/Makefile %install %python_install %python_clone -a %{buildroot}%{_bindir}/python-barcode -%python_expand rm -r %{buildroot}%{$python_sitelib}/tests %python_expand %fdupes %{buildroot}%{$python_sitelib} find %{buildroot} -type f -name "*.ttf" | while read i; do ln -fs "%{_datadir}/fonts/truetype/${i##*/}" "$i" done +%{python_expand # copy docs for deduplication +mkdir -p %{buildroot}%{_docdir} +cp -r docs %{buildroot}%{_docdir}/$python-python-barcode +%fdupes %{buildroot}%{_docdir}/$python-python-barcode +} %check sed -i '/cov/d' setup.cfg @@ -76,9 +79,10 @@ sed -i '/cov/d' setup.cfg %python_uninstall_alternative python-barcode %files %{python_files} -%doc docs/* %license LICENCE -%{python_sitelib}/* +%doc %{_docdir}/%{python_flavor}-python-barcode +%{python_sitelib}/barcode +%{python_sitelib}/python_barcode-%{version}*-info %python_alternative %{_bindir}/python-barcode %changelog