https://bugzilla.redhat.com/show_bug.cgi?id=871003
--- Comment #7 from Mario Blättermann mario.blaettermann@gmail.com --- (In reply to comment #6)
avoid %install %{__python} setup.py install -O1 --skip-build --root %{buildroot}
https://fedoraproject.org/wiki/Packaging:Python#Byte_compiling
This rule doesn't say explicitely that I have to replace the current command with "install". It says only I have to make sure that the byte compiled files are available in the package.
Try to create a new spec file with "rpmdev-newspec -t python foo" and you will get a foo.spec with exactly that line in %install.
(In reply to comment #5)
You MUST use python2-devel or python3-devel in BR. https://fedoraproject.org/wiki/Packaging:Python#BuildRequires
Fixed.
(In reply to comment #4)
Small suggetsion. Don't use any macroses in Url. It is uncomfortably when somebody opens such .spec and just want to open a program homepage.
Actually this is useful for me when I reuse spec files for similar packages. However, fixed.
Spec URL: http://mariobl.fedorapeople.org/Review/SPECS/obapps.spec SRPM URL: http://mariobl.fedorapeople.org/Review/SRPMS/obapps-0.1.7-3.fc17.src.rpm