Blob Blame History Raw
%bcond_without tests

%global _description %{expand:
This module converts the Garmin tcx GPS file format to the
more commonly used gpx file format. Both formats are a form
of XML but there are some fields in the former that are not
present in the later. It uses two packages to do the grunt
work tcxparser and gpxpy.}

Name:           python-tcx2gpx
Version:        0.1.4
Release:        1%{?dist}
Summary:        Convert Garmin TPX to GPX

License:        GPL-3.0-only
Source0:        %{pypi_source tcx2gpx}
BuildArch:      noarch
# remove linters and development dependencies
Patch:          0001-Remove-linters.patch

# Do not install tests in site-packages (fix #9)
#   Fixes:
# Tests are installed directly in site-packages
#   Rebased on 0.1.4 and to apply to the setup.cfg in the PyPI sdist, which has
#   different whitespace than the one in git.
Patch:          0001-Do-not-install-tests-in-site-packages-fix-9.patch

%description %_description

%package -n python3-tcx2gpx
Summary:        %{summary}

BuildRequires:  python3-devel

%if %{with tests}
BuildRequires:  python3dist(pytest)

%description -n python3-tcx2gpx %_description

%autosetup -p1 -n tcx2gpx-%{version}



%pyproject_save_files tcx2gpx

%if %{with tests}
# additional test

%files -n python3-tcx2gpx -f %{pyproject_files}

* Mon Feb 20 2023 Iztok Fister Jr. <iztokf AT fedoraproject DOT org> - 0.1.4-1
- Initial package