2010-04-13 19:49:41 +00:00
|
|
|
#
|
2011-05-31 11:44:23 +00:00
|
|
|
# spec file for package python-nautilus
|
2010-04-13 19:49:41 +00:00
|
|
|
#
|
2024-04-19 15:11:50 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2010-04-13 19:49:41 +00:00
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
2019-07-22 10:49:07 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2010-04-13 19:49:41 +00:00
|
|
|
#
|
2012-05-14 10:05:07 +00:00
|
|
|
|
|
|
|
|
|
2018-03-29 20:02:10 +00:00
|
|
|
%define oldpython python
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
|
%define _name nautilus-python
|
2019-11-26 09:31:03 +00:00
|
|
|
%define skip_python2 1
|
2019-07-22 10:49:07 +00:00
|
|
|
|
2010-04-13 19:49:41 +00:00
|
|
|
Name: python-nautilus
|
2024-04-19 15:11:50 +00:00
|
|
|
Version: 4.0.1
|
2011-12-04 13:55:25 +00:00
|
|
|
Release: 0
|
2010-04-13 19:49:41 +00:00
|
|
|
Summary: Python bindings for Nautilus
|
2018-04-03 13:26:52 +00:00
|
|
|
License: GPL-2.0-or-later
|
2010-04-13 19:49:41 +00:00
|
|
|
Group: Development/Libraries/Python
|
2018-03-29 20:02:10 +00:00
|
|
|
URL: https://wiki.gnome.org/Projects/NautilusPython
|
2022-09-13 07:40:11 +00:00
|
|
|
Source: https://download.gnome.org/sources/nautilus-python/4.0/%{_name}-%{version}.tar.xz
|
2023-07-05 09:59:50 +00:00
|
|
|
# PATCH-FIX-OPENSUSE: fix-hwcaps.patch -- bsc#1212474
|
|
|
|
|
Patch1: fix-hwcaps.patch
|
2019-07-22 10:49:07 +00:00
|
|
|
|
2018-03-29 20:02:10 +00:00
|
|
|
BuildRequires: %{python_module devel}
|
2018-04-03 13:26:52 +00:00
|
|
|
BuildRequires: gtk-doc
|
2022-09-13 07:40:11 +00:00
|
|
|
BuildRequires: meson
|
2018-04-03 13:26:52 +00:00
|
|
|
BuildRequires: pkgconfig
|
2018-03-29 20:02:10 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2022-09-13 07:40:11 +00:00
|
|
|
BuildRequires: pkgconfig(libnautilus-extension-4) >= 43.beta
|
|
|
|
|
BuildRequires: pkgconfig(pygobject-3.0) >= 3.0.0
|
2019-07-22 10:49:07 +00:00
|
|
|
|
2018-03-29 20:02:10 +00:00
|
|
|
Requires: %{name}-common-files = %{version}
|
|
|
|
|
Requires: python-gobject
|
2018-04-03 13:26:52 +00:00
|
|
|
# we can't have automatic typelib() Requires here: it's C code: PyImport_ImportModule("gi.repository.Nautilus")
|
|
|
|
|
Requires: typelib(Nautilus)
|
2018-03-29 20:02:10 +00:00
|
|
|
%python_subpackages
|
2010-04-13 19:49:41 +00:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
This package contains bindings to write Nautilus extensions with Python.
|
|
|
|
|
It allows writing menu, property pages and column providers extensions,
|
|
|
|
|
so that Nautilus functionality can be easily extended.
|
|
|
|
|
|
2018-03-29 20:02:10 +00:00
|
|
|
%package -n %{name}-common-files
|
2018-04-03 13:26:52 +00:00
|
|
|
Summary: Python nautilus files shared between python interpreter versions
|
2012-05-14 10:05:07 +00:00
|
|
|
Group: Development/Libraries/Python
|
2018-03-29 20:02:10 +00:00
|
|
|
Provides: %{python_module nautilus-common-files = %{version}}
|
|
|
|
|
|
|
|
|
|
%description -n %{name}-common-files
|
|
|
|
|
This package contains common files required to build wrappers for
|
|
|
|
|
python-nautilus in both Python2 and Python3.
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Metapackage to pull in all of python-nautilus' packages
|
|
|
|
|
Group: Development/Libraries/Python
|
|
|
|
|
Requires: %{name} >= %{version}
|
|
|
|
|
Requires: %{name}-common-devel = %{version}
|
|
|
|
|
Requires: python-devel
|
2010-04-13 19:49:41 +00:00
|
|
|
|
|
|
|
|
%description devel
|
2018-03-29 20:02:10 +00:00
|
|
|
This package contains files required to build wrappers for python-nautilus.
|
|
|
|
|
|
|
|
|
|
%package -n %{name}-common-devel
|
|
|
|
|
Summary: Shared development files for python-nautilus
|
|
|
|
|
Group: Development/Libraries/Python
|
2019-12-07 22:02:24 +00:00
|
|
|
Requires: python3-nautilus-devel = %{version}
|
2018-03-29 20:02:10 +00:00
|
|
|
Provides: %{python_module nautilus-common-devel = %{version}}
|
|
|
|
|
|
|
|
|
|
%description -n %{name}-common-devel
|
|
|
|
|
This package contains common files required to build wrappers for
|
|
|
|
|
python-nautilus in both Python2 and Python3.
|
2010-04-13 19:49:41 +00:00
|
|
|
|
|
|
|
|
%prep
|
2019-07-22 10:49:07 +00:00
|
|
|
%autosetup -p1 -n %{_name}-%{version}
|
2010-04-13 19:49:41 +00:00
|
|
|
|
|
|
|
|
%build
|
2022-09-13 07:40:11 +00:00
|
|
|
%{python_expand export PYTHON=$python
|
|
|
|
|
%define _vpath_builddir build_%{$python_bin_suffix}
|
|
|
|
|
sed -i "s|docdir =.*|docdir = '%{_docdir}/$python-nautilus'|g" meson.build
|
|
|
|
|
%meson
|
|
|
|
|
%meson_build
|
2018-03-29 20:02:10 +00:00
|
|
|
}
|
2010-04-13 19:49:41 +00:00
|
|
|
|
|
|
|
|
%install
|
2022-09-13 07:40:11 +00:00
|
|
|
%{python_expand export PYTHON=$python
|
|
|
|
|
%define _vpath_builddir build_%{$python_bin_suffix}
|
|
|
|
|
sed -i "s|docdir =.*|docdir = '%{_docdir}/$python-nautilus'|g" meson.build
|
|
|
|
|
%meson_install
|
2018-03-29 20:02:10 +00:00
|
|
|
}
|
2022-09-13 07:40:11 +00:00
|
|
|
|
2011-01-07 15:22:27 +00:00
|
|
|
# New dir where python extensions get installed. It's not created by make
|
|
|
|
|
# install (bgo#638890).
|
|
|
|
|
test ! -d %{buildroot}%{_datadir}/nautilus-python/extensions
|
2010-04-13 19:49:41 +00:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2018-03-29 20:02:10 +00:00
|
|
|
find %{buildroot} -size 0 -delete
|
2023-07-05 09:59:50 +00:00
|
|
|
mkdir -p %{buildroot}%{_datadir}/nautilus-python/extensions
|
2010-04-13 19:49:41 +00:00
|
|
|
|
2018-03-29 20:02:10 +00:00
|
|
|
%files %{python_files}
|
2018-04-03 13:26:52 +00:00
|
|
|
%license COPYING
|
2022-09-13 07:40:11 +00:00
|
|
|
%doc %{_docdir}/%{python_flavor}-nautilus/
|
2010-04-13 19:49:41 +00:00
|
|
|
|
2018-03-29 20:02:10 +00:00
|
|
|
%files -n %{name}-common-files
|
2022-09-19 15:03:23 +00:00
|
|
|
%doc NEWS.md
|
2022-09-13 07:40:11 +00:00
|
|
|
%{_libdir}/nautilus/extensions-4/libnautilus-python.so
|
2011-06-22 19:05:14 +00:00
|
|
|
%dir %{_datadir}/nautilus-python
|
2011-01-07 15:22:27 +00:00
|
|
|
%dir %{_datadir}/nautilus-python/extensions
|
2010-04-13 19:49:41 +00:00
|
|
|
|
2018-03-29 20:02:10 +00:00
|
|
|
%files %{python_files devel}
|
2022-09-13 07:40:11 +00:00
|
|
|
%doc AUTHORS
|
2018-03-29 20:02:10 +00:00
|
|
|
|
|
|
|
|
%files -n %{name}-common-devel
|
|
|
|
|
%doc %{_datadir}/gtk-doc/html/nautilus-python
|
2022-09-13 07:40:11 +00:00
|
|
|
%{_datadir}/pkgconfig/nautilus-python.pc
|
2010-04-13 19:49:41 +00:00
|
|
|
|
2018-04-03 13:26:52 +00:00
|
|
|
%changelog
|