Skip to content
Snippets Groups Projects
Commit 5c54b9dd authored by Alexander Pace's avatar Alexander Pace Committed by Patrick Godwin
Browse files

modify packaging

Forced python3 byte-compiling for python files in non-standard
library locations (i.e., gstreamer elements)

https://fedoraproject.org/wiki/Changes/No_more_automagic_Python_bytecompilation

(cringe at "automagic")
parent 734c7ca7
No related branches found
No related tags found
1 merge request!25python3 port
%define gstreamername gstreamer1
%global __python %{__python3}
Name: @PACKAGE_NAME@
Version: @PACKAGE_VERSION@
......@@ -78,7 +79,7 @@ and programs.
%build
%configure
%configure PYTHON=python3
%{__make}
......
%define gstreamername gstreamer1
%global __python %{__python3}
Name: @PACKAGE_NAME@
Version: @PACKAGE_VERSION@
......@@ -89,7 +90,7 @@ plugins and programs.
%build
%configure --enable-gtk-doc --disable-massmodel
%configure --enable-gtk-doc --disable-massmodel PYTHON=python3
%{__make}
......
%define gstreamername gstreamer1
%global __python %{__python3}
Name: @PACKAGE_NAME@
Version: @PACKAGE_VERSION@
......@@ -93,7 +94,7 @@ plugins and programs.
%build
%configure --enable-gtk-doc
%configure --enable-gtk-doc PYTHON=python3
%{__make}
......
%define gstreamername gstreamer1
%global __python %{__python3}
Name: @PACKAGE_NAME@
Version: @PACKAGE_VERSION@
......@@ -111,7 +112,7 @@ and programs.
%build
%configure --enable-gtk-doc
%configure --enable-gtk-doc PYTHON=python3
%{__make}
......@@ -126,7 +127,6 @@ DESTDIR=${RPM_BUILD_ROOT} %{__make} install
# don't distribute *.la files
[ ${RPM_BUILD_ROOT} != "/" ] && find ${RPM_BUILD_ROOT} -name "*.la" -type f -delete
%post
if test -d /usr/lib64 ; then
ldconfig /usr/lib64
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment