forked from pool/python-zope.schema
		
	
		
			
	
	
		
			68 lines
		
	
	
		
			2.2 KiB
		
	
	
	
		
			RPMSpec
		
	
	
	
	
	
		
		
			
		
	
	
			68 lines
		
	
	
		
			2.2 KiB
		
	
	
	
		
			RPMSpec
		
	
	
	
	
	
|   | #
 | ||
|  | # spec file for package python-zope.schema-doc
 | ||
|  | #
 | ||
|  | # Copyright (c) 2017 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-zope.schema-doc
 | ||
|  | Version:        4.4.2
 | ||
|  | Release:        0
 | ||
|  | Summary:        Zope interface extension for defining data schemas
 | ||
|  | License:        ZPL-2.1
 | ||
|  | Group:          Development/Languages/Python
 | ||
|  | Url:            https://pypi.python.org/pypi/zope.schema
 | ||
|  | Source:         https://files.pythonhosted.org/packages/source/z/zope.schema/zope.schema-%{version}.tar.gz
 | ||
|  | BuildRequires:  %{python_module setuptools}
 | ||
|  | BuildRequires:  %{python_module zope.schema = %{version}}
 | ||
|  | BuildRequires:  python-rpm-macros
 | ||
|  | # SECTION documentation requirements
 | ||
|  | BuildRequires:  python3-Sphinx
 | ||
|  | # /SECTION
 | ||
|  | # SECTION test requirements
 | ||
|  | BuildRequires:  %{python_module zope.event}
 | ||
|  | BuildRequires:  %{python_module zope.interface >= 3.6.0}
 | ||
|  | BuildRequires:  %{python_module zope.testing}
 | ||
|  | BuildRequires:  %{python_module zope.testrunner}
 | ||
|  | # /SECTION
 | ||
|  | Requires:       python-zope.event
 | ||
|  | Requires:       python-zope.interface >= 3.6.0
 | ||
|  | Provides:       %{python_module zope.schema-doc = %{version}}
 | ||
|  | BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 | ||
|  | BuildArch:      noarch
 | ||
|  | 
 | ||
|  | %description
 | ||
|  | Contains documentation for python-zope-schema
 | ||
|  | 
 | ||
|  | %prep
 | ||
|  | %setup -q -n zope.schema-%{version}
 | ||
|  | 
 | ||
|  | %build
 | ||
|  | # Generate HTML documentation
 | ||
|  | %{_python_use_flavor python3}
 | ||
|  | %__python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo
 | ||
|  | 
 | ||
|  | %install
 | ||
|  | # nothing to do
 | ||
|  | 
 | ||
|  | %check
 | ||
|  | %python_exec %{_bindir}/zope-testrunner --test-path=src -v
 | ||
|  | 
 | ||
|  | %files
 | ||
|  | %defattr(-,root,root,-)
 | ||
|  | %doc build/sphinx/html/
 | ||
|  | 
 | ||
|  | %changelog
 |