2013-01-17 10:45:21 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-Kajiki
|
|
|
|
#
|
2019-03-05 16:39:03 +00:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2013-01-17 10:45:21 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-12-04 13:36:52 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-10-24 11:07:27 +00:00
|
|
|
#
|
2013-01-17 10:45:21 +00:00
|
|
|
|
|
|
|
|
2017-06-30 07:31:25 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2013-01-17 10:45:21 +00:00
|
|
|
Name: python-Kajiki
|
2019-03-05 16:39:03 +00:00
|
|
|
Version: 0.7.2
|
2013-01-17 10:45:21 +00:00
|
|
|
Release: 0
|
2017-07-10 12:34:02 +00:00
|
|
|
Summary: Compiler for Genshi syntax outputting Python bytecode
|
2013-10-24 11:07:27 +00:00
|
|
|
License: MIT
|
2013-01-17 10:45:21 +00:00
|
|
|
Group: Development/Languages/Python
|
2019-03-05 16:39:03 +00:00
|
|
|
URL: https://github.com/nandoflorestan/kajiki
|
2017-06-30 07:31:25 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/K/Kajiki/Kajiki-%{version}.tar.gz
|
|
|
|
BuildRequires: %{python_module Babel}
|
|
|
|
BuildRequires: %{python_module nine}
|
2019-03-05 16:39:03 +00:00
|
|
|
BuildRequires: %{python_module nose}
|
2017-06-30 07:31:25 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2019-03-05 16:39:03 +00:00
|
|
|
BuildRequires: fdupes
|
2017-06-30 07:31:25 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2017-08-24 15:22:27 +00:00
|
|
|
Requires: python-nine
|
2013-01-17 10:45:21 +00:00
|
|
|
BuildArch: noarch
|
2017-06-30 07:31:25 +00:00
|
|
|
%python_subpackages
|
2013-01-17 10:45:21 +00:00
|
|
|
|
|
|
|
%description
|
2017-07-10 12:34:02 +00:00
|
|
|
Kajiki compiles Genshi-like syntax to Python bytecode.
|
|
|
|
|
|
|
|
(Genshi is a Python library parsing, generating, and processing HTML, XML or
|
|
|
|
other textual content for output generation on the web.)
|
2013-01-17 10:45:21 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n Kajiki-%{version}
|
|
|
|
|
|
|
|
%build
|
2017-06-30 07:31:25 +00:00
|
|
|
%python_build
|
2013-01-17 10:45:21 +00:00
|
|
|
|
|
|
|
%install
|
2017-06-30 07:31:25 +00:00
|
|
|
%python_install
|
2019-03-05 16:39:03 +00:00
|
|
|
%python_expand rm -r %{buildroot}%{$python_sitelib}/kajiki/tests
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2013-01-17 10:45:21 +00:00
|
|
|
|
|
|
|
%check
|
2017-06-30 07:31:25 +00:00
|
|
|
%python_exec setup.py test
|
2013-01-17 10:45:21 +00:00
|
|
|
|
2017-06-30 07:31:25 +00:00
|
|
|
%files %{python_files}
|
2018-12-04 17:16:06 +00:00
|
|
|
%license LICENSE.rst
|
|
|
|
%doc README.rst
|
2013-01-17 10:45:21 +00:00
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
%changelog
|