|
|
|
@ -1,49 +1,24 @@
|
|
|
|
|
%if 0%{?fedora} && 0%{?fedora} <= 29 || 0%{?rhel} && 0%{?rhel} <= 7
|
|
|
|
|
%global with_python3 0
|
|
|
|
|
%else
|
|
|
|
|
%global with_python3 1
|
|
|
|
|
%endif
|
|
|
|
|
%global nautilus_version 43~beta
|
|
|
|
|
|
|
|
|
|
%global _legacy_common_support 1
|
|
|
|
|
%global tarball_version %%(echo %{version} | tr '~' '.')
|
|
|
|
|
|
|
|
|
|
Name: nautilus-python
|
|
|
|
|
Version: 1.2.3
|
|
|
|
|
Release: 10%{?dist}
|
|
|
|
|
Version: 4.0.1
|
|
|
|
|
Release: 3%{?dist}
|
|
|
|
|
Summary: Python bindings for Nautilus
|
|
|
|
|
|
|
|
|
|
License: GPLv2+
|
|
|
|
|
License: GPL-2.0-or-later
|
|
|
|
|
URL: https://wiki.gnome.org/Projects/NautilusPython
|
|
|
|
|
Source0: https://download.gnome.org/sources/%{name}/%(v=%{version}; echo ${v:0:3}; )/%{name}-%{version}.tar.xz
|
|
|
|
|
Source0: https://download.gnome.org/sources/%{name}/4.0/%{name}-%{tarball_version}.tar.xz
|
|
|
|
|
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: gtk-doc
|
|
|
|
|
BuildRequires: nautilus-devel
|
|
|
|
|
BuildRequires: pygobject3-devel
|
|
|
|
|
%if %{with_python3}
|
|
|
|
|
BuildRequires: meson
|
|
|
|
|
BuildRequires: pkgconfig(libnautilus-extension-4) >= %{nautilus_version}
|
|
|
|
|
BuildRequires: pkgconfig(pygobject-3.0)
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
%else
|
|
|
|
|
BuildRequires: python2-devel
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
Requires: nautilus >= 3.0
|
|
|
|
|
%if %{with_python3}
|
|
|
|
|
Requires: nautilus-extensions%{?_isa} >= %{nautilus_version}
|
|
|
|
|
Requires: python3-gobject-base%{?_isa}
|
|
|
|
|
%else
|
|
|
|
|
%if 0%{?rhel} == 7
|
|
|
|
|
Requires: python-gobject-base%{?_isa}
|
|
|
|
|
%else
|
|
|
|
|
Requires: python2-gobject-base%{?_isa}
|
|
|
|
|
%endif
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# Renamed / Obsoleted in F30
|
|
|
|
|
Provides: python2-nautilus = %{version}-%{release}
|
|
|
|
|
Provides: python2-nautilus%{?_isa} = %{version}-%{release}
|
|
|
|
|
Obsoletes: python2-nautilus < %{version}-%{release}
|
|
|
|
|
# Renamed / Obsoleted in F30
|
|
|
|
|
Provides: python3-nautilus = %{version}-%{release}
|
|
|
|
|
Provides: python3-nautilus%{?_isa} = %{version}-%{release}
|
|
|
|
|
Obsoletes: python3-nautilus < %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Python bindings for Nautilus
|
|
|
|
@ -52,55 +27,86 @@ Python bindings for Nautilus
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Python bindings for Nautilus
|
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
# Renamed / Obsoleted in F30
|
|
|
|
|
Provides: python2-nautilus-devel = %{version}-%{release}
|
|
|
|
|
Provides: python2-nautilus-devel%{?_isa} = %{version}-%{release}
|
|
|
|
|
Obsoletes: python2-nautilus-devel < %{version}-%{release}
|
|
|
|
|
# Renamed / Obsoleted in F30
|
|
|
|
|
Provides: python3-nautilus-devel = %{version}-%{release}
|
|
|
|
|
Provides: python3-nautilus-devel%{?_isa} = %{version}-%{release}
|
|
|
|
|
Obsoletes: python3-nautilus-devel < %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
Python bindings for Nautilus
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
|
|
|
|
%autosetup -p1 -n %{name}-%{tarball_version}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%if %{with_python3}
|
|
|
|
|
export PYTHON="%{__python3}"
|
|
|
|
|
%else
|
|
|
|
|
export PYTHON="%{__python2}"
|
|
|
|
|
%endif
|
|
|
|
|
%configure \
|
|
|
|
|
--enable-gtk-doc
|
|
|
|
|
%make_build
|
|
|
|
|
%meson
|
|
|
|
|
%meson_build
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%make_install
|
|
|
|
|
%meson_install
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_datadir}/nautilus-python/extensions
|
|
|
|
|
find $RPM_BUILD_ROOT -name '*.la' -delete
|
|
|
|
|
rm -rfv $RPM_BUILD_ROOT%{_docdir}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%license COPYING
|
|
|
|
|
%doc README AUTHORS NEWS
|
|
|
|
|
%{_libdir}/nautilus/extensions-3.0/libnautilus-python.so
|
|
|
|
|
%doc AUTHORS NEWS.md README.md
|
|
|
|
|
%{_libdir}/nautilus/extensions-4/libnautilus-python.so
|
|
|
|
|
%dir %{_datadir}/nautilus-python/extensions
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%doc examples/
|
|
|
|
|
%{_libdir}/pkgconfig/nautilus-python.pc
|
|
|
|
|
%{_datadir}/pkgconfig/nautilus-python.pc
|
|
|
|
|
%dir %{_datadir}/gtk-doc
|
|
|
|
|
%dir %{_datadir}/gtk-doc/html
|
|
|
|
|
%{_datadir}/gtk-doc/html/nautilus-python/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Wed Jan 15 2025 Arkady L. Shane <tigro@msvsphere-os.ru> - 4.0.1-3
|
|
|
|
|
- Rebuilt for MSVSphere 10
|
|
|
|
|
|
|
|
|
|
* Thu Jul 18 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.1-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 4.0.1-2
|
|
|
|
|
- Rebuilt for Python 3.13
|
|
|
|
|
|
|
|
|
|
* Fri Apr 19 2024 David King <amigadave@amigadave.com> - 4.0.1-1
|
|
|
|
|
- Update to 4.0.1
|
|
|
|
|
|
|
|
|
|
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.0-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.0-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.0-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jun 15 2023 Python Maint <python-maint@redhat.com> - 4.0-3
|
|
|
|
|
- Rebuilt for Python 3.12
|
|
|
|
|
|
|
|
|
|
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Sep 20 2022 Kalev Lember <klember@redhat.com> - 4.0-1
|
|
|
|
|
- Update to 4.0
|
|
|
|
|
|
|
|
|
|
* Fri Aug 12 2022 Kalev Lember <klember@redhat.com> - 4.0~alpha-1
|
|
|
|
|
- Update to 4.0.alpha
|
|
|
|
|
- Switch to meson build system
|
|
|
|
|
- Require nautilus-extensions rather than nautilus
|
|
|
|
|
|
|
|
|
|
* Mon Aug 01 2022 Kalev Lember <klember@redhat.com> - 1.2.3-13
|
|
|
|
|
- Fix the build with nautilus 43
|
|
|
|
|
- Drop python2 support from the spec file
|
|
|
|
|
|
|
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.3-12
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1.2.3-11
|
|
|
|
|
- Rebuilt for Python 3.11
|
|
|
|
|
|
|
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.3-10
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|