update to 2.0.1 [release 2.0.1-1mamba;Sat Jul 17 2021]

This commit is contained in:
Silvan Calarco 2024-01-06 11:01:09 +01:00
parent f17adbaf90
commit 9c3bb437f7

View File

@ -1,82 +1,59 @@
Name: python-cups Name: python-cups
Version: 1.9.74 Version: 2.0.1
Release: 1mamba Release: 1mamba
Summary: A set of Python bindings for the CUPS API Summary: A set of Python bindings for the CUPS API
Group: System/Libraries/Python Group: System/Libraries/Python
Vendor: openmamba Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://cyberelk.net/tim/software/pycups/ URL: https://github.com/zdohnal/pycups
Source: https://pypi.debian.net/pycups/pycups-%{version}.tar.bz2 Source: https://pypi.debian.net/pycups/pycups-%{version}.tar.gz
#Source: http://cyberelk.net/tim/data/pycups/pycups-%{version}.tar.bz2
License: GPL License: GPL
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel BuildRequires: glibc-devel
BuildRequires: libcups-devel BuildRequires: libcups-devel
BuildRequires: libpython-devel BuildRequires: libpython3-devel
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
BuildRequires: libpython3-devel >= 3.7.4 BuildRequires: libpython3-devel >= 3.7.4
Requires: python >= %python_version
Provides: python-pycups
Obsoletes: python-pycups
Provides: pycups
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description %description
pycups is a set of Python bindings for the CUPS API. pycups is a set of Python bindings for the CUPS API.
It was written for use with system-config-printer, but can be put to other uses as well. It was written for use with system-config-printer, but can be put to other uses as well.
%if "%?with_pyver" %if "%{?with_pyver}"
%define pyver %{with_pyver} %pyver_package
%define __python %(rpm --eval %{__python%{with_pyver}})
%define python_sitearch %(rpm --eval %{python%{with_pyver}_sitearch})
%define python_sitelib %(rpm --eval %{python%{with_pyver}_sitelib})
%define python_inc %(rpm --eval %{python%{with_pyver}_inc})
%define python_version %(rpm --eval %{python%{with_pyver}_version})
%define python_provides %(rpm --eval %{python%{with_pyver}_provides})
%define python_requires %(rpm --eval %{python%{with_pyver}_requires})
%define py_requires %(rpm --eval %{py%{with_pyver}_requires})
%package py%{pyver}
Group: System/Libraries/Python
Summary: A set of Python bindings for the CUPS API
%py_requires
%description py%{pyver}
pycups is a set of Python bindings for the CUPS API.
It was written for use with system-config-printer, but can be put to other uses as well.
%endif %endif
%prep %prep
%setup -q -n pycups-%{version} %setup -q -n pycups-%{version}
%build %build
##CFLAGS="%{optflags}" python setup.py build CFLAGS="%{optflags}" %{__python} setup.py build
%make
%install %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__python} setup.py install \ %{__python} setup.py install \
-O1 --skip-build \
--root="%{buildroot}" \ --root="%{buildroot}" \
--install-headers=%{_includedir}/python \ --install-headers=%{python_inc} \
--install-lib=%{python_sitearch} --install-lib=%{python_sitearch} \
--record=%{name}.filelist
sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
%clean %clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%if "%?with_pyver" %files %{?pyappend} -f %{name}.filelist
%files py%{pyver}
%defattr(-,root,root) %defattr(-,root,root)
%{python_sitearch}/cups.*.so %{python_sitearch}/pycups-%{version}-py*.egg-info
%else
%files
%defattr(-,root,root)
%{python_sitearch}/cups.so
%endif
%{python_sitearch}/pycups-*-py%{python_version}.egg-info
%doc COPYING %doc COPYING
#NEWS README TODO
%changelog %changelog
* Sat Jul 17 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.1-1mamba
- update to 2.0.1
* Thu Aug 08 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 1.9.74-1mamba * Thu Aug 08 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 1.9.74-1mamba
- update to 1.9.74 - update to 1.9.74