|
|
19f509b |
%if 0%{?fedora} > 12
|
|
|
19f509b |
%global with_python3 1
|
|
|
19f509b |
%else
|
|
|
19f509b |
%if 0%{?rhel} && 0%{?rhel} <= 7
|
|
|
19f509b |
%{!?__python2: %global __python2 /usr/bin/python2}
|
|
|
19f509b |
%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
|
|
19f509b |
%else
|
|
|
19f509b |
%global with_python3 1
|
|
|
19f509b |
%endif
|
|
|
19f509b |
%endif
|
|
Jesse Keating |
5b6ad4d |
|
|
Jesse Keating |
5b6ad4d |
Name: python-gitdb
|
|
|
19f509b |
Version: 0.6.4
|
|
|
4458e39 |
Release: 2%{?dist}
|
|
Jesse Keating |
5b6ad4d |
Summary: A pure-Python git object database
|
|
Jesse Keating |
5b6ad4d |
|
|
Jesse Keating |
5b6ad4d |
Group: Development/Languages
|
|
Jesse Keating |
5b6ad4d |
License: BSD
|
|
|
19f509b |
URL: http://pypi.python.org/packages/source/g/gitdb/gitdb-%{version}.tar.gz#md5=44e4366b8bdfd306b075c3a52c96ae1a
|
|
Jesse Keating |
5e98adc |
Source0: gitdb-%{version}.tar.gz
|
|
|
19f509b |
Requires: python-smmap
|
|
Jesse Keating |
5b6ad4d |
|
|
|
19f509b |
BuildRequires: python-devel, python-nose, python-setuptools
|
|
Jesse Keating |
5b6ad4d |
|
|
Jesse Keating |
5b6ad4d |
%description
|
|
Jesse Keating |
5b6ad4d |
GitDB allows you to access bare git repositories for reading and writing. It
|
|
Jesse Keating |
5b6ad4d |
aims at allowing full access to loose objects as well as packs with performance
|
|
Jesse Keating |
5b6ad4d |
and scalability in mind. It operates exclusively on streams, allowing to
|
|
Jesse Keating |
5b6ad4d |
operate on large objects with a small memory footprint.
|
|
Jesse Keating |
5b6ad4d |
|
|
|
19f509b |
%if 0%{?with_python3}
|
|
|
19f509b |
%package -n python3-gitdb
|
|
|
19f509b |
Summary: Python3 Git Library
|
|
|
19f509b |
Requires: python3-smmap
|
|
|
19f509b |
BuildRequires: python3-devel, python3-nose, python3-setuptools
|
|
|
19f509b |
|
|
|
19f509b |
%description -n python3-gitdb
|
|
|
19f509b |
%{description}
|
|
|
19f509b |
%endif
|
|
|
19f509b |
|
|
|
19f509b |
# Filter the private provide
|
|
|
19f509b |
%{?filter_setup:
|
|
|
19f509b |
%filter_provides_in %{python3_sitearch}/gitdb/_perf.so
|
|
|
19f509b |
%filter_setup
|
|
|
19f509b |
}
|
|
Jesse Keating |
5b6ad4d |
|
|
Jesse Keating |
5b6ad4d |
%prep
|
|
|
19f509b |
%setup -qc -n gitdb-%{version}
|
|
|
19f509b |
mv gitdb-%{version} python2
|
|
Jesse Keating |
5b6ad4d |
|
|
|
19f509b |
%if 0%{?with_python3}
|
|
|
19f509b |
cp -a python2 python3
|
|
|
19f509b |
find python3 -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
|
|
|
19f509b |
%endif # with_python3
|
|
Jesse Keating |
5b6ad4d |
|
|
|
19f509b |
find python2 -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python2}|'
|
|
Jesse Keating |
5b6ad4d |
|
|
|
19f509b |
pushd python2
|
|
|
19f509b |
cp AUTHORS LICENSE ../
|
|
|
19f509b |
popd
|
|
Jesse Keating |
5b6ad4d |
|
|
|
19f509b |
%build
|
|
|
19f509b |
pushd python2
|
|
|
19f509b |
CFLAGS="$RPM_OPT_FLAGS" %{__python2} setup.py build
|
|
|
19f509b |
popd
|
|
Jesse Keating |
5b6ad4d |
|
|
|
19f509b |
%if 0%{?with_python3}
|
|
|
19f509b |
pushd python3
|
|
|
19f509b |
CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build
|
|
|
19f509b |
popd
|
|
|
19f509b |
%endif
|
|
Jesse Keating |
5b6ad4d |
|
|
|
19f509b |
%install
|
|
|
19f509b |
pushd python2
|
|
|
19f509b |
%{__python2} setup.py install -O1 --skip-build --root %{buildroot}
|
|
|
19f509b |
chmod 0755 %{buildroot}%{python2_sitearch}/gitdb/_perf.so
|
|
|
19f509b |
popd
|
|
|
19f509b |
%if 0%{?with_python3}
|
|
|
19f509b |
pushd python3
|
|
|
19f509b |
%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
|
|
|
19f509b |
popd
|
|
|
19f509b |
%endif
|
|
Jesse Keating |
5b6ad4d |
|
|
Jesse Keating |
5b6ad4d |
%files
|
|
Jesse Keating |
5b6ad4d |
%defattr(-,root,root,-)
|
|
|
19f509b |
%if 0%{?fedora}
|
|
|
19f509b |
%license LICENSE
|
|
|
19f509b |
%else
|
|
|
19f509b |
%doc LICENSE
|
|
|
19f509b |
%endif
|
|
|
19f509b |
%doc AUTHORS
|
|
|
19f509b |
%{python2_sitearch}/gitdb-%{version}-py?.?.egg-info
|
|
|
19f509b |
%{python2_sitearch}/gitdb/
|
|
|
19f509b |
|
|
|
19f509b |
%if 0%{?with_python3}
|
|
|
19f509b |
%files -n python3-gitdb
|
|
|
19f509b |
%license LICENSE
|
|
|
19f509b |
%doc AUTHORS
|
|
|
19f509b |
%{python3_sitearch}/gitdb-%{version}-py?.?.egg-info
|
|
|
19f509b |
%{python3_sitearch}/gitdb/
|
|
|
19f509b |
%endif
|
|
Jesse Keating |
5b6ad4d |
|
|
Jesse Keating |
5b6ad4d |
%changelog
|
|
|
4458e39 |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.4-2
|
|
|
4458e39 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
4458e39 |
|
|
|
19f509b |
* Tue May 26 2015 Dennis Gilmore <dennis@ausil.us> - 0.6.4-1
|
|
|
19f509b |
- update to 0.6.4
|
|
|
19f509b |
- enable python3 support
|
|
|
19f509b |
|
|
|
c36b239 |
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.4-8
|
|
|
c36b239 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
c36b239 |
|
|
|
5985899 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.4-7
|
|
|
5985899 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
5985899 |
|
|
|
a5e88de |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.4-6
|
|
|
a5e88de |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
a5e88de |
|
|
|
196cd74 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.4-5
|
|
|
196cd74 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
196cd74 |
|
|
|
5d66a5f |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.4-4
|
|
|
5d66a5f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
5d66a5f |
|
|
|
8a86a4d |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.4-3
|
|
|
8a86a4d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
8a86a4d |
|
|
Jesse Keating |
f5d596e |
* Mon Oct 17 2011 Jesse Keating <jkeating@redhat.com> - 0.5.4-2
|
|
Jesse Keating |
f5d596e |
- Require python-smmap
|
|
Jesse Keating |
f5d596e |
|
|
Jesse Keating |
5e98adc |
* Mon Jul 18 2011 Jesse Keating <jkeating@redhat.com> - 0.5.4-1
|
|
Jesse Keating |
5e98adc |
- Upstream release to fix licensing issues
|
|
Jesse Keating |
5e98adc |
- Use real upstream release instead of git checkout
|
|
Jesse Keating |
5e98adc |
- No tests shipped in release, remove %check
|
|
Jesse Keating |
5e98adc |
|
|
Jesse Keating |
5b6ad4d |
* Tue Jun 14 2011 Jesse Keating <jkeating@redhat.com> - 0.5.2-3.20110613git17d9d13
|
|
Jesse Keating |
5b6ad4d |
- Add a br on python-async
|
|
Jesse Keating |
5b6ad4d |
|
|
Jesse Keating |
5b6ad4d |
* Mon Jun 13 2011 Jesse Keating <jkeating@redhat.com> - 0.5.2-2.20110613git17d9d13
|
|
Jesse Keating |
5b6ad4d |
- Fix perms and add a date to the release field.
|
|
Jesse Keating |
5b6ad4d |
|
|
Jesse Keating |
5b6ad4d |
* Sat May 28 2011 Jesse Keating <jkeating@redhat.com> - 0.5.2-1.git17d9d13
|
|
Jesse Keating |
5b6ad4d |
- Initial package
|
|
Jesse Keating |
5b6ad4d |
|