]>
Commit | Line | Data |
---|---|---|
54065347 | 1 | # TODO: systemd support? (see contrib dir) |
691bf212 | 2 | Summary: Framework to smartly mirror git repositories |
54065347 | 3 | Summary(pl.UTF-8): Szkielet do eleganckiego tworzenia kopii lustrzanych repozytoriów git |
691bf212 | 4 | Name: grokmirror |
94a192cd | 5 | Version: 2.0.11 |
28390726 | 6 | Release: 1 |
691bf212 ER |
7 | License: GPL v3+ |
8 | Group: Networking/Utilities | |
9 | Source0: https://www.kernel.org/pub/software/network/grokmirror/%{name}-%{version}.tar.xz | |
94a192cd | 10 | # Source0-md5: 762cea6e00bc1523a79657f9f59c08db |
691bf212 | 11 | URL: https://git.kernel.org/cgit/utils/grokmirror/grokmirror.git |
54065347 JB |
12 | BuildRequires: python3 >= 1:3.6 |
13 | BuildRequires: python3-setuptools | |
14 | BuildRequires: rpmbuild(macros) >= 1.714 | |
691bf212 ER |
15 | BuildRequires: tar >= 1:1.22 |
16 | BuildRequires: xz | |
54065347 | 17 | Requires: git-core |
691bf212 ER |
18 | BuildArch: noarch |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | %description | |
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. | |
28 | ||
54065347 JB |
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. | |
36 | ||
691bf212 ER |
37 | %prep |
38 | %setup -q | |
39 | ||
40 | %build | |
54065347 | 41 | %py3_build |
691bf212 ER |
42 | |
43 | %install | |
44 | rm -rf $RPM_BUILD_ROOT | |
691bf212 | 45 | |
54065347 | 46 | %py3_install |
691bf212 | 47 | |
54065347 | 48 | install -d $RPM_BUILD_ROOT%{_mandir}/man1 |
691bf212 ER |
49 | cp -p man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1 |
50 | ||
51 | %clean | |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
54 | %files | |
55 | %defattr(644,root,root,755) | |
54065347 JB |
56 | %doc CHANGELOG.rst README.rst UPGRADING.rst grokmirror.conf pi-piper.conf |
57 | %attr(755,root,root) %{_bindir}/grok-bundle | |
691bf212 ER |
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 | |
54065347 | 61 | %attr(755,root,root) %{_bindir}/grok-pi-piper |
691bf212 | 62 | %attr(755,root,root) %{_bindir}/grok-pull |
54065347 | 63 | %{_mandir}/man1/grok-bundle.1* |
691bf212 ER |
64 | %{_mandir}/man1/grok-dumb-pull.1* |
65 | %{_mandir}/man1/grok-fsck.1* | |
66 | %{_mandir}/man1/grok-manifest.1* | |
54065347 | 67 | %{_mandir}/man1/grok-pi-piper.1* |
691bf212 | 68 | %{_mandir}/man1/grok-pull.1* |
54065347 JB |
69 | %{py3_sitescriptdir}/grokmirror |
70 | %{py3_sitescriptdir}/grokmirror-%{version}-py*.egg-info |