forked from pool/python-python-barcode
- Verion 0.9 of python-barcode (fork of pyBarcode) initial OBS build OBS-URL: https://build.opensuse.org/request/show/690790 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-barcode?expand=0&rev=1
69 lines
2.1 KiB
RPMSpec
69 lines
2.1 KiB
RPMSpec
#
|
|
# spec file for package python-python-barcode
|
|
#
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
# Copyright (c) 2019 Dr. Axel Braun
|
|
#
|
|
# 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-%{**}}
|
|
%define skip_python2 1
|
|
|
|
%define base_name python-barcode
|
|
Name: python-%{base_name}
|
|
BuildRequires: %{python_module Pillow}
|
|
BuildRequires: %{python_module pathlib}
|
|
BuildRequires: %{python_module setuptools_scm}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Version: 0.9.0
|
|
Release: 0
|
|
Source: https://files.pythonhosted.org/packages/source/p/%{base_name}/%{base_name}-%{version}.tar.gz
|
|
Url: https://github.com/WhyNotHugo/%{base_name}
|
|
Summary: Library to create Barcodes with Python
|
|
License: MIT
|
|
Group: Development/Languages/Python
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildArch: noarch
|
|
%python_subpackages
|
|
|
|
%description
|
|
Library to create standard barcodes with Python. No external modules needed (optional PIL support included).
|
|
%prep
|
|
%setup -q -n %{base_name}-%{version}
|
|
|
|
#remove unneeded files
|
|
##/usr/bin/rm doc/make.bat
|
|
##/usr/bin/rm doc/Makefile
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
%python_exec test.py
|
|
|
|
%files %{python_files}
|
|
%doc docs/*
|
|
%license LICENCE
|
|
%defattr(-,root,root)
|
|
%{python_sitelib}/*
|
|
%python3_only %{_bindir}/python-barcode
|
|
|
|
%changelog
|