forked from pool/python-python-barcode
- Run the spec-cleaner
initial OBS build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-barcode?expand=0&rev=2
This commit is contained in:
committed by
Git OBS Bridge
parent
9c82c0b6db
commit
699fcfee0c
@@ -19,37 +19,32 @@
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define skip_python2 1
|
||||
|
||||
%define base_name python-barcode
|
||||
Name: python-%{base_name}
|
||||
Version: 0.9.0
|
||||
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 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
|
||||
%python_build
|
||||
|
||||
%install
|
||||
%python_install
|
||||
@@ -61,7 +56,6 @@ Library to create standard barcodes with Python. No external modules needed (opt
|
||||
%files %{python_files}
|
||||
%doc docs/*
|
||||
%license LICENCE
|
||||
%defattr(-,root,root)
|
||||
%{python_sitelib}/*
|
||||
%python3_only %{_bindir}/python-barcode
|
||||
|
||||
|
Reference in New Issue
Block a user