do not use py3dir
This commit is contained in:
parent
188394f82a
commit
dec3e81542
@ -6,11 +6,10 @@
|
||||
Summary: Python bindings for CUPS
|
||||
Name: python-cups
|
||||
Version: 1.9.72
|
||||
Release: 3%{?dist}
|
||||
Release: 4%{?dist}
|
||||
URL: http://cyberelk.net/tim/software/pycups/
|
||||
Source: http://cyberelk.net/tim/data/pycups/pycups-%{version}.tar.bz2
|
||||
License: GPLv2+
|
||||
Group: Development/Languages
|
||||
BuildRequires: cups-devel
|
||||
BuildRequires: python2-devel python3-devel
|
||||
BuildRequires: epydoc
|
||||
@ -22,7 +21,6 @@ system-config-printer, but can be put to other uses as well.
|
||||
|
||||
%package -n python3-cups
|
||||
Summary: Python3 bindings for CUPS API, known as pycups.
|
||||
Group: Development/Languages
|
||||
|
||||
%description -n python3-cups
|
||||
This package provides Python bindings for CUPS API,
|
||||
@ -33,34 +31,24 @@ This is a ported release for python 3
|
||||
|
||||
%package doc
|
||||
Summary: Documentation for python-cups
|
||||
Group: Documentation
|
||||
|
||||
%description doc
|
||||
Documentation for python-cups.
|
||||
|
||||
%prep
|
||||
%setup -q -n pycups-%{version}
|
||||
|
||||
rm -rf %{py3dir}
|
||||
cp -a . %{py3dir}
|
||||
%setup -n pycups-%{version}
|
||||
|
||||
%build
|
||||
make CFLAGS="%{optflags} -fno-strict-aliasing"
|
||||
make doc
|
||||
|
||||
pushd %{py3dir}
|
||||
%py2_build
|
||||
%py3_build
|
||||
popd
|
||||
|
||||
|
||||
%install
|
||||
make install DESTDIR="%{buildroot}"
|
||||
|
||||
pushd %{py3dir}
|
||||
make install-rpmhook DESTDIR="%{buildroot}"
|
||||
%py2_install
|
||||
%py3_install
|
||||
chmod 755 %{buildroot}%{python3_sitearch}/cups*.so
|
||||
popd
|
||||
|
||||
|
||||
|
||||
%files
|
||||
@ -69,7 +57,7 @@ popd
|
||||
%{python_sitearch}/pycups*.egg-info
|
||||
|
||||
%files -n python3-cups
|
||||
%doc COPYING README NEWS
|
||||
%doc COPYING README NEWS TODO
|
||||
%{python3_sitearch}/cups.cpython-3*.so
|
||||
%{python3_sitearch}/pycups*.egg-info
|
||||
%{_rpmconfigdir}/fileattrs/psdriver.attr
|
||||
@ -79,6 +67,9 @@ popd
|
||||
%doc examples html
|
||||
|
||||
%changelog
|
||||
* Fri Nov 20 2015 Jiri Popelka <jpopelka@redhat.com> - 1.9.72-4
|
||||
- do not use py3dir
|
||||
|
||||
* Tue Aug 11 2015 Jiri Popelka <jpopelka@redhat.com> - 1.9.72-3
|
||||
- %%py3_build && %%py3_install
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user