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