[packages/git-core-hg] Initial (now developed separately)

arekm arekm at pld-linux.org
Tue Jan 30 22:56:54 CET 2024


commit 3a201e2ee11e4316a59ecd831a2fc6aa99d9fd1a
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Tue Jan 30 22:53:19 2024 +0100

    Initial (now developed separately)

 git-core-hg.spec | 45 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)
---
diff --git a/git-core-hg.spec b/git-core-hg.spec
new file mode 100644
index 0000000..7668566
--- /dev/null
+++ b/git-core-hg.spec
@@ -0,0 +1,45 @@
+Summary:	Git tools for working with mercurial repositories
+Name:		git-core-hg
+Version:	0.6
+Release:	1
+Epoch:		1
+License:	GPL v2
+Group:		Development/Tools
+Source0:	https://github.com/felipec/git-remote-hg/archive/refs/tags/v%{version}.tar.gz
+# Source0-md5:	8a1acaba6d5f2acd453870b136695eba
+URL:		https://github.com/felipec/git-remote-hg
+BuildRequires:	rpm-pythonprov
+Requires:	git-core
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Git tools for working with mercurial repositories.
+
+%define         gitcoredir      %{_libexecdir}/git-core
+
+%prep
+%setup -q -n git-remote-hg-%{version}
+
+%{__sed} -i -e '1s,/usr/bin/env python$,%{__python3},' git-remote-hg
+
+%build
+%{__make} \
+	V=1
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT{%{gitcoredir},%{_mandir}/man1}
+
+cp -p git-remote-hg $RPM_BUILD_ROOT%{gitcoredir}
+cp -p doc/git-remote-hg.1 $RPM_BUILD_ROOT%{_mandir}/man1
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.asciidoc
+%attr(755,root,root) %{gitcoredir}/git-remote-hg
+%{_mandir}/man1/git-remote-hg.1*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/git-core-hg.git/commitdiff/3a201e2ee11e4316a59ecd831a2fc6aa99d9fd1a



More information about the pld-cvs-commit mailing list