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