python-kid/python-kid-0.6.spec

Name: python-kid
Summary: Simple and pythonic XML template language
Version: 0.6.3
Release: 1.2
License: MIT
Group: Development/Libraries
URL: http://www.lesscode.org/projects/kid/
Description: Kid is a simple Python based template language for generating and transforming XML vocabularies. Kid was spawned as a result of a kinky love triangle between XSLT, TAL, and PHP.

CentOS 7 x86_64

The build could not start because of the following missing build requirements:

Build Status

CentOS 6 x86_64

The build could not start because of the following missing build requirements:

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: dag

%define python_version %(%{__python} -c 'import sys; print sys.version.split(" ")[0]')
%define python_sitelib %(%{__python} -c 'from distutils import sysconfig; print sysconfig.get_python_lib()')

%define real_name kid

Summary: Simple and pythonic XML template language
Name: python-kid
Version: 0.6.3
Release: 1.2%{?dist}
License: MIT
Group: Development/Libraries
URL: http://www.lesscode.org/projects/kid/

Source: http://lesscode.org/dist/kid/kid-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildArch: noarch
BuildRequires: python >= 2.2, python-elementtree
Requires: python >= %{python_version},  python-elementtree

%description
Kid is a simple Python based template language for generating and
transforming XML vocabularies. Kid was spawned as a result of a kinky love
triangle between XSLT, TAL, and PHP.

%prep
%setup -n %{real_name}-%{version}

%build
%{__python} setup.py build

%install
%{__rm} -rf %{buildroot}
%{__python} setup.py install -O1 --skip-build --root="%{buildroot}" --prefix="%{_prefix}"

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc COPYING HISTORY README doc/ examples/
%{_bindir}/kid
%{_bindir}/kidc
%{python_sitelib}/kid/

%changelog
* Sat Apr 08 2006 Dries Verachtert <dries@ulyssis.org> - 0.6.3-1.2
- Rebuild for Fedora Core 5.

* Mon May 09 2005 Dag Wieers <dag@wieers.com> - 0.6.3-1
- Initial package. (using DAR)