Accepting request 502739 from home:TheBlackCat:branches:devel:languages:python
- Provide old packages. - Minor singlespec cleanups. OBS-URL: https://build.opensuse.org/request/show/502739 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycups?expand=0&rev=2
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Jun 9 22:02:30 UTC 2017 - toddrme2178@gmail.com
|
||||
|
||||
- Provide old packages.
|
||||
- Minor singlespec cleanups.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 5 10:48:38 UTC 2017 - aloisio@gmx.com
|
||||
|
||||
|
@@ -17,7 +17,7 @@
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define _name pycups
|
||||
%define oldpython python
|
||||
Name: python-pycups
|
||||
Version: 1.9.73
|
||||
Release: 0
|
||||
@@ -25,20 +25,29 @@ Summary: Python Bindings for CUPS
|
||||
License: GPL-2.0+
|
||||
Group: Development/Libraries/Python
|
||||
Url: http://cyberelk.net/tim/software/pycups/
|
||||
Source: https://files.pythonhosted.org/packages/source/p/pycups/%{_name}-%{version}.tar.bz2
|
||||
Source: https://files.pythonhosted.org/packages/source/p/pycups/pycups-%{version}.tar.bz2
|
||||
# PATCH-FIX-OPENSUSE revert-postscriptdriver.prov-py3.patch switch back to python2
|
||||
Patch0: revert-postscriptdriver.prov-py3.patch
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: cups-devel
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%ifpython2
|
||||
Obsoletes: %{oldpython}-pycups < %{version}
|
||||
Provides: %{oldpython}-pycups = %{version}
|
||||
%endif
|
||||
%ifpython3
|
||||
Obsoletes: python3-pycups < %{version}
|
||||
Provides: python3-pycups = %{version}
|
||||
%endif
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
Python Bindings for CUPS, the Common Unix Printing System
|
||||
|
||||
%prep
|
||||
%setup -q -n %{_name}-%{version}
|
||||
%setup -q -n pycups-%{version}
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
@@ -47,11 +56,12 @@ export CFLAGS="%{optflags}"
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root)
|
||||
%doc COPYING NEWS README TODO
|
||||
%{python_sitearch}/cups*.so
|
||||
%{python_sitearch}/%{_name}-%{version}-py%{python_version}.egg-info
|
||||
%{python_sitearch}/pycups-%{version}-py*.egg-info
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user