%py3_build && %py3_install

This commit is contained in:
Jiri Popelka 2015-08-11 17:37:06 +02:00
parent bfe587afd7
commit 188394f82a

View File

@ -6,7 +6,7 @@
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: 2%{?dist} Release: 3%{?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+
@ -49,7 +49,7 @@ make CFLAGS="%{optflags} -fno-strict-aliasing"
make doc make doc
pushd %{py3dir} pushd %{py3dir}
CFLAGS="%{optflags}" %{__python3} setup.py build %py3_build
popd popd
@ -57,7 +57,7 @@ popd
make install DESTDIR="%{buildroot}" make install DESTDIR="%{buildroot}"
pushd %{py3dir} pushd %{py3dir}
%{__python3} setup.py install -O1 --skip-build --root %{buildroot} %py3_install
chmod 755 %{buildroot}%{python3_sitearch}/cups*.so chmod 755 %{buildroot}%{python3_sitearch}/cups*.so
popd popd
@ -79,6 +79,9 @@ popd
%doc examples html %doc examples html
%changelog %changelog
* Tue Aug 11 2015 Jiri Popelka <jpopelka@redhat.com> - 1.9.72-3
- %%py3_build && %%py3_install
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.72-2 * Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.72-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild