Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:crameleon:misc
python-junitparser
python-junitparser.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-junitparser.spec of Package python-junitparser
# # spec file for package python-junitparser # # Copyright (c) 2024 SUSE LLC # Copyright (c) 2024 Georg Pfuetzenreuter <mail+rpm@georg-pfuetzenreuter.net> # # 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/ # %define appname junitparser %global flavor @BUILD_FLAVOR@%{nil} %if "%{flavor}" == "test" %define psuffix -test %bcond_without test %else %define psuffix %{nil} %bcond_with test %endif Name: python-%{appname}%{psuffix} Version: 3.1.2 Release: 0 Summary: Parser for JUnit/xUnit XML files License: Apache-2.0 Group: Development/Languages/Python URL: https://junitparser.readthedocs.io/en/latest Source: %{appname}-%{version}.tar.gz BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} BuildRequires: %{pythons} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires(post): update-alternatives Requires(postun): update-alternatives Provides: %{appname} BuildArch: noarch %if %{with test} BuildRequires: %{python_module %{appname}} BuildRequires: %{python_module pytest} BuildRequires: glibc-locale %endif %python_subpackages %description junitparser handles JUnit/xUnit Result XML files. Use it to parse and manipulate existing Result XML files, or create new JUnit/xUnit result XMLs from scratch. %prep %autosetup -n %{appname}-%{version} %build %if !%{with test} %pyproject_wheel %endif %install %if !%{with test} %pyproject_install %python_clone -a %{buildroot}%{_bindir}/%{appname} %python_expand %fdupes %{buildroot}%{$python_sitelib}/%{appname} %endif %if %{with test} %check %pytest tests %endif %post %python_install_alternative %{appname} %postun %python_uninstall_alternative %{appname} %if !%{with test} %files %{python_files} %license LICENSE %doc README.rst %python_alternative %{_bindir}/%{appname} %dir %{python_sitelib}/%{appname} %{python_sitelib}/%{appname}/*.py %if 0%{?suse_version} > 1600 %{python_sitelib}/%{appname}/py.typed %endif %pycache_only %{python_sitelib}/%{appname}/__pycache__ %{python_sitelib}/%{appname}-%{version}.dist-info %endif %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor