]> git.pld-linux.org Git - packages/grokmirror.git/commitdiff
- updated to 2.0.5 (python 3.6+ now) auto/th/grokmirror-2.0.5-1
authorJakub Bogusz <qboosh@pld-linux.org>
Wed, 16 Dec 2020 19:35:57 +0000 (20:35 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Wed, 16 Dec 2020 19:35:57 +0000 (20:35 +0100)
- pl

grokmirror.spec

index dacadf0e6846869179aa019a20cfa5d293cd82d2..6ad4008d18370de20afae1996c6a5d5be7a03bb9 100644 (file)
@@ -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
This page took 0.115043 seconds and 4 git commands to generate.