| 
									
										
										
										
											2023-03-21 08:10:59 +00:00
										 |  |  | #
 | 
					
						
							| 
									
										
										
										
											2023-03-28 07:40:05 +00:00
										 |  |  | # spec file
 | 
					
						
							| 
									
										
										
										
											2023-03-21 08:10:59 +00:00
										 |  |  | #
 | 
					
						
							|  |  |  | # Copyright (c) 2023 SUSE LLC
 | 
					
						
							|  |  |  | #
 | 
					
						
							|  |  |  | # 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 https://bugs.opensuse.org/
 | 
					
						
							|  |  |  | #
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-03-28 07:40:05 +00:00
										 |  |  | %global flavor @BUILD_FLAVOR@%{nil}
 | 
					
						
							|  |  |  | %if "%{flavor}" == "test"
 | 
					
						
							|  |  |  | %define psuffix -test
 | 
					
						
							|  |  |  | %bcond_without test
 | 
					
						
							|  |  |  | %else
 | 
					
						
							|  |  |  | %define psuffix %{nil}
 | 
					
						
							|  |  |  | %bcond_with test
 | 
					
						
							|  |  |  | %endif
 | 
					
						
							|  |  |  | Name:           python-mkdocs-material-extensions%{psuffix}
 | 
					
						
							| 
									
										
										
										
											2023-03-21 08:10:59 +00:00
										 |  |  | Version:        1.1.1
 | 
					
						
							|  |  |  | Release:        0
 | 
					
						
							|  |  |  | Summary:        Extension pack for Python Markdown
 | 
					
						
							|  |  |  | License:        MIT
 | 
					
						
							|  |  |  | URL:            https://github.com/facelessuser/mkdocs-material-extensions
 | 
					
						
							|  |  |  | Source:         https://files.pythonhosted.org/packages/source/m/mkdocs_material_extensions/mkdocs_material_extensions-%{version}.tar.gz
 | 
					
						
							|  |  |  | BuildRequires:  %{python_module hatch}
 | 
					
						
							|  |  |  | BuildRequires:  %{python_module pip}
 | 
					
						
							|  |  |  | BuildRequires:  %{python_module setuptools}
 | 
					
						
							| 
									
										
										
										
											2023-03-28 07:40:05 +00:00
										 |  |  | BuildRequires:  python-rpm-macros
 | 
					
						
							|  |  |  | %if %{with test}
 | 
					
						
							| 
									
										
										
										
											2023-03-21 08:10:59 +00:00
										 |  |  | # SECTION test requirements
 | 
					
						
							|  |  |  | BuildRequires:  %{python_module beautifulsoup4}
 | 
					
						
							|  |  |  | BuildRequires:  %{python_module Markdown}
 | 
					
						
							|  |  |  | BuildRequires:  %{python_module mkdocs-material}
 | 
					
						
							| 
									
										
										
										
											2023-03-28 07:40:05 +00:00
										 |  |  | BuildRequires:  %{python_module pytest}
 | 
					
						
							| 
									
										
										
										
											2023-03-21 08:10:59 +00:00
										 |  |  | # /SECTION
 | 
					
						
							| 
									
										
										
										
											2023-03-28 07:40:05 +00:00
										 |  |  | %endif
 | 
					
						
							| 
									
										
										
										
											2023-03-21 08:10:59 +00:00
										 |  |  | BuildRequires:  fdupes
 | 
					
						
							|  |  |  | BuildArch:      noarch
 | 
					
						
							|  |  |  | %python_subpackages
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | %description
 | 
					
						
							|  |  |  | Extension pack for Python Markdown
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | %prep
 | 
					
						
							|  |  |  | %setup -q -n mkdocs_material_extensions-%{version}
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | %build
 | 
					
						
							|  |  |  | %pyproject_wheel
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | %install
 | 
					
						
							| 
									
										
										
										
											2023-03-28 07:40:05 +00:00
										 |  |  | %if %{without test}
 | 
					
						
							| 
									
										
										
										
											2023-03-21 08:10:59 +00:00
										 |  |  | %pyproject_install
 | 
					
						
							|  |  |  | %python_expand %fdupes %{buildroot}%{$python_sitelib}
 | 
					
						
							| 
									
										
										
										
											2023-03-28 07:40:05 +00:00
										 |  |  | %endif
 | 
					
						
							| 
									
										
										
										
											2023-03-21 08:10:59 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | %check
 | 
					
						
							| 
									
										
										
										
											2023-03-28 07:40:05 +00:00
										 |  |  | %if %{with test}
 | 
					
						
							| 
									
										
										
										
											2023-03-21 08:10:59 +00:00
										 |  |  | # skip TestEmoji.test_twemoji that needs internet access
 | 
					
						
							|  |  |  | %pytest -k 'not test_twemoji'
 | 
					
						
							| 
									
										
										
										
											2023-03-28 07:40:05 +00:00
										 |  |  | %endif
 | 
					
						
							| 
									
										
										
										
											2023-03-21 08:10:59 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-03-28 07:40:05 +00:00
										 |  |  | %if %{without test}
 | 
					
						
							| 
									
										
										
										
											2023-03-21 08:10:59 +00:00
										 |  |  | %files %{python_files}
 | 
					
						
							|  |  |  | %doc README.md changelog.md
 | 
					
						
							|  |  |  | %license LICENSE.md
 | 
					
						
							|  |  |  | %{python_sitelib}/materialx
 | 
					
						
							|  |  |  | %{python_sitelib}/mkdocs_material_extensions-%{version}.dist-info
 | 
					
						
							| 
									
										
										
										
											2023-03-28 07:40:05 +00:00
										 |  |  | %endif
 | 
					
						
							| 
									
										
										
										
											2023-03-21 08:10:59 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | %changelog
 |