53 lines
1.6 KiB
RPMSpec
53 lines
1.6 KiB
RPMSpec
Name: thunarx-python
|
|
Version: 0.5.1
|
|
Release: 2
|
|
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 <dillon.chen@turbolinux.com.cn> - 0.5.1-1
|
|
- Init package
|