From d884657f8638a567d2546a8c743ac8b3336c61c8 Mon Sep 17 00:00:00 2001 From: Konstantin Ryabitsev Date: Jun 17 2013 13:35:29 +0000 Subject: Initial import --- diff --git a/.gitignore b/.gitignore index e69de29..5e89761 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/grokmirror-0.3.4.tar.xz diff --git a/python-grokmirror.spec b/python-grokmirror.spec new file mode 100644 index 0000000..415871c --- /dev/null +++ b/python-grokmirror.spec @@ -0,0 +1,80 @@ +%if 0%{?fedora} > 12 +%global with_python3 0 +%else +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +%endif + +Name: python-grokmirror +Version: 0.3.4 +Release: 1%{?dist} +Summary: Framework to smartly mirror git repositories + +License: GPLv3+ +URL: https://git.kernel.org/cgit/utils/grokmirror/grokmirror.git +Source0: https://www.kernel.org/pub/software/network/grokmirror/grokmirror-%{version}.tar.xz + +BuildArch: noarch +BuildRequires: python2-devel, python-setuptools +Requires: GitPython + +%description +Grokmirror was written to make mirroring large git repository +collections more efficient. Grokmirror uses the manifest file published +by the master mirror in order to figure out which 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. + +%prep +%setup -q -n grokmirror-%{version} + + +%build +%{__python} setup.py build + + +%install +rm -rf %{buildroot} +%{__python} setup.py install -O1 --skip-build --root %{buildroot} + +%{__mkdir_p} -m 0755 \ + %{buildroot}%{_bindir} \ + %{buildroot}%{_mandir}/man1 + +%{__install} -m 0755 grok-manifest.py %{buildroot}/%{_bindir}/grok-manifest +%{__install} -m 0755 grok-pull.py %{buildroot}/%{_bindir}/grok-pull +%{__install} -m 0755 grok-fsck.py %{buildroot}/%{_bindir}/grok-fsck +%{__install} -m 0755 grok-dumb-pull.py %{buildroot}/%{_bindir}/grok-dumb-pull + +%{__install} -m 0644 man/*.1 %{buildroot}/%{_mandir}/man1/ + + +%files +%doc README.rst COPYING repos.conf fsck.conf +%{python_sitelib}/grokmirror/ +%{python_sitelib}/*.egg-info +%{_bindir}/grok-* +%{_mandir}/*/* + + +%changelog +* Mon Jun 14 2013 Konstantin Ryabitsev - 0.3.4-1 +- Update to 0.3.4 containing minor bugfixes + +* Mon May 27 2013 Konstantin Ryabitsev - 0.3.3-1 +- Update to 0.3.3 containing bugfixes and new features + +* Mon May 13 2013 Konstantin Ryabitsev - 0.3.2-1 +- Update to 0.3.2 containing important bugfixes and minor new features + +* Mon May 13 2013 Konstantin Ryabitsev - 0.3.1-1 +- Update to 0.3.1 containing important bugfixes + +* Mon May 06 2013 Konstantin Ryabitsev - 0.3-1 +- Preparing for 0.3 with new features. + +* Thu Apr 25 2013 Konstantin Ryabitsev - 0.2-1 +- Version 0.2 with new features and manpages. + +* Wed Apr 03 2013 Konstantin Ryabitsev - 0.1-1 +- Initial packaging diff --git a/sources b/sources index e69de29..0b46fbd 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +28384b6799b5f3cf40e8a3dd20f5a346 grokmirror-0.3.4.tar.xz