| |
@@ -1,58 +1,42 @@
|
| |
- # Enable Python 3 only for Fedora
|
| |
- %global with_python3 1
|
| |
-
|
| |
Name: git-review
|
| |
- Version: 1.28.0
|
| |
- Release: 10%{?dist}
|
| |
+ Version: 2.2.0
|
| |
+ Release: 2%{?dist}
|
| |
Summary: A Git helper for integration with Gerrit
|
| |
|
| |
License: ASL 2.0
|
| |
- URL: https://opendev.org/opendev/%{name}
|
| |
- Source0: http://tarballs.openstack.org/%{name}/%{name}-%{version}.tar.gz
|
| |
+ URL: https://opendev.org/opendev/git-review
|
| |
+ # Created by:
|
| |
+ # $ git clone https://opendev.org/opendev/git-review.git
|
| |
+ # $ cd git-review
|
| |
+ # $ git checkout 2.2.0
|
| |
+ # $ python setup.py sdist
|
| |
+ # $ cp dist/git-review-2.2.0.tar.gz ..
|
| |
+ Source0: git-review-%{version}.tar.gz
|
| |
|
| |
BuildArch: noarch
|
| |
|
| |
- %if 0%{?with_python3}
|
| |
BuildRequires: python3-devel
|
| |
BuildRequires: python3-pbr
|
| |
BuildRequires: python3-setuptools
|
| |
- %else
|
| |
- BuildRequires: python2-devel
|
| |
- BuildRequires: python2-pbr
|
| |
- BuildRequires: python2-setuptools
|
| |
- %endif
|
| |
|
| |
Requires: git
|
| |
- %if 0%{?with_python3}
|
| |
Requires: python3-requests
|
| |
Requires: python3-setuptools
|
| |
- %else
|
| |
- Requires: python2-requests
|
| |
- Requires: python2-setuptools
|
| |
- %endif
|
| |
|
| |
%description
|
| |
- An extension for source control system Git that creates and manages review
|
| |
- requests in the patch management system Gerrit. It replaces the rfc.sh script.
|
| |
+ An extension for source control system Git that creates and manages
|
| |
+ review requests in the patch management system Gerrit. It replaces the
|
| |
+ rfc.sh script.
|
| |
|
| |
%prep
|
| |
%setup -q
|
| |
|
| |
%build
|
| |
- %if 0%{?with_python3}
|
| |
%py3_build
|
| |
- %else
|
| |
- %py2_build
|
| |
- %endif
|
| |
sed -i 's/\r//' LICENSE
|
| |
|
| |
%install
|
| |
- %if 0%{?with_python3}
|
| |
%py3_install
|
| |
- %else
|
| |
- %py2_install
|
| |
- %endif
|
| |
-
|
| |
mkdir -p %{buildroot}%{_sysconfdir}/%{name}/
|
| |
|
| |
# We do not save ".gitreview" as dot.gitreview because the man page has it too.
|
| |
@@ -66,15 +50,20 @@
|
| |
%{_bindir}/git-review
|
| |
%{_mandir}/man1/git-review.1.gz
|
| |
# Our package name is git-review, but setup.py installs with underscore.
|
| |
- %if 0%{?with_python3}
|
| |
%{python3_sitelib}/git_review/
|
| |
%{python3_sitelib}/git_review-%{version}-py%{python3_version}*.egg-info/
|
| |
- %else
|
| |
- %{python2_sitelib}/git_review/
|
| |
- %{python2_sitelib}/git_review-%{version}-py%{python2_version}*.egg-info/
|
| |
- %endif
|
| |
|
| |
%changelog
|
| |
+ * Mon Jan 10 2022 Terje Rosten <terje.rosten@ntnu.no> - 2.2.0-2
|
| |
+ - Use script to create tarball to avoid PyPi
|
| |
+
|
| |
+ * Fri Dec 17 2021 Terje Rosten <terje.rosten@ntnu.no> - 2.2.0-1
|
| |
+ - Update to 2.2.0 (needed by git 2.34.0+)
|
| |
+ - Only Python 3 is supported
|
| |
+ - Releases is done on pypi
|
| |
+ - Avoid macro in url, makes cut and paste hard
|
| |
+ - Make lines shorter than 80 chars
|
| |
+
|
| |
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.28.0-10
|
| |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
| |
|
| |