54c07e8
%global modname tw2.core
54c07e8
54c07e8
Name:           python-tw2-core
Jan ONDREJ (SAL) 51c1d31
Version:        2.3.0
fd27de2
Release:        14%{?dist}
54c07e8
Summary:        Web widget creation toolkit based on TurboGears widgets
54c07e8
54c07e8
License:        MIT
54c07e8
URL:            http://toscawidgets.org
Jan ONDREJ (SAL) 0afd2c9
Source0:        https://pypi.python.org/packages/source/t/%{modname}/%{modname}-%{version}.tar.gz
54c07e8
Jan ONDREJ (SAL) 7162640
# remove kajiki support because of broken dependencies on Fedora
Jan ONDREJ (SAL) 4065546
#Patch1:         python-tw2-core-without-kajiki.patch
Jan ONDREJ (SAL) 7162640
54c07e8
BuildArch:      noarch
54c07e8
54c07e8
# For building, generally
54c07e8
# General
54c07e8
BuildRequires:  python3-devel
54c07e8
BuildRequires:  python3-setuptools
54c07e8
BuildRequires:  python3-webob >= 0.9.7
54c07e8
BuildRequires:  python3-simplejson >= 2.0
54c07e8
BuildRequires:  python3-decorator
54c07e8
BuildRequires:  python3-markupsafe
54c07e8
BuildRequires:  python3-speaklater
54c07e8
BuildRequires:  python3-paste-deploy
54c07e8
BuildRequires:  python3-six
54c07e8
54c07e8
# Specifically for the test suite
Jan ONDREJ (SAL) 0adf6ce
#BuildRequires:  python3-nose
54c07e8
BuildRequires:  python3-coverage
54c07e8
BuildRequires:  python3-formencode
54c07e8
BuildRequires:  python3-webtest
54c07e8
BuildRequires:  python3-sieve
54c07e8
54c07e8
# Templating languages for the test suite
54c07e8
BuildRequires:  python3-mako
54c07e8
BuildRequires:  python3-genshi
54c07e8
BuildRequires:  python3-chameleon
Jan ONDREJ (SAL) b621cfb
BuildRequires:  python3-kajiki
54c07e8
BuildRequires:  python3-jinja2
54c07e8
54c07e8
%description
54c07e8
54c07e8
ToscaWidgets is a web widget toolkit for Python to aid in the creation,
54c07e8
packaging and distribution of common view elements normally used in the web.
54c07e8
54c07e8
The tw2.core package is lightweight and intended for run-time use only;
54c07e8
development tools are in tw2.devtools.
54c07e8
54c07e8
54c07e8
%package -n python3-tw2-core
54c07e8
Summary: Web widget creation toolkit based on TurboGears widgets
54c07e8
Requires: python3-webob >= 0.9.7
54c07e8
Requires: python3-simplejson >= 2.0
54c07e8
Requires: python3-decorator
54c07e8
Requires: python3-markupsafe
54c07e8
Requires: python3-speaklater
54c07e8
Requires: python3-paste-deploy
54c07e8
Requires: python3-six
54c07e8
54c07e8
%{?python_provide:%python_provide python3-tw2-core}
54c07e8
54c07e8
%description -n python3-tw2-core
54c07e8
ToscaWidgets is a web widget toolkit for Python to aid in the creation,
54c07e8
packaging and distribution of common view elements normally used in the web.
54c07e8
54c07e8
The tw2.core package is lightweight and intended for run-time use only;
54c07e8
development tools are in tw2.devtools.
54c07e8
54c07e8
This package contains the python3 version of the toolkit
54c07e8
54c07e8
%prep
Jan ONDREJ (SAL) 4065546
%autosetup -n %{modname}-%{version}
54c07e8
54c07e8
%build
Jan ONDREJ (SAL) e5af7d8
# Fix shebang for python3
54c07e8
sed -i '1s=^#!/usr/bin/\(python\|env python\)[0-9.]*=#!%{__python3}=' tw2/core/testbase/xhtmlify.py
54c07e8
%{__python3} setup.py build
54c07e8
54c07e8
%install
54c07e8
%{__python3} setup.py install --skip-build \
54c07e8
    --install-data=%{_datadir} --root=%{buildroot}
54c07e8
54c07e8
%files -n python3-tw2-core
54c07e8
%{!?_licensedir:%global license %%doc}
54c07e8
%license LICENSE.txt
54c07e8
%doc README.rst
54c07e8
%{python3_sitelib}/tw2
54c07e8
%{python3_sitelib}/%{modname}-%{version}*
54c07e8
54c07e8
%changelog
fd27de2
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-14
fd27de2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
fd27de2
ee58463
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-13
ee58463
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
ee58463
9ad067d
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-12
9ad067d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
9ad067d
ca82a5b
* Wed Jun 28 2023 Python Maint <python-maint@redhat.com> - 2.3.0-11
ca82a5b
- Rebuilt for Python 3.12
ca82a5b
6cc9352
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-10
6cc9352
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
6cc9352
90e5f1c
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-9
90e5f1c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
90e5f1c
b163fd6
* Fri Jun 17 2022 Python Maint <python-maint@redhat.com> - 2.3.0-8
b163fd6
- Rebuilt for Python 3.11
b163fd6
Jan ONDREJ (SAL) 0adf6ce
* Thu Apr 21 2022 Ján ONDREJ (SAL) <ondrejj(at)salstar.sk> - 2.3.0-7
Jan ONDREJ (SAL) 0adf6ce
- Removed python-nose and check section according to deprecation of nose
Jan ONDREJ (SAL) 0adf6ce
bb698e7
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-6
bb698e7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
bb698e7
aed00b5
* Tue Jul 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-5
aed00b5
- Second attempt - Rebuilt for
aed00b5
  https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
aed00b5
9a4dd0c
* Mon Jun 07 2021 Python Maint <python-maint@redhat.com> - 2.3.0-4
9a4dd0c
- Rebuilt for Python 3.10
9a4dd0c
6b8b9d9
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 2.3.0-3
6b8b9d9
- Rebuilt for Python 3.10
6b8b9d9
1bb66f3
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-2
1bb66f3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
1bb66f3
Jan ONDREJ (SAL) 51c1d31
* Sat Sep 12 2020 Ján ONDREJ (SAL) <ondrejj(at)salstar.sk> - 2.3.0-1
Jan ONDREJ (SAL) 51c1d31
- Update to upstream
Jan ONDREJ (SAL) 51c1d31
cacd00e
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.9-3
cacd00e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
cacd00e
6fa0665
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 2.2.9-2
6fa0665
- Rebuilt for Python 3.9
6fa0665
Jan ONDREJ (SAL) 4065546
* Wed Mar 25 2020 Ján ONDREJ (SAL) <ondrejj(at)salstar.sk> - 2.2.9-1
Jan ONDREJ (SAL) 4065546
- Update to upstream
Jan ONDREJ (SAL) 4065546
- Enable kajiki support again
Jan ONDREJ (SAL) 4065546
1de5149
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.7-2
1de5149
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
1de5149
Jan ONDREJ (SAL) bc4fb8a
* Tue Dec 17 2019 Ján ONDREJ (SAL) <ondrejj(at)salstar.sk> - 2.2.7-1
Jan ONDREJ (SAL) bc4fb8a
- Update to upstream
Jan ONDREJ (SAL) bc4fb8a
- Removed py3.8 patch, not needed anymore.
Jan ONDREJ (SAL) bc4fb8a
Jan ONDREJ (SAL) 7162640
* Thu Oct 03 2019 Ján ONDREJ (SAL) <ondrejj(at)salstar.sk> - 2.2.6-6
Jan ONDREJ (SAL) 7162640
- Removed unittest2 dependency. Not used anymore.
Jan ONDREJ (SAL) 7162640
- Removed kajiki support because kajiki has broken dependencies
Jan ONDREJ (SAL) 7162640
  in Fedora (python-nine).
Jan ONDREJ (SAL) 7162640
Jan ONDREJ (SAL) 9dee61b
* Mon Sep 02 2019 Ján ONDREJ (SAL) <ondrejj(at)salstar.sk> - 2.2.6-5
Jan ONDREJ (SAL) 9dee61b
- Removed python3-nine as dependency. Not used anymore.
Jan ONDREJ (SAL) 9dee61b
Jan ONDREJ (SAL) aa0c9e5
* Thu Aug 29 2019 Ján ONDREJ (SAL) <ondrejj(at)salstar.sk> - 2.2.6-4
Jan ONDREJ (SAL) aa0c9e5
- Removed python3 support
Jan ONDREJ (SAL) aa0c9e5
Jan ONDREJ (SAL) 2fe745a
* Thu Aug 29 2019 Ján ONDREJ (SAL) <ondrejj(at)salstar.sk> - 2.2.6-3
Jan ONDREJ (SAL) 2fe745a
- Updated source URL to https
Jan ONDREJ (SAL) 2fe745a
Jan ONDREJ (SAL) bba07fc
* Wed Aug 28 2019 Ján ONDREJ (SAL) <ondrejj(at)salstar.sk> - 2.2.6-2
Jan ONDREJ (SAL) bba07fc
- Python 3.8 compatibility patch
Jan ONDREJ (SAL) bba07fc
- Removed extra tokens at end of endif
Jan ONDREJ (SAL) bba07fc
Jan ONDREJ (SAL) e5af7d8
* Mon Aug 26 2019 Ján ONDREJ (SAL) <ondrejj(at)salstar.sk> - 2.2.6-1
Jan ONDREJ (SAL) e5af7d8
- Update to upstream
Jan ONDREJ (SAL) e5af7d8
- Removed mako-unicode patch applied upstream
Jan ONDREJ (SAL) e5af7d8
54c07e8
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.3-15
54c07e8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
54c07e8
54c07e8
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.3-14
54c07e8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
54c07e8
54c07e8
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.3-13
54c07e8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
54c07e8
54c07e8
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 2.2.3-12
54c07e8
- Rebuilt for Python 3.7
54c07e8
54c07e8
* Thu Mar 15 2018 Jan Beran <jberan@redhat.com> - 2.2.3-11
54c07e8
- Fix of python3-tw2-core requires both Python 2 and Python 3 (rhbz #1546817)
54c07e8
54c07e8
* Wed Feb 28 2018 Iryna Shcherbina <ishcherb@redhat.com> - 2.2.3-10
54c07e8
- Update Python 2 dependency declarations to new packaging standards
54c07e8
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
54c07e8
54c07e8
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.2.3-9
54c07e8
- Escape macros in %%changelog
54c07e8
54c07e8
* Tue Oct 17 2017 Petr Viktorin <pviktori@redhat.com> - 2.2.3-8
54c07e8
- Python 2 binary package renamed to python2-tw2-core
54c07e8
54c07e8
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.3-7
54c07e8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
54c07e8
54c07e8
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.3-6
54c07e8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
54c07e8
54c07e8
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 2.2.3-5
54c07e8
- Rebuild for Python 3.6
54c07e8
54c07e8
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.3-4
54c07e8
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
54c07e8
54c07e8
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.3-3
54c07e8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
54c07e8
54c07e8
* Wed Jan  6 2016 Toshio Kuratomi <toshio@fedoraproject.org> - 2.2.3-2
54c07e8
- Python3 subpackage
54c07e8
54c07e8
* Fri Dec 11 2015 Ralph Bean <rbean@redhat.com> - 2.2.3-1
54c07e8
- new version
54c07e8
54c07e8
* Fri Oct 16 2015 Ralph Bean <rbean@redhat.com> - 2.2.2-3
54c07e8
- Apply patch from upstream to fix unicode issues with mako.
54c07e8
54c07e8
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.2-2
54c07e8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
54c07e8
54c07e8
* Fri Feb 20 2015 Ralph Bean <rbean@redhat.com> - 2.2.2-1
54c07e8
- new version
54c07e8
54c07e8
* Fri Feb 20 2015 Ralph Bean <rbean@redhat.com> - 2.2.2-1
54c07e8
- new version
54c07e8
- Further fix rhel6 conditionals.
54c07e8
54c07e8
* Thu Nov 13 2014 Ralph Bean <rbean@redhat.com> - 2.2.1.1-5
54c07e8
- Spec bump to deal with ridiculous epel7 merge.  ;(
54c07e8
54c07e8
* Wed Nov 12 2014 Ralph Bean <rbean@redhat.com> - 2.2.1.1-3
54c07e8
- Update rhel6 conditionals.
54c07e8
54c07e8
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.1.1-2
54c07e8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
54c07e8
54c07e8
* Tue Jan 28 2014 Ralph Bean <rbean@redhat.com> - 2.2.1.1-1
54c07e8
- Latest upstream.
54c07e8
54c07e8
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.5-4
54c07e8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
54c07e8
54c07e8
* Thu Feb 28 2013 Ralph Bean <rbean@redhat.com> - 2.1.5-3
54c07e8
- Patch for python-markupsafe usage on el6.
54c07e8
54c07e8
* Thu Feb 28 2013 Ralph Bean <rbean@redhat.com> - 2.1.5-2
54c07e8
- Added requirement on python-markupsafe.
54c07e8
- Added el6 conditional requirement on python-ordereddict.
54c07e8
54c07e8
* Fri Feb 22 2013 Ralph Bean <rbean@redhat.com> - 2.1.5-1
54c07e8
- Latest upstream
54c07e8
54c07e8
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.5-5
54c07e8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
54c07e8
54c07e8
* Mon Aug 06 2012 Ralph Bean <rbean@redhat.com> - 2.0.5-4
54c07e8
- Test change for fedmsg hook.
54c07e8
54c07e8
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.5-3
54c07e8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
54c07e8
54c07e8
* Thu Jun 07 2012 Ralph Bean <rbean@redhat.com> - 2.0.5-2
54c07e8
- Correct directory ownership.
54c07e8
54c07e8
* Tue Apr 24 2012 Ralph Bean <rbean@redhat.com> - 2.0.5-1
54c07e8
- Packaged latest version of tw2.core which fixes streaming WSGI compliance.
54c07e8
- Removed defattr in the files section.
54c07e8
- Removed clean section.  Not supporting EPEL5.
54c07e8
- Removed references to buildroot.
54c07e8
54c07e8
* Mon Apr 16 2012 Ralph Bean <rbean@redhat.com> - 2.0.4-1
54c07e8
- Packaged latest version of tw2.core which fixes tests on py2.6.
54c07e8
- Added awk line to make sure pkg_resources picks up the right WebOb on el6
54c07e8
- Added dependency on python-unittest2
54c07e8
54c07e8
* Wed Apr 11 2012 Ralph Bean <rbean@redhat.com> - 2.0.3-1
54c07e8
- Packaged the latest release of tw2.core.
54c07e8
- Fixed rpmlint - python-bytecode-without-source
54c07e8
- Fixed rpmlint - non-executable-script
54c07e8
54c07e8
* Tue Apr 10 2012 Ralph Bean <rbean@redhat.com> - 2.0.2-1
54c07e8
- Packaged the latest release of tw2.core.
54c07e8
- Added the %%{?dist} macro to Release:
54c07e8
54c07e8
* Wed Apr 04 2012 Ralph Bean <rbean@redhat.com> - 2.0.1-1
54c07e8
- Update for latest tw2.core release.
54c07e8
54c07e8
* Thu Jun 16 2011 Luke Macken <lmacken@redhat.com> - 2.0-0.1.b4
54c07e8
- Initial package