- Fix scripts so they're the python2 versions not the python3 versions
This commit is contained in:
parent
9fef4092e5
commit
353ad9c1d9
@ -11,7 +11,7 @@
|
||||
|
||||
Name: python-%{srcname}
|
||||
Version: 0.7
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
Summary: System for processing plaintext documentation
|
||||
|
||||
Group: Development/Languages
|
||||
@ -104,8 +104,8 @@ popd
|
||||
rm -rf %{buildroot}
|
||||
|
||||
# Must do the python3 install first because the scripts in /usr/bin are
|
||||
# overwritten with every setup.py install (and we want the python2 version
|
||||
# to be the default for now).
|
||||
# overwritten by setup.py install (and we want the python2 version to be the
|
||||
# default for now).
|
||||
%if 0%{?with_python3}
|
||||
pushd %{py3dir}
|
||||
%{__python3} setup.py install --skip-build --root %{buildroot}
|
||||
@ -121,6 +121,8 @@ extradest=%{python3_sitelib}
|
||||
fullextradest=%{buildroot}/$extradest
|
||||
install -D -m 0644 extras/$file $fullextradest/$file
|
||||
popd
|
||||
|
||||
rm -rf %{buildroot}%{_bindir}/*
|
||||
%endif # with_python3
|
||||
|
||||
%{__python} setup.py install --skip-build --root %{buildroot}
|
||||
@ -166,6 +168,9 @@ rm -rf %{buildroot}
|
||||
%{python3_sitelib}/*
|
||||
|
||||
%changelog
|
||||
* Sat Jan 1 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 0.7-3
|
||||
- Fix scripts so they're the python2 versions not the python3 versions
|
||||
|
||||
* Thu Dec 30 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.7-2
|
||||
- Build for python3
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user