[packages/grokmirror] - updated to 2.0.5 (python 3.6+ now) - pl

qboosh qboosh at pld-linux.org
Wed Dec 16 20:35:22 CET 2020


commit 540653470d9d861be6fdb2ff53fc88cfc38a205d
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed Dec 16 20:35:57 2020 +0100

    - updated to 2.0.5 (python 3.6+ now)
    - pl

 grokmirror.spec | 46 ++++++++++++++++++++++++++--------------------
 1 file changed, 26 insertions(+), 20 deletions(-)
---
diff --git a/grokmirror.spec b/grokmirror.spec
index dacadf0..6ad4008 100644
--- a/grokmirror.spec
+++ b/grokmirror.spec
@@ -1,17 +1,20 @@
+# TODO: systemd support? (see contrib dir)
 Summary:	Framework to smartly mirror git repositories
+Summary(pl.UTF-8):	Szkielet do eleganckiego tworzenia kopii lustrzanych repozytoriów git
 Name:		grokmirror
-Version:	0.3.4
+Version:	2.0.5
 Release:	1
 License:	GPL v3+
 Group:		Networking/Utilities
 Source0:	https://www.kernel.org/pub/software/network/grokmirror/%{name}-%{version}.tar.xz
-# Source0-md5:	28384b6799b5f3cf40e8a3dd20f5a346
+# Source0-md5:	ea465f9cc8ba77708eae07b5a5b3bfaa
 URL:		https://git.kernel.org/cgit/utils/grokmirror/grokmirror.git
-BuildRequires:	python-setuptools
-BuildRequires:	rpmbuild(macros) >= 1.219
+BuildRequires:	python3 >= 1:3.6
+BuildRequires:	python3-setuptools
+BuildRequires:	rpmbuild(macros) >= 1.714
 BuildRequires:	tar >= 1:1.22
 BuildRequires:	xz
-Requires:	python-git
+Requires:	git-core
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -23,26 +26,26 @@ repositories to clone, and to track which repositories require
 updating. The process is extremely lightweight and efficient both for
 the master and for the mirrors.
 
+%description -l pl.UTF-8
+Grokmirror został napisany, aby poprawić wydajność tworzenia kopii
+lustrzanych dużych zbiorów repozytoriów git. Grokmirror używa plik
+manifest, opublikowany przez główny serwer, w celu określenia
+repozytoriów do klonowania oraz śledzenia, które wymagają
+uaktualnienia. Proces jest bardzo lekki i wydajny, zarówno dla serwera
+głównego, jak i kopii.
+
 %prep
 %setup -q
 
 %build
-%{__python} setup.py build
+%py3_build
 
 %install
 rm -rf $RPM_BUILD_ROOT
-%{__python} setup.py install \
-	--skip-build \
-	--optimize=2 \
-	--root=$RPM_BUILD_ROOT
 
-%py_postclean
+%py3_install
 
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
-install -p grok-manifest.py  $RPM_BUILD_ROOT%{_bindir}/grok-manifest
-install -p grok-pull.py      $RPM_BUILD_ROOT%{_bindir}/grok-pull
-install -p grok-fsck.py      $RPM_BUILD_ROOT%{_bindir}/grok-fsck
-install -p grok-dumb-pull.py $RPM_BUILD_ROOT%{_bindir}/grok-dumb-pull
+install -d $RPM_BUILD_ROOT%{_mandir}/man1
 cp -p man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
 
 %clean
@@ -50,15 +53,18 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc README.rst repos.conf fsck.conf
+%doc CHANGELOG.rst README.rst UPGRADING.rst grokmirror.conf pi-piper.conf
+%attr(755,root,root) %{_bindir}/grok-bundle
 %attr(755,root,root) %{_bindir}/grok-dumb-pull
 %attr(755,root,root) %{_bindir}/grok-fsck
 %attr(755,root,root) %{_bindir}/grok-manifest
+%attr(755,root,root) %{_bindir}/grok-pi-piper
 %attr(755,root,root) %{_bindir}/grok-pull
+%{_mandir}/man1/grok-bundle.1*
 %{_mandir}/man1/grok-dumb-pull.1*
 %{_mandir}/man1/grok-fsck.1*
 %{_mandir}/man1/grok-manifest.1*
+%{_mandir}/man1/grok-pi-piper.1*
 %{_mandir}/man1/grok-pull.1*
-%{py_sitescriptdir}/grokmirror-%{version}-py*.egg-info
-%dir %{py_sitescriptdir}/grokmirror
-%{py_sitescriptdir}/grokmirror/*.py[co]
+%{py3_sitescriptdir}/grokmirror
+%{py3_sitescriptdir}/grokmirror-%{version}-py*.egg-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/grokmirror.git/commitdiff/540653470d9d861be6fdb2ff53fc88cfc38a205d



More information about the pld-cvs-commit mailing list