[packages/nautilus-python] - updated to 4.0 (for python3/nautilus 4 API, i.e. 43+)
qboosh
qboosh at pld-linux.org
Tue May 30 19:08:36 CEST 2023
commit 5e147ec9d515b3ccc9c9c4df3be84f716ecbbdfd
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Tue May 30 19:08:56 2023 +0200
- updated to 4.0 (for python3/nautilus 4 API, i.e. 43+)
nautilus-python.spec | 89 +++++++++++++++++++++++++++-------------------------
1 file changed, 46 insertions(+), 43 deletions(-)
---
diff --git a/nautilus-python.spec b/nautilus-python.spec
index 204f6c6..98c30fd 100644
--- a/nautilus-python.spec
+++ b/nautilus-python.spec
@@ -1,33 +1,41 @@
-Summary: Python bindings for GNOME 3's nautilus
-Summary(pl.UTF-8): Wiązania Pythona dla nautilusa z GNOME 3
+#
+# Conditional build:
+%bcond_without apidocs # gtk-doc based API documentation
+
+Summary: Python bindings for GNOME nautilus 4
+Summary(pl.UTF-8): Wiązania Pythona dla nautilusa 4 z GNOME
Name: nautilus-python
-Version: 1.2.3
+Version: 4.0
Release: 1
License: GPL v2+
Group: Libraries
-Source0: https://download.gnome.org/sources/nautilus-python/1.2/%{name}-%{version}.tar.xz
-# Source0-md5: adb0886ef62df810ba31c9dbd7e821c0
+Source0: https://download.gnome.org/sources/nautilus-python/4.0/%{name}-%{version}.tar.xz
+# Source0-md5: adf8fd3f52cbeb90dd693abb74a99d50
URL: https://wiki.gnome.org/Projects/NautilusPython
-BuildRequires: gtk-doc >= 1.14
+%{?with_apidocs:BuildRequires: gtk-doc >= 1.14}
BuildRequires: libxslt-progs
-BuildRequires: nautilus-devel >= 3.0.0
+BuildRequires: meson >= 0.59.0
+BuildRequires: ninja >= 1.5
+BuildRequires: nautilus-devel >= 43
BuildRequires: pkgconfig
-BuildRequires: python-devel >= 1:2
-BuildRequires: python-pygobject3-devel >= 3.0.0
+BuildRequires: python3-devel >= 1:3.2
+BuildRequires: python3-pygobject3-devel >= 3.0.0
BuildRequires: rpm-build >= 4.6
BuildRequires: tar >= 1:1.22
BuildRequires: xz
-Requires: nautilus >= 3.0.0
+Requires: nautilus >= 43
Requires: python-pygobject3 >= 3.0.0
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-These are unstable bindings for the nautilus extension library
-introduced in GNOME 2.6.
+Nautilus-python is a set of Python bindings for the Nautilus Extension
+Framework. With these bindings, you can write extensions for the
+Nautilus File Manager in Python.
%description -l pl.UTF-8
-Ten pakiet zawiera niestabilne wiązania dla biblioteki rozszerzeń
-nautilusa wprowadzonej w GNOME 2.6.
+Nautilus-python to zestaw wiązań Pythona do szkieletu rozszerzeń
+Nautilusa. Przy ich użyciu można tworzyć rozszerzenia zarządcy plików
+Nautilus w Pythonie.
%package devel
Summary: Development files for Python Nautilus extensions
@@ -35,83 +43,78 @@ Summary(pl.UTF-8): Pliki programistyczne dla pythonowych rozszerzeń Nautilusa
Group: Development/Libraries
# doesn't require base; the only file is pkg-config specific, so let's require it
Requires: pkgconfig
+BuildArch: noarch
%description devel
-Development files for Nautilus extensions written in Python.
+Development files for Nautilus 4 extensions written in Python.
%description devel -l pl.UTF-8
-Pliki programistyczne dla rozszerzeń zarządcy plików Nautilus pisanych
-w Pythonie.
+Pliki programistyczne dla rozszerzeń zarządcy plików Nautilus 4
+pisanych w Pythonie.
%package apidocs
-Summary: Python Nautilus API documentation
-Summary(pl.UTF-8): Dokumentacja API Pythona dla rozszerzeń Nautilusa
+Summary: Python Nautilus 4 API documentation
+Summary(pl.UTF-8): Dokumentacja API Pythona dla rozszerzeń Nautilusa 4
Group: Documentation
BuildArch: noarch
%description apidocs
-Python Nautilus API documentation.
+Python Nautilus 4 API documentation.
%description apidocs -l pl.UTF-8
-Dokumentacja API Pythona dla rozszerzeń zarządcy plików Nautilus.
+Dokumentacja API Pythona dla rozszerzeń zarządcy plików Nautilus 4.
%package examples
-Summary: Example Python extensions for Nautilus file manager
-Summary(pl.UTF-8): Przykładowe pythonowe rozszerzenia dla zarządcy plików Nautilus
+Summary: Example Python extensions for Nautilus 4 file manager
+Summary(pl.UTF-8): Przykładowe pythonowe rozszerzenia dla zarządcy plików Nautilus 4
Group: Libraries/Python
%description examples
-Example Python extensions for Nautilus file manager.
+Example Python extensions for Nautilus 4 file manager.
%description examples -l pl.UTF-8
-Przykładowe rozszerzenia dla zarządcy plików Nautilus napisane w
+Przykładowe rozszerzenia dla zarządcy plików Nautilus 4 napisane w
Pythonie.
%prep
%setup -q
%build
-%configure \
- --enable-gtk-doc \
- --with-html-dir=%{_gtkdocdir}
-%{__make}
+%meson build \
+ %{?with_apidocs:-Ddocs=enabled}
+
+%ninja_build -C build
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_datadir}/nautilus-python/extensions \
- $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} \
- $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-3.0/python
-
-%{__make} install \
- DESTDIR=$RPM_BUILD_ROOT \
- HTMLdir=%{_gtkdocdir}/nautilus-python
+ $RPM_BUILD_ROOT%{_examplesdir}
-%{__rm} $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-3.0/*.la
+%ninja_install -C build
# move examples
+%{__mv} $RPM_BUILD_ROOT%{_docdir}/nautilus-python/examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
%{__mv} $RPM_BUILD_ROOT%{_docdir}/nautilus-python/README $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
-%{__mv} $RPM_BUILD_ROOT%{_docdir}/nautilus-python/examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
-# reference docs source
-%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/nautilus-python/reference
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc AUTHORS ChangeLog NEWS README
-%attr(755,root,root) %{_libdir}/nautilus/extensions-3.0/libnautilus-python.so
-%dir %{_libdir}/nautilus/extensions-3.0/python
+%doc AUTHORS MAINTAINERS NEWS.md README.md
+%attr(755,root,root) %{_libdir}/nautilus/extensions-4/libnautilus-python.so
%dir %{_datadir}/nautilus-python
%dir %{_datadir}/nautilus-python/extensions
%files devel
%defattr(644,root,root,755)
-%{_pkgconfigdir}/nautilus-python.pc
+%{_npkgconfigdir}/nautilus-python.pc
+%if %{with apidocs}
%files apidocs
%defattr(644,root,root,755)
%{_gtkdocdir}/nautilus-python
+%endif
%files examples
%defattr(644,root,root,755)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/nautilus-python.git/commitdiff/6bc087158a1a23d855d2df9d72bc87e950637c83
More information about the pld-cvs-commit
mailing list