forked from pool/python-python-barcode
Compare commits
15 Commits
dd8926eb7a
...
leap-16.0
Author | SHA256 | Date | |
---|---|---|---|
15d72a4505 | |||
0dd5be443d | |||
66604c628b | |||
6c03803d1c | |||
f83d5c0eee | |||
5f0acc6b46 | |||
39391edf6b | |||
3445b941b4 | |||
bbbaede3cf | |||
7f866a97c3 | |||
492f774f07 | |||
|
3b5ab635d8 | ||
081b5433d7 | |||
9868a22126 | |||
bec412fbfa |
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:5f3f9b3c03a373e8f7cd78e21cc847bedbce161f411da1fc56b9c6c13938920c
|
||||
size 231591
|
3
python-barcode-0.15.1.tar.gz
Normal file
3
python-barcode-0.15.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:3b1825fbdb11e597466dff4286b4ea9b1e86a57717b59e563ae679726fc854de
|
||||
size 228161
|
@@ -1,3 +1,59 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon May 5 03:49:30 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Switch to pyproject macros.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jan 14 18:43:01 UTC 2024 - Axel Braun <axel.braun@gmx.de>
|
||||
|
||||
- enabled %{?sle15_python_module_pythons}
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 20 15:26:50 UTC 2023 - Ondřej Súkup <mimi.vx@gmail.com>
|
||||
|
||||
- update to 0.15.1
|
||||
* Improved type hints.
|
||||
* Updated ISBN to support newer allocated ranges.
|
||||
* Fixed compatibility with Pillow 10.0.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jul 14 20:48:46 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
- 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 <steven.kowalik@suse.com>
|
||||
|
||||
- Update to 0.13.1:
|
||||
* Fix a crash when using the generate shortcut function.
|
||||
* Added support for transparent backgrounds. This is done by setting the
|
||||
mode option for a writer to RGBA.
|
||||
* Removed writer_options from barcode.get. This parameter was not used.
|
||||
* Add a with_doctype flag to SVGWriter. Set this to false to avoid including
|
||||
a DOCTYPE in the resulting SVG.
|
||||
* Add support for Pillow>=8.0.0.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed May 20 07:26:48 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
|
||||
|
||||
- %python3_only -> %python_alternative
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 23 13:08:48 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
|
@@ -1,8 +1,8 @@
|
||||
#
|
||||
# spec file for package python-python-barcode
|
||||
#
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
# Copyright (c) 2019 Dr. Axel Braun
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
# Copyright (c) 2019-2024 Dr. Axel Braun <DocB@opensuse.org>
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -17,28 +17,30 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define skip_python2 1
|
||||
%{?sle15_python_module_pythons}
|
||||
|
||||
%define base_name python-barcode
|
||||
Name: python-%{base_name}
|
||||
Version: 0.11.0
|
||||
Version: 0.15.1
|
||||
Release: 0
|
||||
Summary: Library to create Barcodes with Python
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
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 pip}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools_scm}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: dejavu-fonts
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: dejavu-fonts
|
||||
Provides: python-pyBarcode
|
||||
Obsoletes: python-pyBarcode
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
Provides: python-pyBarcode = %{version}-%{release}
|
||||
Obsoletes: python-pyBarcode < %{version}-%{release}
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
@@ -53,24 +55,36 @@ find . -type f -exec chmod a-x {} +
|
||||
rm docs/Makefile
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_expand rm -r %{buildroot}%{$python_sitelib}/tests
|
||||
%pyproject_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/python-barcode
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
find "%{buildroot}" -type f -name "*.ttf" | while read i; do
|
||||
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
|
||||
%pytest
|
||||
|
||||
%post
|
||||
%python_install_alternative python-barcode
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative python-barcode
|
||||
|
||||
%files %{python_files}
|
||||
%doc docs/*
|
||||
%license LICENCE
|
||||
%{python_sitelib}/*
|
||||
%python3_only %{_bindir}/python-barcode
|
||||
%doc %{_docdir}/%{python_flavor}-python-barcode
|
||||
%{python_sitelib}/barcode
|
||||
%{python_sitelib}/python_barcode-%{version}.dist-info
|
||||
%python_alternative %{_bindir}/python-barcode
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user