2019-01-22 08:56:27 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-pybars3
|
|
|
|
#
|
2020-03-19 13:54:42 +00:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2019-01-22 08:56:27 +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.
|
|
|
|
|
2020-03-19 13:54:42 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2019-01-22 08:56:27 +00:00
|
|
|
|
|
|
|
%define base_name pybars3
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
Name: python-%{base_name}
|
2020-03-19 13:54:42 +00:00
|
|
|
Version: 0.9.7
|
2019-01-22 08:56:27 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Handlebarsjs templating for Python 3 and 2
|
2020-03-19 13:54:42 +00:00
|
|
|
License: LGPL-3.0-only
|
2019-01-22 08:56:27 +00:00
|
|
|
Group: Development/Languages/Python
|
2020-03-19 13:54:42 +00:00
|
|
|
URL: https://github.com/wbond/%{base_name}
|
2019-01-22 08:56:27 +00:00
|
|
|
Source: https://github.com/wbond/%{base_name}/archive/%{version}.tar.gz
|
|
|
|
BuildRequires: %{python_module PyMeta3 >= 0.5.1}
|
2020-03-19 13:54:42 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2019-01-22 08:56:27 +00:00
|
|
|
BuildRequires: fdupes
|
2020-03-19 13:54:42 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2019-01-22 08:56:27 +00:00
|
|
|
Requires: python-PyMeta3 >= 0.5.1
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
Pybars3 provides a template system for Python which is compatible with
|
|
|
|
Handlebars.js. It is a fork of the pybars project that adds Python 3
|
|
|
|
compatibility and numerous features from Handlebars.js 2.0.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n pybars3-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
|
|
|
%python_exec tests.py
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%license LICENSE
|
|
|
|
%doc readme.md changelog.md
|
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
%changelog
|