42fef65
Name:           git-publish
5a7d0bf
Version:        1.8.1
bb43b36
Release:        2%{?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
9c04efc
%if (0%{?rhel} && 0%{?rhel} <= 7)
9c04efc
BuildRequires:  python2-devel
9c04efc
%else
9c04efc
BuildRequires:  python3-devel
9c04efc
%endif
5e614ab
BuildRequires:  perl-podlators
e669fcf
Requires:       git-core git-email
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
5e614ab
%build
5e614ab
pod2man --center "git-publish Documentation" --release "%{version}" git-publish.pod git-publish.1
5e614ab
42fef65
%install
42fef65
mkdir -p %{buildroot}%{_bindir}
5e614ab
mkdir -p %{buildroot}%{_mandir}/man1
42fef65
mkdir -p %{buildroot}%{_datadir}/git-publish/hooks
42fef65
install -p -m 755 git-publish %{buildroot}%{_bindir}/
5e614ab
install -p -m 644 git-publish.1 %{buildroot}%{_mandir}/man1/
42fef65
install -p -m 644 hooks/pre-publish-send-email.example %{buildroot}%{_datadir}/git-publish/hooks/
42fef65
42fef65
%files
42fef65
%license LICENSE
42fef65
%_bindir/git-publish
5e614ab
%_mandir/man1/git-publish.1*
42fef65
%_datadir/git-publish/hooks/pre-publish-send-email.example
42fef65
42fef65
%changelog
bb43b36
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.1-2
bb43b36
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
bb43b36
5a7d0bf
* Thu May 5 2022 Stefan Hajnoczi <stefanha@gmail.com> - 1.8.1-1
5a7d0bf
- Fix shell metacharacter regression with cccmd
5a7d0bf
829d02f
* Sat Apr 16 2022 Stefan Hajnoczi <stefanha@gmail.com> - 1.8.0-1
829d02f
- Fixed character encoding when invoking git, editors, etc.
829d02f
- Replace NamedTemporaryFile usage since it does not work on Windows
829d02f
- Use the git's mbox format variant so that line endings are correct in
829d02f
  emails
829d02f
- Use git format-patch --cover-from-description=none so cover letters
829d02f
  are always populated correctly by git-publish
829d02f
- Print an error when invoked outside a git repo
829d02f
112ac95
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.0-3
112ac95
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
112ac95
0005811
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.0-2
0005811
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
0005811
f36dfd0
* Wed Mar 10 2021 Stefan Hajnoczi <stefanha@gmail.com> - 1.7.0-1
f36dfd0
- Add parameter "--separate-send/-S" for better email threading when resending
f36dfd0
  part of a patch series
f36dfd0
- Windows fixes
f36dfd0
- Fix --no-check-url error message output
f36dfd0
- Email encoding fixes
f36dfd0
22f60ca
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.1-3
22f60ca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
22f60ca
319ddf9
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.1-2
319ddf9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
319ddf9
a120a34
* Mon Mar 30 2020 Stefan Hajnoczi <stefanha@gmail.com> - 1.6.1-1
a120a34
- Fix Subject: line wrap
a120a34
- Use --batch-size when using --relogin-delay
a120a34
7e00359
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.0-2
7e00359
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
7e00359
0d7ebf2
* Fri Jan 3 2020 Stefan Hajnoczi <stefanha@gmail.com> - 1.6.0-1
0d7ebf2
- Add --add-header option for adding git-format-patch(1) email headers
0d7ebf2
- Allow git-publish --edit during rebase
0d7ebf2
- Fix --keyid for specifying a GPG key
0d7ebf2
- Fix --edit in worktree
0d7ebf2
- Fix configuration file precedence (.gitpublish, .git/config, ~/.gitconfig)
0d7ebf2
- Fix --no-cover-letter with empty tag messages
0d7ebf2
- Python 3 fixes
0d7ebf2
0fe4091
* Thu Oct 3 2019 Stefan Hajnoczi <stefanha@gmail.com> - 1.5.1-1
0fe4091
- Fix always-on --no-binary parameter
0fe4091
- Include git command-line in error messages
0fe4091
- Print git-format-patch(1) errors
0fe4091
- Print an error when publishing a base branch (like 'master')
0fe4091
751c555
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-2
751c555
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
751c555
a790883
* Sat Apr 20 2019 Stefan Hajnoczi <stefanha@gmail.com> - 1.5.0-1
a790883
- Add --keyid parameter
a790883
- Add --no-binary parameter
a790883
- Fix character set issues by honoring the local encoding
a790883
d2f2c24
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.4-5
d2f2c24
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
d2f2c24
c8ad1f5
* Mon Oct 29 2018 Stefan Hajnoczi <stefanha@gmail.com> - 1.4.4-4
c8ad1f5
- Add missing git-email package dependency
c8ad1f5
9960c6e
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.4-3
9960c6e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
9960c6e
00bdb89
* Tue Jun 19 2018 Miro HronĨok <mhroncok@redhat.com> - 1.4.4-2
00bdb89
- Rebuilt for Python 3.7
00bdb89
7150cf8
* Mon Jun 18 2018 Stefan Hajnoczi <stefanha@gmail.com> - 1.4.4-1
7150cf8
- Merge To: list but offer --override-to to stop this behavior
7150cf8
- Add --blurb-template for cover-letter templates
7150cf8
- Pass through extra arguments to git-format-patch(1)
7150cf8
- Add missing UTF-8 encoding for 's'elect menu item
7150cf8
- Don't treat config strings as lists in Python 3
7150cf8
5e614ab
* Wed Apr 18 2018 Stefan Hajnoczi <stefanha@gmail.com> - 1.4.3-1
5e614ab
- Add 's' menu command to select a subset of patches to send
5e614ab
- Use UTF-8 encoding for annotated tags
5e614ab
- Use a cover letter by default for pull requests
5e614ab
- Convert README.rst to git-publish.pod man page
5e614ab
- Add --no-sign-pull option to skip pull request signing
5e614ab
- Run cccmd in the top-level directory
5e614ab
- Show meaningful error message when run outside top-level directory
5e614ab
381737e
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.2-3
381737e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
381737e
41a7a51
* Wed Nov 8 2017 Stefan Hajnoczi <stefanha@gmail.com> - 1.4.2-2
41a7a51
- Add missing BuildRequires: pythonX-devel
41a7a51
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