## START: Set by rpmautospec
## (rpmautospec version 0.7.3)
## RPMAUTOSPEC: autorelease, autochangelog
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
    release_number = 1;
    base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
    print(release_number + base_release_number - 1);
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
## END: Set by rpmautospec

Name:           git-imerge
Version:        1.2.0
Release:        %autorelease
Summary:        Incremental merge and rebase for Git
License:        GPL-2.0-or-later
URL:            https://github.com/mhagger/git-imerge
Source0:        %{pypi_source}

BuildArch:      noarch

BuildRequires:  pkgconfig(bash-completion)
BuildRequires:  git-core
BuildRequires:  python3-devel

Requires:       git-core

%description
Performs a merge between two branches incrementally. If conflicts are
encountered, figures out exactly which pairs of commits conflict, and presents
the user with one pairwise conflict at a time for resolution.


%prep
%autosetup -p1


%generate_buildrequires
%pyproject_buildrequires -t


%build
%pyproject_wheel


%install
%pyproject_install


%check
%tox


%files
%license COPYING
%doc README.md
%{_bindir}/%{name}
%pycached %{python3_sitelib}/gitimerge.py
%{python3_sitelib}/git_imerge-%{version}.dist-info/
%exclude %{python3_sitelib}%{_datadir}/


%changelog
## START: Generated by rpmautospec
* Tue Oct 29 2024 John Doe <packager@example.com> - 1.2.0-1
- Uncommitted changes
## END: Generated by rpmautospec