25 %build 26 mkdir -p buildroot 27 28 # Unfortunately build and install steps should be done at once 29 # because otherwise .pyo files won't get into INSTALLED_FILES 30 # record 31 CFLAGS="%optflags" %__python setup.py \ 32 install --optimize=2 \ 33 --root=`pwd`/buildroot \ 34 --record=INSTALLED_FILES 35 36 %install 37 mkdir %buildroot/ 38 cp -pr buildroot %buildroot/ 39 unset RPM_PYTHON 40 41 %files -f INSTALLED_FILES 42