Blob Blame History Raw
%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%endif

Name:           pyvcs
Version:        0.2.0
Release:        1%{?dist}
Summary:        A lightweight abstraction layer over multiple VCSs

Group:          Development/Languages
License:        BSD
URL:            http://pypi.python.org/pypi/pyvcs
Source0:        http://pypi.python.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch:      noarch

BuildRequires:  python-devel
BuildRequires:  python-setuptools

Requires:       pysvn
Requires:       mercurial
Requires:       python-dulwich
Requires:       bzr


%description
pyvcs is a minimal VCS abstraction layer for Python.  It's goals are
to provide as much functionality as is necessary, and no further.  It
doesn't try to abstract every layer or feature of a VCS, just what's
necessary to build a code browsing UI.


%prep
%setup -q


%build
%{__python} setup.py build


%install
rm -rf %{buildroot}
%{__python} setup.py install --skip-build --root %{buildroot}

 
%clean
rm -rf %{buildroot}


%files
%defattr(-,root,root,-)
%doc LICENSE.txt README.txt
%{python_sitelib}/%{name}/
%{python_sitelib}/%{name}*.egg-info


%changelog
* Wed Apr 28 2010 Fabian Affolter <fabian@bernewireless.net> - 0.2.0-1
- Initial package