Compare commits

...

24 Commits

Author SHA1 Message Date
Fedora Release Engineering 6df4896829 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-02-02 11:35:38 +00:00
Neal Gompa a488e997ab Fix regex substitution issues with Python 3.7 (rhbz#1651954) 2018-11-28 23:10:30 -05:00
Neal Gompa e47f8797e3 Actually add the patch 2018-09-16 07:04:12 -04:00
Neal Gompa f43651e736 Fix regex related deprecation warnings (rhbz#1598089) 2018-09-16 07:03:23 -04:00
Fedora Release Engineering 3db610549f - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-07-14 03:44:04 +00:00
Fedora Release Engineering d65daa3d50 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-02-09 13:19:09 +00:00
Fedora Release Engineering 154304be4d - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild 2017-07-27 13:16:48 +00:00
Fedora Release Engineering 98732e8e31 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild 2017-02-11 11:51:13 +00:00
Ville Skyttä be5fa647cd Update to 8.10 2017-01-14 13:35:08 +02:00
Ville Skyttä d05045c447 Point URLs to pagure 2017-01-14 13:34:18 +02:00
Ville Skyttä 0032c5270d Fix non-fedora python3 bcond 2017-01-14 13:34:07 +02:00
Ville Skyttä 7fba799422 Clean up obsolete Fedora version check 2017-01-14 13:33:47 +02:00
Miro Hrončok 4f5745c71e Rebuild for Python 3.6 2016-12-19 18:20:38 +01:00
Ville Skyttä 85d8faeb9b Update to 8.9 2016-06-25 15:48:40 +03:00
Ville Skyttä c257bf7df7 Update to 8.8 2016-06-25 13:10:18 +03:00
Petr Písař 6c092c945e Mandatory Perl build-requires added <https://fedoraproject.org/wiki/Changes/Build_Root_Without_Perl> 2016-06-24 10:14:18 +02:00
Ville Skyttä 314247a49a Work around bug in 8.7's rpmdev-bumpspec.1 build 2016-06-23 19:50:21 +03:00
Ville Skyttä e5fa722014 Upload source 2016-06-23 19:00:38 +03:00
Ville Skyttä 72a6c0f3cb Update to 8.7
- Specfile cleanups
2016-06-23 18:59:47 +03:00
Fedora Release Engineering 90de409997 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild 2016-02-04 22:18:41 +00:00
Ville Skyttä f5a5863426 Use python3 on > F-22 2015-06-17 13:57:43 +03:00
Ville Skyttä c00eb73a5b Update to 8.6 2015-05-10 20:53:27 +03:00
Ville Skyttä d09042a4c7 Update to 8.5
- Mark COPYING as %license where applicable
2014-10-20 21:37:39 +03:00
Dennis Gilmore 2e66162ac5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild 2014-06-07 21:56:03 -05:00
4 changed files with 179 additions and 13 deletions
@@ -0,0 +1,37 @@
From ea772dae0d8bb266233c3fd9e2012281a821ef44 Mon Sep 17 00:00:00 2001
From: Josh Stone <jistone@redhat.com>
Date: Fri, 2 Nov 2018 16:20:22 -0700
Subject: [PATCH] Limit newVersion's re.sub to a single replacement
Python 3.7 changed `re.sub` to replace empty matches next to a previous
non-empty match, which caused `SpecFile.newVersion` to double its
replacements. We can use `count=1` to limit this.
ref: https://bugs.python.org/issue32308
---
rpmdev-bumpspec | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/rpmdev-bumpspec b/rpmdev-bumpspec
index 35e6c9c..06737b5 100755
--- a/rpmdev-bumpspec
+++ b/rpmdev-bumpspec
@@ -134,13 +134,13 @@ class SpecFile(object):
original = self.lines[i]
if self.lines[i].lower().startswith('version:'):
self.lines[i] = re.sub(
- r'[^: \t]*$', v, self.lines[i].rstrip()) + '\n'
+ r'[^: \t]*$', v, self.lines[i].rstrip(), count=1) + '\n'
changed = changed or self.lines[i] != original
elif self.lines[i].lower().startswith('release:'):
# split and reconstruct to preserve whitespace
split = re.split(r':', self.lines[i].rstrip())
self.lines[i] = split[0] + ':' + \
- re.sub(r'[^ \t]*$', r, split[1]) + '\n'
+ re.sub(r'[^ \t]*$', r, split[1], count=1) + '\n'
changed = changed or self.lines[i] != original
return changed
--
2.17.2
@@ -0,0 +1,44 @@
From 693c9549280b78860b756b593b5922bf3be46888 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ville=20Skytt=C3=A4?= <ville.skytta@iki.fi>
Date: Wed, 15 Feb 2017 11:19:29 +0200
Subject: [PATCH] bumpspec, checksig: Avoid python 3.6 regex related
deprecations
---
rpmdev-bumpspec | 6 ++++--
rpmdev-checksig | 2 +-
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/rpmdev-bumpspec b/rpmdev-bumpspec
index ea2ddd9..35e6c9c 100755
--- a/rpmdev-bumpspec
+++ b/rpmdev-bumpspec
@@ -44,8 +44,10 @@ class SpecFile(object):
# supported release value macro definitions
_macro_bump_patterns = (
- re.compile(r"^%(?:define|global)\s+(?i)release\s+(\d+.*)"),
- re.compile(r"^%(?:define|global)\s+(?i)baserelease\s+(\d+.*)"),
+ re.compile(r"^%(?:define|global)\s+"
+ r"[Rr][Ee][Ll][Ee][Aa][Ss][Ee]\s+(\d+.*)"),
+ re.compile(r"^%(?:define|global)\s+"
+ r"[Bb][Aa][Ss][Ee][Rr][Ee][Ll][Ee][Aa][Ss][Ee]\s+(\d+.*)"),
)
# normal "Release:" tag lines
_tag_bump_patterns = (
diff --git a/rpmdev-checksig b/rpmdev-checksig
index 0e90fe5..76b5967 100755
--- a/rpmdev-checksig
+++ b/rpmdev-checksig
@@ -44,7 +44,7 @@ def lookupKeyID(ts, keyid):
mi.pattern('version', rpm.RPMMIRE_STRCMP, keyid)
for hdr in mi:
sum = hdr['summary']
- mo = re.search(b'\<.*\>', sum)
+ mo = re.search(rb'\<.*\>', sum)
email = mo.group().decode(errors='replace')
return email
--
2.17.1
+97 -12
View File
@@ -1,23 +1,40 @@
%global spectool_version 1.0.10
%if 0%{?fedora}
%bcond_without python3
%else
%bcond_with python3
%endif
Name: rpmdevtools
Version: 8.4
Release: 2%{?dist}
Version: 8.10
Release: 8%{?dist}
Summary: RPM Development Tools
# rpmdev-setuptree is GPLv2, everything else GPLv2+
License: GPLv2+ and GPLv2
URL: https://fedorahosted.org/rpmdevtools/
Source0: https://fedorahosted.org/released/rpmdevtools/%{name}-%{version}.tar.xz
URL: https://pagure.io/rpmdevtools
Source0: https://releases.pagure.org/rpmdevtools/%{name}-%{version}.tar.xz
# Backports from upstream
Patch0001: 0001-bumpspec-checksig-Avoid-python-3.6-regex-related-dep.patch
Patch0002: 0001-Limit-newVersion-s-re.sub-to-a-single-replacement.patch
BuildArch: noarch
# help2man, pod2man, *python for creating man pages
BuildRequires: help2man
BuildRequires: %{_bindir}/pod2man
BuildRequires: python >= 2.4
BuildRequires: perl-generators
%if %{with python3}
BuildRequires: python3
BuildRequires: rpm-python3
%else
BuildRequires: python >= 2.7
BuildRequires: rpm-python
%endif
# emacs-common >= 1:22.3-3 for macros.emacs
BuildRequires: emacs-common >= 1:22.3-3
BuildRequires: bash-completion
%if 0%{?fedora}
# xemacs-common >= 21.5.29-8 for macros.xemacs
BuildRequires: xemacs-common >= 21.5.29-8
@@ -30,9 +47,13 @@ Requires: file
Requires: findutils
Requires: gawk
Requires: grep
Requires: python >= 2.4
Requires: rpm-build >= 4.4.2.3
%if %{with python3}
Requires: rpm-python3
%else
Requires: python >= 2.4
Requires: rpm-python
%endif
Requires: sed
Requires: emacs-filesystem
%if 0%{?fedora}
@@ -58,18 +79,26 @@ rpmdev-bumpspec Bump revision in specfile
%prep
%setup -q
%autosetup -p1
%if %{with python3}
grep -lF "%{_bindir}/python " * \
| xargs sed -i -e "s|%{_bindir}/python |%{_bindir}/python3 |"
%endif
%build
%configure --libdir=%{_prefix}/lib
make %{?_smp_mflags}
%make_build
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
%make_install
echo %%{_datadir}/bash-completion > %{name}.files
[ -d $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d ] && \
echo %%{_sysconfdir}/bash_completion.d > %{name}.files
%if 0%{?fedora}
for dir in %{_emacs_sitestartdir} %{_xemacs_sitestartdir} ; do
@@ -82,10 +111,10 @@ for dir in %{_emacs_sitestartdir} ; do
done
%files
%doc COPYING NEWS
%files -f %{name}.files
%license COPYING
%doc NEWS
%config(noreplace) %{_sysconfdir}/rpmdevtools/
%{_sysconfdir}/bash_completion.d/
%{_datadir}/rpmdevtools/
%{_bindir}/*
%{_emacs_sitestartdir}/rpmdev-init.el
@@ -98,6 +127,62 @@ done
%changelog
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 8.10-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Wed Nov 28 2018 Neal Gompa <ngompa13@gmail.com> - 8.10-7
- Fix regex substitution issues with Python 3.7 (rhbz#1651954)
* Sun Sep 16 2018 Neal Gompa <ngompa13@gmail.com> - 8.10-6
- Fix regex related deprecation warnings (rhbz#1598089)
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 8.10-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 8.10-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 8.10-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 8.10-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Sat Jan 14 2017 Ville Skyttä <ville.skytta@iki.fi> - 8.10-1
- Update to 8.10
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 8.9-2
- Rebuild for Python 3.6
* Sat Jun 25 2016 Ville Skyttä <ville.skytta@iki.fi> - 8.9-1
- Update to 8.9
* Sat Jun 25 2016 Ville Skyttä <ville.skytta@iki.fi> - 8.8-1
- Update to 8.8
* Fri Jun 24 2016 Petr Písař <ppisar@redhat.com>
- Add new mandatory perl build deps
* Thu Jun 23 2016 Ville Skyttä <ville.skytta@iki.fi> - 8.7-1
- Update to 8.7
- Specfile cleanups
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 8.6-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Fri Jun 5 2015 Ville Skyttä <ville.skytta@iki.fi> - 8.6-2
- Use python3 on > F-22
* Sun May 10 2015 Ville Skyttä <ville.skytta@iki.fi> - 8.6-1
- Update to 8.6
* Mon Oct 20 2014 Ville Skyttä <ville.skytta@iki.fi> - 8.5-1
- Update to 8.5
- Mark COPYING as %%license where applicable
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8.4-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Thu Oct 17 2013 Ville Skyttä <ville.skytta@iki.fi> - 8.4-2
- Do not require devscripts in any scenario.
+1 -1
View File
@@ -1 +1 @@
9d1d3cc2f1108918be4766143162389a rpmdevtools-8.4.tar.xz
SHA512 (rpmdevtools-8.10.tar.xz) = 49f310d5cf1e709e8001ffcf2b17afa7f7a89ef9c8f805d694149a914c40626a08afe93b16d9ed41df1717d0bc97713c06a3b0e63f13fa53d978c6204bb05d57