blob: 39669edf99d579721165917240cd74f15c02b72a [file] [log] [blame]
%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.1
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.gz
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}
%{__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
%{__mkdir_p} -m 0755 \
%{buildroot}%{_mandir}/man1
%{__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 May 13 2013 Konstantin Ryabitsev <mricon@kernel.org> - 0.3.1-1
- Update to 0.3.1 containing important bugfixes
* Mon May 06 2013 Konstantin Ryabitsev <mricon@kernel.org> - 0.3-1
- Preparing for 0.3 with new features.
* Thu Apr 25 2013 Konstantin Ryabitsev <mricon@kernel.org> - 0.2-1
- Version 0.2 with new features and manpages.
* Wed Apr 03 2013 Konstantin Ryabitsev <mricon@kernel.org> - 0.1-1
- Initial packaging