Init package

This commit is contained in:
dillon chen 2020-07-28 17:27:33 +08:00
parent d8382905d3
commit 37ed9d9fbe
2 changed files with 52 additions and 0 deletions

Binary file not shown.

52
thunarx-python.spec Normal file
View File

@ -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 <dillon.chen@turbolinux.com.cn> - 0.5.1-1
- Init package