[packages/reposurgeon] Up to 5.12

arekm arekm at pld-linux.org
Fri Nov 27 21:54:06 CET 2026


commit 58f1f7a861c9ef0f79b7125a39265980296f5e6a
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Fri Nov 27 15:42:43 2026 +0100

    Up to 5.12

 reposurgeon.spec | 48 +++++++++++++++++++++++++++---------------------
 shebangs.patch   | 32 --------------------------------
 2 files changed, 27 insertions(+), 53 deletions(-)
---
diff --git a/reposurgeon.spec b/reposurgeon.spec
index bf2fc78..a2717c7 100644
--- a/reposurgeon.spec
+++ b/reposurgeon.spec
@@ -1,24 +1,26 @@
 Summary:	VCS repository manipulation tool
 Name:		reposurgeon
-Version:	3.36
-Release:	3
+Version:	5.12
+Release:	1
 License:	BSD
 Group:		Development/Tools
-Source0:	http://www.catb.org/~esr/reposurgeon/%{name}-%{version}.tar.xz
-# Source0-md5:	6580579ec266d8ec3b2ed1fcbfa024d4
-Patch0:		shebangs.patch
+Source0:	https://gitlab.com/esr/reposurgeon/-/archive/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	ea4d392f3ad0feccf977127ac62d8bff
+# cd %{name}-%{version}
+# go mod vendor
+# tar cJf ../%{name}-vendor-%{version}.tar.xz vendor
+Source1:	%{name}-vendor-%{version}.tar.xz
+# Source1-md5:	bf0d2f1d038690f3de36f8c42db62f18
 URL:		http://www.catb.org/~esr/reposurgeon/
-BuildRequires:	asciidoc
-BuildRequires:	docbook-dtd412-xml
-BuildRequires:	python-devel >= 1:2.7.2
-BuildRequires:	rpmbuild(macros) >= 1.714
-BuildRequires:	tar >= 1:1.22
-BuildRequires:	xmlto
+BuildRequires:	golang >= 1.24
+BuildRequires:	rpmbuild(macros) >= 1.647
+BuildRequires:	ruby-asciidoctor
 BuildRequires:	xz
-Requires:	python
-BuildArch:	noarch
+ExclusiveArch:	%{go_arches}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%undefine	_debugsource_packages
+
 %description
 Reposurgeon enables risky operations that version-control systems
 don't want to let you do, such as editing past comments and metadata
@@ -29,34 +31,38 @@ directly and can thus be used to script production of very
 high-quality conversions from Subversion to any supported DVCS.
 
 %prep
-%setup -q
-%patch -P0 -p1
+%setup -q -a1
 
 %build
-%{__make}
+%{__make} build all \
+	HTMLFILES="reposurgeon.html repocutter.html repomapper.html repotool.html repobench.html README.html INSTALL.html NEWS.html" \
+	GOFLAGS="-mod=vendor -ldflags=-X=main.version=%{version}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
 %{__make} install \
-	prefix=%{_prefix} \
+	PREFIX=%{_prefix} \
+	MANDIR=%{_mandir} \
+	DOCDIR=%{_docdir}/%{name}-%{version} \
+	HTMLFILES="reposurgeon.html repocutter.html repomapper.html repotool.html repobench.html README.html INSTALL.html NEWS.html" \
 	INSTALL="install -p" \
 	DESTDIR=$RPM_BUILD_ROOT
 
-%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
+install -p reposurgeon-mode.el $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc README.md AUTHORS COPYING NEWS TODO *.html reposurgeon-git-aliases reposurgeon-mode.el
+%doc %{_docdir}/%{name}-%{version}
+%attr(755,root,root) %{_bindir}/repobench
 %attr(755,root,root) %{_bindir}/repocutter
-%attr(755,root,root) %{_bindir}/repodiffer
 %attr(755,root,root) %{_bindir}/repomapper
 %attr(755,root,root) %{_bindir}/reposurgeon
 %attr(755,root,root) %{_bindir}/repotool
+%{_mandir}/man1/repobench.1*
 %{_mandir}/man1/repocutter.1*
-%{_mandir}/man1/repodiffer.1*
 %{_mandir}/man1/repomapper.1*
 %{_mandir}/man1/reposurgeon.1*
 %{_mandir}/man1/repotool.1*
diff --git a/shebangs.patch b/shebangs.patch
deleted file mode 100644
index 79d001c..0000000
--- a/shebangs.patch
+++ /dev/null
@@ -1,32 +0,0 @@
---- reposurgeon-3.36/repocutter	2016-02-28 12:56:42.000000000 +0200
-+++ reposurgeon-3.36.bang/repocutter	2016-03-14 08:32:32.220361319 +0200
-@@ -1,4 +1,4 @@
--#!/usr/bin/env python
-+#!/usr/bin/python2
- #
- # Hacked together by ESR, October 2009. New BSD license applies.
- # The Subversion project is explicitly granted permission to redistribute
---- reposurgeon-3.36/repodiffer	2016-02-24 22:16:16.000000000 +0200
-+++ reposurgeon-3.36.bang/repodiffer	2016-03-14 08:32:32.223694825 +0200
-@@ -1,4 +1,4 @@
--#!/usr/bin/env python
-+#!/usr/bin/python2
- #
- # Compare git repositories or fast-import streams for differences.
- #
---- reposurgeon-3.36/repomapper	2016-02-28 14:45:01.000000000 +0200
-+++ reposurgeon-3.36.bang/repomapper	2016-03-14 08:32:32.223694825 +0200
-@@ -1,4 +1,4 @@
--#!/usr/bin/env python3
-+#!/usr/bin/python2
- # SPDX-License-Identifier: BSD-2-Clause
- """
- repomapper - update and manipulate contributor maps
---- reposurgeon-3.36/reposurgeon	2016-03-13 15:09:13.000000000 +0200
-+++ reposurgeon-3.36.bang/reposurgeon	2016-03-14 08:32:32.240362353 +0200
-@@ -1,4 +1,4 @@
--#!/usr/bin/env python
-+#!/usr/bin/python2
- #
- # reposurgeon - a repository surgeon.
- #
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/reposurgeon.git/commitdiff/58f1f7a861c9ef0f79b7125a39265980296f5e6a



More information about the pld-cvs-commit mailing list