# sitelib for noarch packages, sitearch for others (remove the unneeded one) %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} Name: gstreamer1-python Version: 1.2.0 Release: 0%{?dist} Summary: GStreamer Python Bindings License: LGPLv2+ URL: http://gstreamer.freedesktop.org/ Source0: http://gstreamer.freedesktop.org/src/gst-python/gst-python-%{version}.tar.bz2 BuildRequires: python-devel, gstreamer1-devel, pygobject3-devel Requires: pygobject3 %description GStreamer Python Bindings %prep %setup -q -n gst-python-%{version} %build %configure make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT %files %doc README NEWS TODO AUTHORS COPYING # For arch-specific packages: sitearch %{python_sitearch}/gi/overrides/* %changelog