Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
43711b6bfd
!15 [sync] PR-14: 修复rpmargs/rpmfile/rpmelfsym/rpmpeek/rpmsodiff/rpmsoname命令找不到问题
From: @openeuler-sync-bot 
Reviewed-by: @lyn1001 
Signed-off-by: @lyn1001
2024-06-20 09:00:49 +00:00
wu-leilei
4a460797b0 Fix command not found
(cherry picked from commit 750833fb1bf80a5128efede1ef22660b9968e084)
2024-06-20 15:22:51 +08:00
openeuler-ci-bot
65cf3b8d1d
!13 Add requires python3dist(progressbar2)
From: @wangchong1995924 
Reviewed-by: @lyn1001 
Signed-off-by: @lyn1001
2023-12-01 02:28:36 +00:00
lyn1001
8c47a2dcd7 Add requires python3dist(progressbar2) 2023-12-01 10:01:52 +08:00
openeuler-ci-bot
6d73a876a8
!12 Update to 9.6
From: @wk333 
Reviewed-by: @lyn1001 
Signed-off-by: @lyn1001
2023-10-25 02:31:24 +00:00
lyn1001
39ba0f0313 update to 9.6 2023-10-25 08:27:16 +08:00
openeuler-ci-bot
cc2e23839b
!6 [sync] PR-5: fix command error
From: @openeuler-sync-bot 
Reviewed-by: @overweight 
Signed-off-by: @overweight
2022-03-28 07:08:55 +00:00
lyn1001
d85f702a57 fix command error
(cherry picked from commit c1b90538e1a57c88af08344d9c40bc36cfe2b716)
2022-03-22 16:40:22 +08:00
openeuler-ci-bot
f789aed008 !2 add rpmdevtools.yaml
Merge pull request !2 from 成子晗/master
2020-05-09 20:17:44 +08:00
chengzihan2
5dd6b21cd0 add rpmdevtools.yaml 2020-05-08 18:50:07 +08:00
7 changed files with 87 additions and 64 deletions

View File

@ -0,0 +1,39 @@
From 4a4693c842b6da5d66e3a6bdb1eb7914d2402f7f Mon Sep 17 00:00:00 2001
From: Neal Gompa <ngompa13@gmail.com>
Date: Wed, 20 Jan 2021 06:50:03 -0500
Subject: [PATCH] Force legacy datestamp while RHBZ#1715412 is still an issue
---
rpmdev-bumpspec | 2 +-
rpmdev-newspec.in | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/rpmdev-bumpspec b/rpmdev-bumpspec
index dc4eb05..3e18b41 100755
--- a/rpmdev-bumpspec
+++ b/rpmdev-bumpspec
@@ -300,7 +300,7 @@ the Free Software Foundation; either version 2 of the License, or
parser.add_option("-n", "--new",
help="set new version and reset/set release "
"(simple spec files only)")
- parser.add_option("-D", "--legacy-datestamp", default=False, action='store_true',
+ parser.add_option("-D", "--legacy-datestamp", default=True, action='store_true',
help="use legacy datestamp for changelog entries")
parser.add_option("-d", "--datestamp",
help="changelog date string (default: today)")
diff --git a/rpmdev-newspec.in b/rpmdev-newspec.in
index 27af10f..a083dd9 100644
--- a/rpmdev-newspec.in
+++ b/rpmdev-newspec.in
@@ -293,7 +293,7 @@ if [[ $NEWSPEC_PREFER_MACROS ]] ; then
"
fi
-if [[ $rpmver -ge 41400 ]] && [[ -z $NEWSPEC_LEGACY_DATESTAMP ]] ; then # >= 4.14 (RHEL >= 8, Fedora >= 27)
+if [[ $rpmver -ge 41400 ]] && [[ $(/bin/false) ]] ; then # >= 4.14 (RHEL >= 8, Fedora >= 27)
chlog="s|^%changelog\\s*|%changelog\\n* $(LC_ALL=C date +'%a %b %d %T %Z %Y') $(rpmdev-packager)\\n- |Mg"
else
chlog="s|^%changelog\\s*|%changelog\\n* $(LC_ALL=C date --utc +'%a %b %d %Y') $(rpmdev-packager)\\n- |Mg"
--
2.29.2

View File

@ -1,44 +0,0 @@
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

View File

@ -0,0 +1,20 @@
diff -Nur a/rpminfo b/rpminfo
--- a/rpminfo 2017-01-14 18:51:20.000000000 +0800
+++ b/rpminfo 2022-03-21 18:05:43.006853690 +0800
@@ -357,7 +357,7 @@
fi
temp_prefix="$temp_prefix/"
-trap "chmod -R u+rwx $temp_prefix 2>/dev/null; rm -rf $temp_prefix; exit -1" 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
+trap "chmod -R u+rwx $temp_prefix 2>/dev/null; rm -rf $temp_prefix; exit -1" 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 18 19 20 21 22 23 24 25 26 27 28 29 30
pkg_num=0
for pkg in $packages; do
@@ -385,5 +385,7 @@
check_package "$i"
done
fi
+chmod -R u+rwx $temp_prefix 2>/dev/null
+rm -rf $temp_prefix
exit 0

Binary file not shown.

BIN
rpmdevtools-9.6.tar.xz Normal file

Binary file not shown.

View File

@ -1,33 +1,23 @@
%global spectool_version 1.0.10
%bcond_without python3
Name: rpmdevtools
Version: 8.10
Release: 8
Version: 9.6
Release: 3
Summary: RPM Development Tools
License: GPLv2+ and GPLv2
URL: https://pagure.io/rpmdevtools
Source0: https://releases.pagure.org/rpmdevtools/%{name}-%{version}.tar.xz
Patch0001: 0001-bumpspec-checksig-Avoid-python-3.6-regex-related-dep.patch
Patch0001: 0001-Force-legacy-datestamp-while-RHBZ-1715412-is-still-a.patch
Patch0003: 0003-fix-return-value-error-for-rpminfo.patch
BuildArch: noarch
%if %{with python3}
BuildRequires: python3 rpm-python3
%else
BuildRequires: python >= 2.7 rpm-python
%endif
BuildRequires: emacs-common >= 1:22.3-3 bash-completion perl-generators help2man %{_bindir}/pod2man
Provides: spectool = %{spectool_version}
BuildRequires: python3dist(requests) python3dist(rpm) python3-devel python3 python3dist(progressbar2)
Requires: curl diffutils fakeroot file findutils gawk grep rpm-build >= 4.4.2.3
%if %{with python3}
Requires: rpm-python3
%else
Requires: python >= 2.4 rpm-python
%endif
Requires: sed emacs-filesystem
Requires: python3dist(argcomplete) python3dist(requests) python3dist(rpm)
Requires: sed emacs-filesystem python3dist(progressbar2)
Recommends: python%{python3_version}dist(rpmautospec)
%description
rpmdevtools contains many scripts to aid in package development.
rpmdevtools when installed also pulls in (roughly) the explicit minimum build environment as defined in packaging guidelines,
@ -37,9 +27,7 @@ and contains (X)Emacs helpers that integrates rpm-spec-mode.el with rpmdev-newsp
%prep
%autosetup -p1
%if %{with python3}
grep -lF "%{_bindir}/python " * | xargs sed -i -e "s|%{_bindir}/python |%{_bindir}/python3 |"
%endif
%build
%configure --libdir=%{_prefix}/lib
@ -58,6 +46,9 @@ for dir in %{_emacs_sitestartdir} ; do
touch $RPM_BUILD_ROOT$dir/rpmdev-init.elc
done
ln -sr %{buildroot}%{_bindir}/rpmdev-spectool %{buildroot}%{_bindir}/spectool
echo ".so man1/rpmdev-spectool.1" > %{buildroot}%{_mandir}/man1/spectool.1
%files -f %{name}.files
%license COPYING
%doc NEWS
@ -71,6 +62,19 @@ done
%{_mandir}/man[18]/*.[18]*
%changelog
* Thu Jun 20 2024 wulei <wu_lei@hoperun.com> - 9.6-3
- Fix command not found
* Fri Dec 1 2023 liyanan <liyanan61@h-partners.com> - 9.6-2
- Add requires python3dist(progressbar2)
* Mon Oct 23 2023 liyanan <liyanan61@h-partners.com> - 9.6-1
- Update to 9.6
* Mon Mar 21 2022 liyanan <liyanan32@huawei.com> - 8.10-9
- BZ 1851499 port to str return values
- fix return value error for rpminfo
* Fri Feb 21 2020 openEuler Buildtam <buildteam@openeuler.org> - 8.10-8
- disable python2

4
rpmdevtools.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: git
src_repo: https://pagure.io/rpmdevtools.git
tag_prefix: RPMDEVTOOLS_
seperator: _