%global _empty_manifest_terminate_build 0 Name: python-escpos Version: 1.9 Release: 1 Summary: Python library to manipulate ESC/POS Printers License: LGPL URL: http://www.bitbucket.org/presik/psk-escpos/ Source0: https://mirrors.nju.edu.cn/pypi/web/packages/5f/5b/dee1aeb0ee0d8b60b5370cda0a679bf04111e59a72bc794fdefbb7ebdaa3/escpos-1.9.tar.gz BuildArch: noarch %description Python ESC/POS is a library which lets the user have access to all those printers handled by ESC/POS commands, as defined by Epson, from a Python application. The library tries to implement the functions provided by the ESC/POS-commandset and supports sending text, images, barcodes and qr-codes to the printer. Text can be aligned/justified and fonts can be changed by size, type and weight. Also, this module handles some hardware functionalities like cutting paper, control characters, printer reset and similar functions. Since supported commands differ from printer to printer the software tries to automatically apply the right settings for the printer that you set. These settings are handled by `escpos-printer-db `_ which is also used in `escpos-php `_. %package -n python3-escpos Summary: Python library to manipulate ESC/POS Printers Provides: python-escpos BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-escpos Python ESC/POS is a library which lets the user have access to all those printers handled by ESC/POS commands, as defined by Epson, from a Python application. The library tries to implement the functions provided by the ESC/POS-commandset and supports sending text, images, barcodes and qr-codes to the printer. Text can be aligned/justified and fonts can be changed by size, type and weight. Also, this module handles some hardware functionalities like cutting paper, control characters, printer reset and similar functions. Since supported commands differ from printer to printer the software tries to automatically apply the right settings for the printer that you set. These settings are handled by `escpos-printer-db `_ which is also used in `escpos-php `_. %package help Summary: Development documents and examples for escpos Provides: python3-escpos-doc %description help Python ESC/POS is a library which lets the user have access to all those printers handled by ESC/POS commands, as defined by Epson, from a Python application. The library tries to implement the functions provided by the ESC/POS-commandset and supports sending text, images, barcodes and qr-codes to the printer. Text can be aligned/justified and fonts can be changed by size, type and weight. Also, this module handles some hardware functionalities like cutting paper, control characters, printer reset and similar functions. Since supported commands differ from printer to printer the software tries to automatically apply the right settings for the printer that you set. These settings are handled by `escpos-printer-db `_ which is also used in `escpos-php `_. %prep %autosetup -n escpos-1.9 %build %py3_build %install %py3_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi pushd %{buildroot} if [ -d usr/lib ]; then find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/lib64 ]; then find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/bin ]; then find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/sbin ]; then find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst fi touch doclist.lst if [ -d usr/share/man ]; then find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst fi popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . %files -n python3-escpos -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Tue May 30 2023 Python_Bot - 1.9-1 - Package Spec generated