42fef65
Name:           git-publish
42fef65
Version:        1.4.2
42fef65
Release:        1%{?dist}
42fef65
Summary:        Prepare and store patch revisions as git tags
42fef65
License:        MIT
42fef65
URL:            https://github.com/stefanha/git-publish
42fef65
Source0:        %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
42fef65
BuildArch:      noarch
42fef65
Requires:       git-core
42fef65
42fef65
%description
42fef65
git-publish handles repetitive and time-consuming details of managing patch
42fef65
email submission.  It works with individual patches as well as patch series and
42fef65
has support for pull request emails.
42fef65
42fef65
Each revision is stored as a git tag including the cover letter (if any).  This
42fef65
makes it easy to refer back to previous revisions of a patch.  Numbering is
42fef65
handled automatically and the To:/Cc: email addresses are remembered across
42fef65
revisions to save you retyping them.
42fef65
42fef65
Many projects have conventions for submitting patches.  It is possible to
42fef65
encode them as a .gitpublish file and hooks/ scripts.  This automatically uses
42fef65
the right settings and can run a coding style checker or linting tools before
42fef65
emails are sent.
42fef65
42fef65
%prep
42fef65
%autosetup
42fef65
42fef65
# Force Python 3 in recent distros
42fef65
# https://fedoraproject.org/wiki/Packaging:Python#Multiple_Python_Runtimes
42fef65
%if ! (0%{?rhel} && 0%{?rhel} <= 7)
42fef65
sed -i '1c #!%{__python3}' git-publish
42fef65
%endif
42fef65
42fef65
%install
42fef65
mkdir -p %{buildroot}%{_bindir}
42fef65
mkdir -p %{buildroot}%{_datadir}/git-publish/hooks
42fef65
install -p -m 755 git-publish %{buildroot}%{_bindir}/
42fef65
install -p -m 644 hooks/pre-publish-send-email.example %{buildroot}%{_datadir}/git-publish/hooks/
42fef65
42fef65
%files
42fef65
%license LICENSE
42fef65
%doc README.rst
42fef65
%_bindir/git-publish
42fef65
%_datadir/git-publish/hooks/pre-publish-send-email.example
42fef65
42fef65
%changelog
42fef65
* Mon Nov 6 2017 Stefan Hajnoczi <stefanha@gmail.com> - 1.4.2-1
42fef65
- Further Python 2 & 3 character encoding fixes
42fef65
42fef65
* Sat Nov 4 2017 Stefan Hajnoczi <stefanha@gmail.com> - 1.4.1-1
42fef65
- Fix UTF-8 output from git(1) commands
42fef65
42fef65
* Thu Nov 2 2017 Stefan Hajnoczi <stefanha@gmail.com> - 1.4-1
42fef65
- Python 3 support
42fef65
- Report unexpected changes to temporary directory
42fef65
- Fix broken hooks path function
42fef65
42fef65
* Mon Aug 21 2017 Stefan Hajnoczi <stefanha@gmail.com> - 1.3-1
42fef65
- Add 'e' menu command to edit patches
42fef65
- Add --notes options for git-notes(1) users
42fef65
- Replace DEBUG with -v/--verbose option
42fef65
- Fix git_config_with_profile() profile variable lookup
42fef65
- Fix --pull-request error when remote cannot be determined
42fef65
- Support worktrees when invoking hooks
42fef65
- Improve git error handling
42fef65
42fef65
* Wed Mar 1 2017 Stefan Hajnoczi <stefanha@gmail.com> - 1.2-1
42fef65
- Honor git-config(1) pushDefault/pushRemote options
42fef65
- Display git-send-email(1) CC list before sending
42fef65
- Fix git-publish --setup when run outside of a git repo
42fef65
42fef65
* Fri Dec 9 2016 Stefan Hajnoczi <stefanha@gmail.com> - 1.1-1
42fef65
- git-publish 1.1