packages: sphinx-pdg/sphinx-pdg.spec - simplify python3 build - BR for pyth...
wiget
wiget at pld-linux.org
Wed Oct 12 08:15:29 CEST 2011
Author: wiget Date: Wed Oct 12 06:15:29 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- simplify python3 build
- BR for python3 version
---- Files affected:
packages/sphinx-pdg:
sphinx-pdg.spec (1.22 -> 1.23)
---- Diffs:
================================================================
Index: packages/sphinx-pdg/sphinx-pdg.spec
diff -u packages/sphinx-pdg/sphinx-pdg.spec:1.22 packages/sphinx-pdg/sphinx-pdg.spec:1.23
--- packages/sphinx-pdg/sphinx-pdg.spec:1.22 Tue Oct 11 18:51:13 2011
+++ packages/sphinx-pdg/sphinx-pdg.spec Wed Oct 12 08:15:24 2011
@@ -6,15 +6,18 @@
Summary(pl.UTF-8): Sphinx - narzędzie do tworzenia dokumentacji dla Pythona
Name: sphinx-pdg
Version: 1.1
-Release: 1
+Release: 2
License: BSD
Group: Development/Languages/Python
Source0: http://pypi.python.org/packages/source/S/Sphinx/Sphinx-%{version}.tar.gz
# Source0-md5: 909927a2c0fe62e7ff5794387c8af34e
URL: http://sphinx.pocoo.org/
BuildRequires: python-devel
+BuildRequires: python-distribute
BuildRequires: python-modules
-BuildRequires: python-setuptools
+BuildRequires: python3-2to3
+BuildRequires: python3-devel
+BuildRequires: python3-distribute
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.219
Requires: python-Sphinx = %{version}-%{release}
@@ -106,25 +109,20 @@
%prep
%setup -q -n Sphinx-%{version}
-mkdir .py3k
-cp -a * .py3k
-mv .py3k py3k
%build
%{__python} setup.py build -b build-2
-
-cd py3k
-2to3-3.2 -w .
+rm sphinx/__init__.pyc
%{__python3} setup.py build -b build-3
+rm -r sphinx/__pycache__
%install
rm -rf $RPM_BUILD_ROOT
-cd py3k
%{__python3} setup.py build -b build-3 install \
--optimize=2 \
--root=$RPM_BUILD_ROOT
-cd ..
+rm -r sphinx/__pycache__
for f in $RPM_BUILD_ROOT%{_bindir}/*; do
mv "${f}" "${f}-3"
@@ -133,6 +131,7 @@
%{__python} setup.py build -b build-2 install \
--optimize=2 \
--root=$RPM_BUILD_ROOT
+rm sphinx/__init__.pyc
%py_postclean
@@ -171,6 +170,10 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.23 2011/10/12 06:15:24 wiget
+- simplify python3 build
+- BR for python3 version
+
Revision 1.22 2011/10/11 16:51:13 qboosh
- updated docutils/jinja2/pygments dependencies
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/sphinx-pdg/sphinx-pdg.spec?r1=1.22&r2=1.23&f=u
More information about the pld-cvs-commit
mailing list