Name: python-kid Version: 0.9.6 Release: 24%{?dist} Summary: Kid - A simple and pythonic XML template language Group: Applications/Publishing License: MIT URL: http://www.kid-templating.org/ Source0: http://www.kid-templating.org/dist/%{version}/kid-%{version}.tar.gz # 2010-01-10: Upstream is currently unresponsive, but patch qualifies for upstreaming # Escape ]]> to ]]> in serialization.py as required by XML standard: # http://www.w3.org/TR/2006/REC-xml11-20060816/#syntax # Red Hat Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=528729 Patch0: python-kid-0.9.6-escape-gt.patch BuildArch: noarch BuildRequires: python2-devel BuildRequires: python2-setuptools BuildRequires: python3-docutils BuildRequires: make %global _description\ Kid is a simple Python based template language for generating and\ transforming XML vocabularies. Templates are compiled to native Python\ byte-code and may be imported and used like normal Python modules.\ %description %_description %package -n python2-kid Summary: %summary %{?python_provide:%python_provide python2-kid} %description -n python2-kid %_description %prep %setup -q -n kid-%{version} %patch0 -p1 -b .escape-gt %build %py2_build pushd doc sed -i -e 's|rst2html\.py|rst2html|' makefile make popd %install rm -rf $RPM_BUILD_ROOT %{__python2} setup.py install --skip-build --root $RPM_BUILD_ROOT \ --single-version-externally-managed rm -rf $RPM_BUILD_ROOT%{python2_sitelib}/kid/test rm -f $RPM_BUILD_ROOT%{python2_sitelib}/*egg-info/requires.txt # Avoid requiring setuptools chmod 0755 $RPM_BUILD_ROOT%{python2_sitelib}/kid/{run,compile}.py rm -f $RPM_BUILD_ROOT%{_bindir}/* ln -s ../..%{python2_sitelib}/kid/run.py $RPM_BUILD_ROOT%{_bindir}/kid ln -s ../..%{python2_sitelib}/kid/compile.py $RPM_BUILD_ROOT%{_bindir}/kidc python2 /usr/lib/rpm/redhat/pathfix.py -pni "%{__python2} %{py2_shbang_opts}" $RPM_BUILD_ROOT%{python2_sitelib}/kid* %files -n python2-kid %license COPYING %doc HISTORY README doc/*.txt doc/*.css doc/*.html test %{python2_sitelib}/kid* %{_bindir}/* %changelog * Sat May 02 2020 josef radinger - - bump version * Sat May 02 2020 josef radinger - - bump version * Sat May 02 2020 josef radinger - 0.9.6-24 - BuildRequires on python3-docutils - revive - shebang -> python2 - BuildRequires: /usr/bin/pathfix.py * Sat Jul 14 2018 Fedora Release Engineering - 0.9.6-23 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Feb 09 2018 Fedora Release Engineering - 0.9.6-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek - 0.9.6-21 - Python 2 binary package renamed to python2-kid See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 * Wed Aug 09 2017 Iryna Shcherbina - 0.9.6-20 - Add a build-time dependency on python2-devel * Thu Jul 27 2017 Fedora Release Engineering - 0.9.6-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 0.9.6-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Tue Jul 19 2016 Fedora Release Engineering - 0.9.6-17 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Thu Feb 04 2016 Fedora Release Engineering - 0.9.6-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jun 18 2015 Fedora Release Engineering - 0.9.6-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 0.9.6-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Tue Nov 12 2013 Toshio Kuratomi - 0.9.6-13 - Replace BR on python-setuptools-devel with python-setuptools * Sun Aug 04 2013 Fedora Release Engineering - 0.9.6-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Feb 14 2013 Fedora Release Engineering - 0.9.6-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Sat Jul 21 2012 Fedora Release Engineering - 0.9.6-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Sat Jan 14 2012 Fedora Release Engineering - 0.9.6-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Tue Feb 08 2011 Fedora Release Engineering - 0.9.6-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Thu Jul 22 2010 David Malcolm - 0.9.6-7 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild * Sun Jan 10 2010 Till Maas - 0.9.6-6 - Escape ]]> as ]]> in serialization.py to create valid XML - https://bugzilla.redhat.com/show_bug.cgi?id=528729 * Sun Jul 26 2009 Fedora Release Engineering - 0.9.6-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Thu Feb 26 2009 Fedora Release Engineering - 0.9.6-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Sat Nov 29 2008 Ignacio Vazquez-Abrams - 0.9.6-3 - Rebuild for Python 2.6 * Tue Aug 28 2007 Konstantin Ryabitsev - 0.9.6-2 - BR: python-setuptools-devel - Drop explicit BR: python-devel * Fri Aug 17 2007 Konstantin Ryabitsev - 0.9.6-1 - Upstream 0.9.6 * Sun Jan 28 2007 Konstantin Ryabitsev - 0.9.5-1 - Upstream 0.9.5 - Drop the py-def patch * Tue Jan 02 2007 Konstantin Ryabitsev - 0.9.4-2 - Add hotfix for broken py-def (#220843) - Simplify kid and kidc to not require setuptools to run (#220844) * Sun Dec 17 2006 Konstantin Ryabitsev - 0.9.4-1 - Version 0.9.4 - Ghostbusting * Sun Jul 23 2006 Konstantin Ryabitsev - 0.9.3-1 - Version 0.9.3 - Adjusting urls to point to kid-templating.org * Tue Jun 27 2006 Konstantin Ryabitsev - 0.9.2-1 - Version 0.9.2 - BR python-setuptools >= 0.6a11 * Tue May 23 2006 Konstantin Ryabitsev - 0.9.1-3 - Fix 'elementtree requried' regression * Sat May 20 2006 Konstantin Ryabitsev - 0.9.1-2 - Update project URL * Fri May 19 2006 Konstantin Ryabitsev - 0.9.1-1 - Version 0.9.1 * Mon Feb 27 2006 Konstantin Ryabitsev - 0.9-1 - Version 0.9 - Switch to using setuptools. - Handle .egg data. - Don't list python-abi namely -- FC4 and above does it automatically. * Fri Dec 02 2005 Konstantin Ryabitsev - 0.8-1 - Version 0.8 * Fri Nov 11 2005 Konstantin Ryabitsev - 0.7.1-2 - Rebuild. * Thu Nov 10 2005 Konstantin Ryabitsev - 0.7.1-1 - Version 0.7.1 - Avoid setuptools using a patch to use standard distutils - Avoid cruft in doc dir * Mon Jun 13 2005 Konstantin Ryabitsev - 0.6.4-1 - Version 0.6.4 - Disttagging * Sat Apr 16 2005 Seth Vidal 0.6.3-2 - BuildRequires python-elementtree * Tue Mar 29 2005 Konstantin Ryabitsev 0.6.3-2 - Add docs and list files instead of using INSTALLED_FILES (safer) - Trim description a little - Require python-abi - BuildRequire python-devel - Use python_sitelib - Remove test directory from site_packages - Use ghosting for .pyo * Mon Mar 14 2005 Konstantin Ryabitsev 0.6.3-1 - Version 0.6.3 * Thu Mar 10 2005 Konstantin Ryabitsev 0.6.2-1 - Initial build in Fedora Extras format.