diff --git a/thunarx-python-0.5.1.tar.bz2 b/thunarx-python-0.5.1.tar.bz2 new file mode 100644 index 0000000..ec0c972 Binary files /dev/null and b/thunarx-python-0.5.1.tar.bz2 differ diff --git a/thunarx-python.spec b/thunarx-python.spec new file mode 100644 index 0000000..f119e93 --- /dev/null +++ b/thunarx-python.spec @@ -0,0 +1,52 @@ +Name: thunarx-python +Version: 0.5.1 +Release: 1 +Summary: Python bindings for the Thunar Extension Framework +License: LGPLv2+ +#Group: Development/Libraries +URL: http://goodies.xfce.org/projects/bindings/%{name} +Source0: http://archive.xfce.org/src/bindings/%{name}/0.5/%{name}-%{version}.tar.bz2 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +#BuildArch: noarch +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 +%setup -q + +%build +export PYTHON=/usr/bin/python3.8 +export PYTHON_LIBS=-lpython3.8 +export PKG_CONFIG_PATH=/usr/lib64/pkgconfig +%configure --enable-gtk-doc --with-python3 +%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 +* Tue Jul 28 2020 Dillon Chen - 0.5.1-1 +- Init package