%global srcname hgdistver
Name: python-%{srcname}
Version: 0.16
Release: 2%{?dist}
Summary: Python library to generate package version info from mercurial tags
Group: Development/Languages
License: MIT
URL: http://pypi.python.org/pypi/anyvc
Source0: http://pypi.python.org/packages/source/h/%{srcname}/%{srcname}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python2-devel
BuildRequires: python-setuptools
%description
hgdistver is a simple drop-in to support setup.py in mercurial based projects.
It's supposed to generate version numbers from mercurial's meta-data. It tries
to use the current tag and falls back to the next reachable tagged ancestor
and using the distance to it as .post marker.
%prep
%setup -q -n %{srcname}-%{version}
rm -rf %{srcname}.egg-info
%build
%{__python} setup.py build
%install
%{__python} setup.py install --skip-build --root %{buildroot}
%files
%doc README.txt
%{python_sitelib}/%{srcname}.*
%{python_sitelib}/%{srcname}*.egg-info
%changelog
* Thu Nov 01 2012 Fabian Affolter <mail@fabian-affolter.ch> - 0.16-2
- Bundled egg-info removed
* Sun Oct 21 2012 Fabian Affolter <mail@fabian-affolter.ch> - 0.16-1
- Updated to new upstream release
* Fri Jun 08 2012 Fabian Affolter <mail@fabian-affolter.ch> - 0.15-1
- Initial package