594ffa9
# Without this, some documentation files end up in /usr/share/doc/python3-caja.
594ffa9
# They should all go in /usr/share/doc/python-caja.
594ffa9
%global _docdir_fmt %{name}
594ffa9
28935ae
%global _description\
28935ae
Python bindings for Caja
28935ae
raveit65 b8d986a
Name:           python-caja
raveit65 acc20a9
Version:        1.20.0
594ffa9
Release:        3%{?dist}
raveit65 b8d986a
Epoch:          1
raveit65 b8d986a
Summary:        Python bindings for Caja
raveit65 b8d986a
raveit65 b8d986a
Group:          Development/Libraries
raveit65 b8d986a
License:        GPLv2+ and LGPLv2+
594ffa9
URL:            https://mate-desktop.org
594ffa9
Source0:        https://pub.mate-desktop.org/releases/1.20/%{name}-%{version}.tar.xz
raveit65 b8d986a
594ffa9
BuildRequires:  python3-devel
raveit65 10b4459
BuildRequires:  caja-devel
raveit65 f536b35
BuildRequires:  pygobject3-devel
raveit65 b8d986a
BuildRequires:  mate-common
raveit65 b8d986a
raveit65 acc20a9
4e8eb4e
%description %_description
4e8eb4e
594ffa9
%package -n python3-caja
594ffa9
Summary: %{summary}
594ffa9
%{?python_provide:%python_provide python3-caja}
4e8eb4e
594ffa9
%description -n python3-caja %_description
4e8eb4e
raveit65 b8d986a
%package devel
raveit65 b8d986a
Summary:        Python bindings for Caja
raveit65 b8d986a
Group:          Development/Libraries
594ffa9
Requires:       python3-caja%{?_isa} = %{epoch}:%{version}-%{release}
raveit65 b8d986a
raveit65 b8d986a
%description devel
raveit65 b8d986a
Python bindings for Caja
raveit65 b8d986a
raveit65 b8d986a
raveit65 b8d986a
%prep
raveit65 acc20a9
%autosetup -p1
raveit65 10b4459
raveit65 b8d986a
%build
594ffa9
export PYTHON=python3
594ffa9
%configure --disable-static
raveit65 b8d986a
make %{?_smp_mflags}
raveit65 b8d986a
raveit65 b8d986a
raveit65 b8d986a
%install
594ffa9
%make_install
594ffa9
mkdir -p %{buildroot}%{_datadir}/caja-python/extensions
594ffa9
find %{buildroot} -name '*.la' -delete
raveit65 b8d986a
5eded95
# We use %%doc instead
594ffa9
rm %{buildroot}%{_docdir}/python-caja/README
5eded95
raveit65 f536b35
%find_lang %{name} --with-gnome --all-name
raveit65 f536b35
raveit65 b8d986a
594ffa9
%ldconfig_scriptlets
raveit65 b8d986a
raveit65 1429b79
594ffa9
%files -n python3-caja -f %{name}.lang
594ffa9
%license COPYING
594ffa9
%doc README AUTHORS NEWS
raveit65 b8d986a
%{_libdir}/caja/extensions-2.0/libcaja-python.so
raveit65 f536b35
%{_datadir}/caja/extensions/libcaja-python.caja-extension
raveit65 f536b35
%dir %{_datadir}/caja-python
raveit65 f536b35
%dir %{_datadir}/caja-python/extensions
raveit65 fa0bc3e
%{_docdir}/python-caja/examples/
raveit65 b8d986a
raveit65 b8d986a
%files devel
raveit65 b8d986a
%{_libdir}/pkgconfig/caja-python.pc
raveit65 b8d986a
raveit65 b8d986a
raveit65 b8d986a
%changelog
594ffa9
* Mon Mar 26 2018 Carl George <carl@george.computer> - 1:1.20.0-3
594ffa9
- Switch to Python 3
594ffa9
- Move COPYING to /usr/share/licenses
594ffa9
- Put all documentation in /usr/share/doc/python-caja
594ffa9
519495f
* Sun Feb 11 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1:1.20.0-2
519495f
- Update Python 2 dependency declarations to new packaging standards
519495f
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
519495f
raveit65 acc20a9
* Sun Feb 11 2018 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1.20.0-1
raveit65 acc20a9
- update to 1.20.0 release
raveit65 acc20a9
- switch to using autosetup
raveit65 acc20a9
760f500
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.19.0-2
760f500
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
760f500
28935ae
* Fri Oct 13 2017 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1.19.0-1
28935ae
- update to 1.19.0 release
28935ae
4e8eb4e
* Thu Aug 10 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1:1.18.1-4
4e8eb4e
- Python 2 binary package renamed to python2-caja
4e8eb4e
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
4e8eb4e
6bad8ed
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.18.1-3
6bad8ed
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
6bad8ed
4535361
* Mon Jul 31 2017 Florian Weimer <fweimer@redhat.com> - 1:1.18.1-2
4535361
- Rebuild with binutils fix for ppc64le (#1475636)
4535361
69f9ab9
* Wed Jul 26 2017 Wolfgang Ulbrich <fedora@raveit.de> - 1.18.1-1
69f9ab9
- update to 1.18.1
69f9ab9
eb9a954
* Tue Mar 14 2017 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1.18.0-1
eb9a954
- update to 1.18.0 release
eb9a954
b5a90f5
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.17.0-2
b5a90f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
b5a90f5
raveit65 0c1029a
* Tue Dec 06 2016 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1.17.0-1
raveit65 0c1029a
- test 1.17.0 release
raveit65 0c1029a
raveit65 7f8ec4d
* Thu Sep 22 2016 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1.16.0-1
raveit65 7f8ec4d
- update to 1.16.0 release
raveit65 7f8ec4d
raveit65 22ff492
* Mon Jun 13 2016 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1.15.0-1
raveit65 22ff492
- update to 1.15.0 release
raveit65 22ff492
raveit65 ed5b728
* Thu Apr 07 2016 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1.14.0-1
raveit65 ed5b728
- update to 1.14.0
raveit65 ed5b728
Wolfgang Ulbrich 4dabde0
* Sun Feb 07 2016 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1.13.0-1
Wolfgang Ulbrich 4dabde0
- update to 1.13.0 release
Wolfgang Ulbrich 4dabde0
a058a02
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.12.0-2
a058a02
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
a058a02
Wolfgang Ulbrich cd7666f
* Fri Nov 06 2015 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1.12.0-1
Wolfgang Ulbrich cd7666f
- update to 1.12.0 release
Wolfgang Ulbrich cd7666f
raveit65 f536b35
* Sat Sep 12 2015 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1:1.10.0-1
raveit65 f536b35
- update to 1.10.0 release
raveit65 f536b35
- remove patches
raveit65 f536b35
- remove conditions for caja
raveit65 f536b35
dc41165
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.4.0-9
dc41165
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
dc41165
c267843
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.4.0-8
c267843
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
c267843
511b68c
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.4.0-7
511b68c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
511b68c
raveit65 2fb4062
* Sat Apr 05 2014 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1:1.4.0-6
raveit65 1870ce8
- use and own %%{_libdir}/caja/extensions-2.0/python
raveit65 a7a0994
- fix rhbz (#1082693)
raveit65 1870ce8
raveit65 6d78146
* Sun Mar 16 2014 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1:1.4.0-5
raveit65 6d78146
- create and own /usr/lib/caja/extensions-2.0/python/ directory
raveit65 6d78146
raveit65 10b4459
* Wed Dec 18 2013 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1:1.4.0-4
raveit65 10b4459
- rebuild for caja rename in f21
raveit65 10b4459
- add python2 stacks
raveit65 10b4459
raveit65 b8d986a
* Mon Sep 23 2013 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1:1.4.0-3
raveit65 b8d986a
- own directories
raveit65 b8d986a
raveit65 b8d986a
* Fri Sep 06 2013 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1:1.4.0-2
raveit65 b8d986a
- initial build for fedora
raveit65 b8d986a
- use modern make install macro
raveit65 b8d986a
- add epoch tag to obsolete python-caja from external repo
raveit65 b8d986a
- add upstream patches to fix incorrect-FSF-address
raveit65 b8d986a
- add upstream patch for automake-1.13
raveit65 b8d986a
- add LGPLv2+ to license information
raveit65 b8d986a
raveit65 b8d986a
* Thu May 30 2013 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1.4.0-1
raveit65 b8d986a
- build for f19
raveit65 b8d986a
- add python-caja_removal_of_mate-python_usage.patch
raveit65 b8d986a
raveit65 b8d986a
* Tue Apr 10 2012 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1.2.0-1
raveit65 b8d986a
- rename package to python-caja
raveit65 b8d986a
raveit65 b8d986a
* Wed Mar 14 2012 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1.2.0-1
raveit65 b8d986a
- update to 1.2.0 version
raveit65 b8d986a
raveit65 b8d986a
* Mon Feb 13 2012 Wolfgang Ulbrich <chat-to-me@raveit.de> - caja-python-1.1.0-2
raveit65 b8d986a
- rebuild for enable builds for .i686
raveit65 b8d986a
raveit65 b8d986a
* Sat Jan 21 2012 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1.1.0-1
raveit65 b8d986a
- update to version 1.1.0
raveit65 b8d986a
raveit65 b8d986a
* Wed Jan 04 2012 Wolfgang Ulbrich <chat-to-me@raveit.de> - 2011.12.01-1
raveit65 b8d986a
- caja-python.spec based on nautilus-python-1.0-1.fc16 spec