On Fri, Apr 20, 2012 at 08:46:09AM +0200, glen wrote:
> -%{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/authconfig-tui.py
> -ln -s authconfig.py $RPM_BUILD_ROOT%{_datadir}/%{name}/authconfig-tui.py
> +%py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
> +# libraries, no sources needed
> +%{__rm} -v 
> $RPM_BUILD_ROOT%{_datadir}/%{name}/{authinfo,dnsclient,msgarea,shvfile}.py
> +# invoked directly, not as library
> +%{__rm} -v $RPM_BUILD_ROOT%{_datadir}/%{name}/authconfig*.py[co]

When Python script is named as *.py, python interpreter byte-compiles it
and tries to save the result (as .pyc or .pyo, depending on -O flag).
So when such script is packaged in %{_libdir}/*, %{_datadir}/* or so,
*.py[co] should be packaged too (or they will be created at runtime,
when the script is run by root).

In case if %{_bindir} or %{_sbindir} - no script should be named *.py
there (actually there are some, but they should be fixed).


-- 
Jakub Bogusz    http://qboosh.pl/
_______________________________________________
pld-devel-en mailing list
pld-devel-en@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en

Reply via email to