%global minorversion 0.5 Name: thunarx-python Version: 0.5.2 Release: 1 Summary: Python bindings for the Thunar Extension Framework License: LGPLv2+ URL: http://goodies.xfce.org/projects/bindings/%{name} Source0: http://archive.xfce.org/src/bindings/%{name}/%{minorversion}/%{name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: gcc-c++ BuildRequires: gtk-doc BuildRequires: pygobject3-devel >= 2.6.0 BuildRequires: python3 python3-devel BuildRequires: Thunar-devel >= 1.8.0 Provides: python2-thunarx = %{version}-%{release} Provides: python2-thunarx%{?_isa} = %{version}-%{release} Provides: python3-thunarx = %{version}-%{release} Provides: python3-thunarx%{?_isa} = %{version}-%{release} %description These bindings allow one to create python plugins for Thunar. %prep %autosetup %build export PYTHON=%{__python3} export PYTHON_LIBS=-lpython%{python3_version} export PKG_CONFIG_PATH=/%{_libdir}pkgconfig %configure --enable-gtk-doc %make_build %install %make_install find %{buildroot}%{_libdir} -name *.la -print -delete find %{buildroot} -name style.css -print -exec mv '{}' docs/html \; mkdir -p %{buildroot}/%{_datadir}/thunarx-python/extensions %global _docdir_fmt %{name} %files %license COPYING %doc AUTHORS ChangeLog NEWS README %{_libdir}/thunarx-3/ %{_datadir}/thunarx-python/extensions %{_datadir}/gtk-doc/html/%{name}/ %doc %{_pkgdocdir}/examples/ %changelog * Fri Jun 18 2021 zhanglin - 0.5.2-1 - Update to 0.5.2 * Tue Jul 28 2020 Dillon Chen - 0.5.1-1 - Init package