You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
284 lines
9.2 KiB
284 lines
9.2 KiB
%global NAUTILUS_MAYOR_VER 3.0
|
|
%global _description Python bindings for Nautilus
|
|
|
|
%if %{?fedora}
|
|
%bcond_without python2
|
|
%bcond_without python3
|
|
%else
|
|
%bcond_without python2
|
|
%bcond_with python3
|
|
%endif
|
|
|
|
%bcond_with test_examples
|
|
|
|
Name: nautilus-python
|
|
Version: 1.2.1
|
|
Release: 2%{?dist}
|
|
Summary: Python bindings for Nautilus
|
|
|
|
Group: Development/Libraries
|
|
License: GPLv2+
|
|
URL: http://www.gnome.org/
|
|
Source0: http://ftp.gnome.org/pub/GNOME/sources/%{name}/%(v=%{version}; echo ${v:0:3}; )/%{name}-%{version}.tar.xz
|
|
|
|
BuildRequires: python2-devel
|
|
BuildRequires: python3-devel
|
|
BuildRequires: nautilus-devel
|
|
BuildRequires: pygobject3-devel
|
|
BuildRequires: gtk-doc
|
|
BuildRequires: autoconf automake libtool
|
|
|
|
# for tests
|
|
BuildRequires: xorg-x11-server-Xvfb
|
|
BuildRequires: dbus-x11
|
|
BuildRequires: nautilus
|
|
|
|
%description
|
|
%_description
|
|
|
|
%package -n python2-nautilus
|
|
Summary: %summary
|
|
Requires: nautilus >= 3.0
|
|
%{?python_provide:%python_provide python2-nautilus}
|
|
# Remove before F30
|
|
Provides: nautilus-python = %{version}-%{release}
|
|
Provides: nautilus-python%{?_isa} = %{version}-%{release}
|
|
Obsoletes: nautilus-python < %{version}-%{release}
|
|
|
|
%description -n python2-nautilus
|
|
%_description
|
|
|
|
%package -n python2-nautilus-devel
|
|
Summary: Python bindings for Nautilus
|
|
Requires: python2-nautilus = %{version}-%{release}
|
|
Requires: pkgconfig
|
|
|
|
%description -n python2-nautilus-devel
|
|
%_description
|
|
This package installs the development files for Python 2.
|
|
|
|
%package -n python%{python3_version}-nautilus
|
|
Summary: %summary
|
|
Requires: nautilus >= 3.0
|
|
%{?python_provide:%python_provide python3-nautilus}
|
|
|
|
%description -n python%{python3_version}-nautilus
|
|
%_description
|
|
|
|
%package -n python%{python3_version}-nautilus-devel
|
|
Summary: Python bindings for Nautilus
|
|
Requires: python%{python3_version}-nautilus = %{version}-%{release}
|
|
Requires: pkgconfig
|
|
|
|
%description -n python%{python3_version}-nautilus-devel
|
|
%_description
|
|
This package installs the development files for Python 3.
|
|
|
|
|
|
%prep
|
|
%setup -q
|
|
find m4 -type f -not -name 'python.m4' -delete
|
|
autoreconf -if -I m4
|
|
mkdir python3
|
|
cp -ap -t python3 configure* *.in *.am m4 %{name}.pc* src examples
|
|
cp -ap -t python3 AUTHORS COPYING NEWS README ChangeLog INSTALL
|
|
ln -s ../docs python3
|
|
|
|
|
|
%build
|
|
%if %{with python2}
|
|
%configure \
|
|
--enable-gtk-doc
|
|
%make_build
|
|
%endif
|
|
%if %{with python3}
|
|
pushd python3
|
|
export PYTHON_LIB_NAME=python%{python3_version}
|
|
%configure \
|
|
--enable-gtk-doc
|
|
%make_build
|
|
popd
|
|
%endif
|
|
|
|
|
|
%install
|
|
%if %{with python2}
|
|
%make_install DESTDIR=$RPM_BUILD_ROOT
|
|
%endif
|
|
%if %{with python3}
|
|
%make_install DESTDIR=$RPM_BUILD_ROOT -C python3
|
|
%endif
|
|
mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}/extensions
|
|
find $RPM_BUILD_ROOT -name '*.la' -delete
|
|
rm -rfv $RPM_BUILD_ROOT%{_docdir}
|
|
|
|
|
|
%check
|
|
%if %{with test_examples}
|
|
install -m0755 -d ~/.local/share/nautilus-python/extensions
|
|
%if %{with python2}
|
|
install -m0644 -p -t ~/.local/share/nautilus-python/extensions python3/examples/*.py*
|
|
export TMPDIR=$(pwd)/examples
|
|
# FIXME dbus service, rhbz#1623781
|
|
xvfb-run -a -d dbus-launch --exit-with-x11 nautilus -c
|
|
rm -v ~/.local/share/nautilus-python/extensions/*.py*
|
|
%endif
|
|
%if %{with python3}
|
|
install -m0644 -p -t ~/.local/share/nautilus-python/extensions python3/examples/*.py*
|
|
export TMPDIR=$(pwd)/python3/examples
|
|
# TODO does nautilus work with python3?
|
|
#xvfb-run -a -d dbus-launch --exit-with-x11 nautilus -c
|
|
rm -v ~/.local/share/nautilus-python/extensions/*.py*
|
|
%endif
|
|
%endif
|
|
|
|
|
|
%if %{with python2}
|
|
%files -n python2-nautilus
|
|
%license COPYING
|
|
%doc README AUTHORS NEWS
|
|
%{_libdir}/nautilus/extensions-%{NAUTILUS_MAYOR_VER}/lib%{name}.so
|
|
%dir %{_datadir}/%{name}/extensions
|
|
|
|
%files -n python2-nautilus-devel
|
|
%doc examples/
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
|
%{_datadir}/gtk-doc/html/%{name}
|
|
%endif
|
|
|
|
%if %{with python3}
|
|
%files -n python%{python3_version}-nautilus
|
|
%license COPYING
|
|
%doc README AUTHORS NEWS
|
|
%{_libdir}/nautilus/extensions-%{NAUTILUS_MAYOR_VER}/lib%{name}.so
|
|
%dir %{_datadir}/%{name}/extensions
|
|
|
|
%files -n python%{python3_version}-nautilus-devel
|
|
%doc python3/examples/
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
|
%{_datadir}/gtk-doc/html/%{name}
|
|
%endif
|
|
|
|
|
|
%changelog
|
|
* Fri Aug 31 2018 Raphael Groner <projects.rg@smart.ms> - 1.2.1-2
|
|
- add support for python3
|
|
- execute nautilus self tests with examples, currently b0rken due to a dbus bug
|
|
|
|
* Sat Jul 21 2018 Raphael Groner <projects.rg@smart.ms> - 1.2.1-1
|
|
- new version
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-18
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-17
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
* Wed Feb 07 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.1-16
|
|
- Update Python 2 dependency declarations to new packaging standards
|
|
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
|
|
* Sun Dec 17 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.1-15
|
|
- Python 2 binary packages renamed to python2-nautilus and python2-nautilus-devel
|
|
See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
|
|
|
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-14
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-13
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-12
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
* Fri Dec 09 2016 Raphael Groner <projects.rg@smart.ms> - 1.1-11
|
|
- adjust for epel7
|
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-10
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-9
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-8
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-7
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
* Tue Feb 04 2014 Till Maas <opensource@till.name> - 1.1-6
|
|
- Use %%{_pkgdocdir} (#1046899, #993991, #992325)
|
|
- Fix date in changelog
|
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-5
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-4
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
* Wed Feb 15 2012 Hicham HAOUARI <hicham.haouari@gmail.com> - 1.1-2
|
|
- BuildRequires pygobject3-devel instead of pygobject2-devel
|
|
|
|
* Wed Feb 08 2012 Hicham HAOUARI <hicham.haouari@gmail.com> - 1.1-1
|
|
- Update to 1.1
|
|
|
|
* Tue Sep 27 2011 Hicham HAOUARI <hicham.haouari@gmail.com> - 1.0-1
|
|
- Update to 1.0
|
|
- Remove BuildRoot tag and %%clean section
|
|
- Own /usr/share/nautilus-python/extensions instead of the old arch
|
|
dependent locations
|
|
|
|
* Sat Feb 12 2011 Tim Lauridsen <timlau@fedoraproject.org> - 0.7.0-4
|
|
- Make it build with latest nautilus
|
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.0-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
* Mon Jul 26 2010 David Malcolm <dmalcolm@redhat.com> - 0.7.0-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
|
* Sun Jul 25 2010 Patrick Dignan <patrick.dignan at, gmail.com>
|
|
- New upstream version 0.7.0
|
|
|
|
* Sun Jul 25 2010 Patrick Dignan <patrick.dignan at, gmail.com>
|
|
- Rebuild for F14
|
|
|
|
* Thu Jan 28 2010 Patrick Dignan <patrick.dignan at, gmail.com>
|
|
- New upstream release, bugfixes
|
|
|
|
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-5
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-4
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
* Fri Dec 19 2008 Alex Lancaster <alexlan[AT]fedoraproject org> - 0.5.1-3
|
|
- Patch to fix build (thanks to Nicholas Wourms)
|
|
|
|
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.5.1-2
|
|
- Rebuild for Python 2.6
|
|
|
|
* Wed Sep 24 2008 Trond Danielsen <trondd@fedoraproject.org> - 0.5.1-1
|
|
- New upstream version
|
|
|
|
* Mon Aug 11 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.4.3-6
|
|
- fix license tag
|
|
|
|
* Wed Feb 20 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.4.3-5
|
|
- Autorebuild for GCC 4.3
|
|
|
|
* Wed May 02 2007 Trond Danielsen <trond.danielsen@gmail.com> - 0.4.3-4
|
|
- Added missing folder. Fixes bug #238591.
|
|
|
|
* Sat Apr 21 2007 Trond Danielsen <trond.danielsen@gmail.com> - 0.4.3-3
|
|
- Moved example code to devel package.
|
|
|
|
* Thu Apr 19 2007 Jef Spaleta <jspaleta@gmail.com> - 0.4.3-2
|
|
- Package review corrections
|
|
|
|
* Wed Apr 04 2007 Trond Danielsen <trond.danielsen@gmail.com> - 0.4.3-1
|
|
- Initial version
|