diff --git a/.gitignore b/.gitignore index e69de29..d2f1568 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/gitdb-0.5.2-17d9d13.tar.gz diff --git a/python-gitdb.spec b/python-gitdb.spec new file mode 100644 index 0000000..9db039b --- /dev/null +++ b/python-gitdb.spec @@ -0,0 +1,74 @@ +# sitelib for noarch packages, sitearch for others (remove the unneeded one) +%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} + +%global gitver 17d9d13 + +Name: python-gitdb +Version: 0.5.2 +Release: 3.20110613git%{gitver}%{?dist} +Summary: A pure-Python git object database + +Group: Development/Languages +License: BSD +URL: https://github.com/gitpython-developers/gitdb +# Get source: git clone git://github.com/gitpython-developers/gitdb.git +# cd gitdb; git checkout 17d9d13; cd ../; +# tar czvpf gitdb-0.5.2-17d9d13.tar.gz gitdb/ +Source0: gitdb-%{version}-%{gitver}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Requires: python-async >= 0.6.1 + +# python-async is needed for the check section +BuildRequires: python-devel, python-nose, python-async + +# Filter the private provide +%{?filter_setup: +%filter_provides_in %{python_sitearch}/gitdb/_perf.so +%filter_setup +} + +%description +GitDB allows you to access bare git repositories for reading and writing. It +aims at allowing full access to loose objects as well as packs with performance +and scalability in mind. It operates exclusively on streams, allowing to +operate on large objects with a small memory footprint. + + +%prep +%setup -q -n gitdb + + +%build +# Remove CFLAGS=... for noarch packages (unneeded) +CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build + +%check +nosetests + + +%install +rm -rf $RPM_BUILD_ROOT +%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT +chmod 0755 $RPM_BUILD_ROOT%{python_sitearch}/gitdb/_perf.so + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc README.rst AUTHORS LICENSE +# For arch-specific packages: sitearch +%{python_sitearch}/* + +%changelog +* Tue Jun 14 2011 Jesse Keating - 0.5.2-3.20110613git17d9d13 +- Add a br on python-async + +* Mon Jun 13 2011 Jesse Keating - 0.5.2-2.20110613git17d9d13 +- Fix perms and add a date to the release field. + +* Sat May 28 2011 Jesse Keating - 0.5.2-1.git17d9d13 +- Initial package + diff --git a/sources b/sources index e69de29..e7c299e 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +fb4d1ffa06d61ef7e4102f115e3f455f gitdb-0.5.2-17d9d13.tar.gz