forked from pool/python-moban
		
	
		
			
	
	
		
			80 lines
		
	
	
		
			2.7 KiB
		
	
	
	
		
			RPMSpec
		
	
	
	
	
	
		
		
			
		
	
	
			80 lines
		
	
	
		
			2.7 KiB
		
	
	
	
		
			RPMSpec
		
	
	
	
	
	
|   | #
 | ||
|  | # spec file for package python-moban
 | ||
|  | #
 | ||
|  | # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 | ||
|  | #
 | ||
|  | # 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.
 | ||
|  | 
 | ||
|  | # Please submit bugfixes or comments via http://bugs.opensuse.org/
 | ||
|  | 
 | ||
|  | 
 | ||
|  | %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 | ||
|  | Name:           python-moban
 | ||
|  | Version:        0.3.8
 | ||
|  | Release:        0
 | ||
|  | License:        MIT
 | ||
|  | Summary:        Yet another jinja2 cli command for static text generation
 | ||
|  | Url:            https://github.com/moremoban/moban
 | ||
|  | Group:          Development/Languages/Python
 | ||
|  | Source:         https://files.pythonhosted.org/packages/source/m/moban/moban-%{version}.tar.gz
 | ||
|  | BuildRequires:  python-rpm-macros
 | ||
|  | BuildRequires:  %{python_module setuptools}
 | ||
|  | # SECTION test requirements
 | ||
|  | BuildRequires:  git-core
 | ||
|  | BuildRequires:  %{python_module pip}
 | ||
|  | BuildRequires:  %{python_module nose}
 | ||
|  | BuildRequires:  %{python_module mock}
 | ||
|  | # Package dependencies
 | ||
|  | BuildRequires:  %{python_module ruamel.yaml >= 0.15.80}
 | ||
|  | BuildRequires:  %{python_module Jinja2 >= 2.8}
 | ||
|  | BuildRequires:  %{python_module crayons >= 0.1.2}
 | ||
|  | BuildRequires:  %{python_module lml >= 0.0.7}
 | ||
|  | # /SECTION
 | ||
|  | BuildRequires:  fdupes
 | ||
|  | BuildArch:      noarch
 | ||
|  | Requires:       git-core
 | ||
|  | Requires:       python-ruamel.yaml >= 0.15.80
 | ||
|  | Requires:       python-Jinja2 >= 2.8
 | ||
|  | Requires:       python-crayons >= 0.1.2
 | ||
|  | Requires:       python-lml >= 0.0.7
 | ||
|  | 
 | ||
|  | %python_subpackages
 | ||
|  | 
 | ||
|  | %description
 | ||
|  | moban - 模板 Yet another jinja2 cli command for static text generation.
 | ||
|  | 
 | ||
|  | moban brings the high performance template engine (JINJA2) for web into
 | ||
|  | static text generation. It is used in pyexcel project to keep documentation
 | ||
|  | consistent across the documentations of individual libraries.
 | ||
|  | 
 | ||
|  | %prep
 | ||
|  | %setup -q -n moban-%{version}
 | ||
|  | 
 | ||
|  | %build
 | ||
|  | %python_build
 | ||
|  | 
 | ||
|  | %install
 | ||
|  | %python_install
 | ||
|  | %python_expand %fdupes %{buildroot}%{$python_sitelib}
 | ||
|  | 
 | ||
|  | %check
 | ||
|  | # test_level_9 depends on package pypi-mobans-pkg
 | ||
|  | # test_level_10 depends on access to github.com
 | ||
|  | # test_level_11 depends on moban-handlebars
 | ||
|  | %python_exec %{_bindir}/nosetests --with-doctest --doctest-extension=.rst -e 'test_level_(9|10|11)' README.rst tests docs moban
 | ||
|  | 
 | ||
|  | %files %{python_files}
 | ||
|  | %{python_sitelib}/*
 | ||
|  | %license LICENSE
 | ||
|  | %doc README.rst CHANGELOG.rst
 | ||
|  | %python3_only %{_bindir}/moban
 | ||
|  | 
 | ||
|  | %changelog
 |