Blame python-tcx2gpx.spec

3f15565
%bcond_without tests
3f15565
3f15565
%global _description %{expand:
3f15565
This module converts the Garmin tcx GPS file format to the
3f15565
more commonly used gpx file format. Both formats are a form
3f15565
of XML but there are some fields in the former that are not
3f15565
present in the later. It uses two packages to do the grunt
3f15565
work tcxparser and gpxpy.}
3f15565
3f15565
Name:           python-tcx2gpx
3f15565
Version:        0.1.4
ca241b8
Release:        5%{?dist}
3f15565
Summary:        Convert Garmin TPX to GPX
3f15565
3f15565
License:        GPL-3.0-only
3f15565
URL:            https://gitlab.com/nshephard/tcx2gpx
3f15565
Source0:        %{pypi_source tcx2gpx}
3f15565
BuildArch:      noarch
3f15565
# remove linters and development dependencies
3f15565
Patch:          0001-Remove-linters.patch
3f15565
3f15565
# Do not install tests in site-packages (fix #9)
3f15565
# https://gitlab.com/nshephard/tcx2gpx/-/merge_requests/19
3f15565
#   Fixes:
3f15565
# Tests are installed directly in site-packages
3f15565
# https://gitlab.com/nshephard/tcx2gpx/-/issues/9
3f15565
#   Rebased on 0.1.4 and to apply to the setup.cfg in the PyPI sdist, which has
3f15565
#   different whitespace than the one in git.
3f15565
Patch:          0001-Do-not-install-tests-in-site-packages-fix-9.patch
3f15565
3f15565
%description %_description
3f15565
3f15565
%package -n python3-tcx2gpx
3f15565
Summary:        %{summary}
3f15565
3f15565
BuildRequires:  python3-devel
3f15565
3f15565
%if %{with tests}
3f15565
BuildRequires:  python3dist(pytest)
3f15565
%endif
3f15565
3f15565
%description -n python3-tcx2gpx %_description
3f15565
3f15565
%prep
3f15565
%autosetup -p1 -n tcx2gpx-%{version}
3f15565
3f15565
%generate_buildrequires
3f15565
%pyproject_buildrequires
3f15565
3f15565
%build
3f15565
%pyproject_wheel
3f15565
3f15565
%install
3f15565
%pyproject_install
3f15565
%pyproject_save_files tcx2gpx
3f15565
3f15565
%check
3f15565
%if %{with tests}
3f15565
%pytest
3f15565
%endif
3f15565
# additional test
3f15565
%pyproject_check_import
3f15565
3f15565
%files -n python3-tcx2gpx -f %{pyproject_files}
3f15565
%doc README.md
3f15565
3f15565
%changelog
ca241b8
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.4-5
ca241b8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
ca241b8
77b76ec
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.4-4
77b76ec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
77b76ec
55085d8
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.4-3
55085d8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
55085d8
73e277d
* Wed Jun 14 2023 Python Maint <python-maint@redhat.com> - 0.1.4-2
73e277d
- Rebuilt for Python 3.12
73e277d
3f15565
* Mon Feb 20 2023 Iztok Fister Jr. <iztokf AT fedoraproject DOT org> - 0.1.4-1
3f15565
- Initial package