forked from pool/python-PyQRCode
- Clean up of the SPEC file.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyQRCode?expand=0&rev=16
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Apr 20 06:19:11 UTC 2022 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
- Clean up of the SPEC file.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Feb 2 13:12:20 UTC 2022 - Bernhard Wiedemann <bwiedemann@suse.com>
|
Wed Feb 2 13:12:20 UTC 2022 - Bernhard Wiedemann <bwiedemann@suse.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-PyQRCode
|
# spec file for package python-PyQRCode
|
||||||
#
|
#
|
||||||
# Copyright (c) 2021 SUSE LLC
|
# Copyright (c) 2022 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -24,16 +24,18 @@ Version: 1.3.6
|
|||||||
Release: 0
|
Release: 0
|
||||||
Summary: Python 3 module to generate QR Codes
|
Summary: Python 3 module to generate QR Codes
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/mnooner256/pyqrcode
|
URL: https://github.com/pyqrcode/pyqrcodeNG
|
||||||
# This is unofficial fork with some additional fixes, the canonical
|
# This is unofficial fork with some additional fixes, the canonical
|
||||||
# upstream repository is dead.
|
# upstream repository is dead.
|
||||||
Source: https://github.com/pyqrcode/pyqrcodeNG/archive/refs/tags/%{version}.tar.gz#/pyqrcodeNG-%{version}.tar.gz
|
Source: https://github.com/pyqrcode/pyqrcodeNG/archive/refs/tags/%{version}.tar.gz#/pyqrcodeNG-%{version}.tar.gz
|
||||||
# PATCH-FIX-UPSTREAM https://github.com/pyqrcode/pyqrcodeNG/pull/18
|
# PATCH-FIX-UPSTREAM https://github.com/pyqrcode/pyqrcodeNG/pull/18
|
||||||
Patch0: reproducible.patch
|
Patch0: reproducible.patch
|
||||||
BuildRequires: %{python_module Sphinx}
|
BuildRequires: %{python_module Sphinx}
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module pypng}
|
BuildRequires: %{python_module pypng}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
@@ -44,18 +46,24 @@ BuildArch: noarch
|
|||||||
%description
|
%description
|
||||||
The PyQRCode module is a QR code generator that is simple to use and written in pure python. The module can automates most of the building process for creating QR codes. Most codes can be created using only two lines of code!
|
The PyQRCode module is a QR code generator that is simple to use and written in pure python. The module can automates most of the building process for creating QR codes. Most codes can be created using only two lines of code!
|
||||||
|
|
||||||
|
%package -n %{name}-doc
|
||||||
|
Summary: Documentation files for %{name}
|
||||||
|
|
||||||
|
%description -n %{name}-doc
|
||||||
|
HTML Documentation for %{name}.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1 -n pyqrcodeNG-%{version}
|
%autosetup -p1 -n pyqrcodeNG-%{version}
|
||||||
|
|
||||||
sed -i -e '1{\@^#!%{_bindir}/env python@d}' pyqrcodeng/{cli,qrspecial}.py
|
sed -i -e '1{\@^#!%{_bindir}/env python@d}' pyqrcodeng/{cli,qrspecial}.py
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
python3 setup.py build_sphinx -v
|
python3 setup.py build_sphinx -v
|
||||||
rm -rvf build/sphinx/html/.buildinfo
|
rm -rvf build/sphinx/html/.buildinfo
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_clone -a %{buildroot}%{_bindir}/pyqr
|
%python_clone -a %{buildroot}%{_bindir}/pyqr
|
||||||
%python_expand %fdupes %{buildroot}/%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}/%{$python_sitelib}
|
||||||
|
|
||||||
@@ -70,9 +78,13 @@ rm -rvf build/sphinx/html/.buildinfo
|
|||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc README.rst CHANGES.rst build/sphinx/html
|
%doc README.rst CHANGES.rst
|
||||||
%{_bindir}/pyqr-%{python_bin_suffix}
|
%{_bindir}/pyqr-%{python_bin_suffix}
|
||||||
%python_alternative %{_bindir}/pyqr
|
%python_alternative %{_bindir}/pyqr
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/PyQRCodeNG-%{version}*-info
|
||||||
|
%{python_sitelib}/pyqrcodeng
|
||||||
|
|
||||||
|
%files -n %{name}-doc
|
||||||
|
%doc build/sphinx/html
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user