update to 2.0.1 [release 2.0.1-1mamba;Sat Jul 17 2021]
This commit is contained in:
parent
f17adbaf90
commit
9c3bb437f7
@ -1,82 +1,59 @@
|
||||
Name: python-cups
|
||||
Version: 1.9.74
|
||||
Version: 2.0.1
|
||||
Release: 1mamba
|
||||
Summary: A set of Python bindings for the CUPS API
|
||||
Group: System/Libraries/Python
|
||||
Vendor: openmamba
|
||||
Distribution: openmamba
|
||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
URL: http://cyberelk.net/tim/software/pycups/
|
||||
Source: https://pypi.debian.net/pycups/pycups-%{version}.tar.bz2
|
||||
#Source: http://cyberelk.net/tim/data/pycups/pycups-%{version}.tar.bz2
|
||||
URL: https://github.com/zdohnal/pycups
|
||||
Source: https://pypi.debian.net/pycups/pycups-%{version}.tar.gz
|
||||
License: GPL
|
||||
## AUTOBUILDREQ-BEGIN
|
||||
BuildRequires: glibc-devel
|
||||
BuildRequires: libcups-devel
|
||||
BuildRequires: libpython-devel
|
||||
BuildRequires: libpython3-devel
|
||||
## AUTOBUILDREQ-END
|
||||
BuildRequires: libpython3-devel >= 3.7.4
|
||||
Requires: python >= %python_version
|
||||
Provides: python-pycups
|
||||
Obsoletes: python-pycups
|
||||
Provides: pycups
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||
|
||||
%description
|
||||
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.
|
||||
|
||||
%if "%?with_pyver"
|
||||
%define pyver %{with_pyver}
|
||||
%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.
|
||||
%if "%{?with_pyver}"
|
||||
%pyver_package
|
||||
%endif
|
||||
|
||||
%prep
|
||||
%setup -q -n pycups-%{version}
|
||||
|
||||
%build
|
||||
##CFLAGS="%{optflags}" python setup.py build
|
||||
%make
|
||||
CFLAGS="%{optflags}" %{__python} setup.py build
|
||||
|
||||
%install
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
|
||||
%{__python} setup.py install \
|
||||
-O1 --skip-build \
|
||||
--root="%{buildroot}" \
|
||||
--install-headers=%{_includedir}/python \
|
||||
--install-lib=%{python_sitearch}
|
||||
--install-headers=%{python_inc} \
|
||||
--install-lib=%{python_sitearch} \
|
||||
--record=%{name}.filelist
|
||||
|
||||
sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
|
||||
|
||||
%clean
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
|
||||
%if "%?with_pyver"
|
||||
%files py%{pyver}
|
||||
%files %{?pyappend} -f %{name}.filelist
|
||||
%defattr(-,root,root)
|
||||
%{python_sitearch}/cups.*.so
|
||||
%else
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{python_sitearch}/cups.so
|
||||
%endif
|
||||
%{python_sitearch}/pycups-*-py%{python_version}.egg-info
|
||||
%{python_sitearch}/pycups-%{version}-py*.egg-info
|
||||
%doc COPYING
|
||||
#NEWS README TODO
|
||||
|
||||
%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
|
||||
- update to 1.9.74
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user