1 # TODO: systemd support? (see contrib dir)
2 Summary: Framework to smartly mirror git repositories
3 Summary(pl.UTF-8): Szkielet do eleganckiego tworzenia kopii lustrzanych repozytoriów git
8 Group: Networking/Utilities
9 Source0: https://www.kernel.org/pub/software/network/grokmirror/%{name}-%{version}.tar.xz
10 # Source0-md5: 762cea6e00bc1523a79657f9f59c08db
11 URL: https://git.kernel.org/cgit/utils/grokmirror/grokmirror.git
12 BuildRequires: python3 >= 1:3.6
13 BuildRequires: python3-setuptools
14 BuildRequires: rpmbuild(macros) >= 1.714
15 BuildRequires: tar >= 1:1.22
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 Grokmirror was written to make mirroring large git repository
23 collections more efficient. Grokmirror uses the manifest file
24 published by the master mirror in order to figure out which
25 repositories to clone, and to track which repositories require
26 updating. The process is extremely lightweight and efficient both for
27 the master and for the mirrors.
29 %description -l pl.UTF-8
30 Grokmirror został napisany, aby poprawić wydajność tworzenia kopii
31 lustrzanych dużych zbiorów repozytoriów git. Grokmirror używa plik
32 manifest, opublikowany przez główny serwer, w celu określenia
33 repozytoriów do klonowania oraz śledzenia, które wymagają
34 uaktualnienia. Proces jest bardzo lekki i wydajny, zarówno dla serwera
35 głównego, jak i kopii.
44 rm -rf $RPM_BUILD_ROOT
48 install -d $RPM_BUILD_ROOT%{_mandir}/man1
49 cp -p man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
52 rm -rf $RPM_BUILD_ROOT
55 %defattr(644,root,root,755)
56 %doc CHANGELOG.rst README.rst UPGRADING.rst grokmirror.conf pi-piper.conf
57 %attr(755,root,root) %{_bindir}/grok-bundle
58 %attr(755,root,root) %{_bindir}/grok-dumb-pull
59 %attr(755,root,root) %{_bindir}/grok-fsck
60 %attr(755,root,root) %{_bindir}/grok-manifest
61 %attr(755,root,root) %{_bindir}/grok-pi-piper
62 %attr(755,root,root) %{_bindir}/grok-pull
63 %{_mandir}/man1/grok-bundle.1*
64 %{_mandir}/man1/grok-dumb-pull.1*
65 %{_mandir}/man1/grok-fsck.1*
66 %{_mandir}/man1/grok-manifest.1*
67 %{_mandir}/man1/grok-pi-piper.1*
68 %{_mandir}/man1/grok-pull.1*
69 %{py3_sitescriptdir}/grokmirror
70 %{py3_sitescriptdir}/grokmirror-%{version}-py*.egg-info