%define name hgsubversion %define myver 1.5.1 # define myrelver 23 %define hash d0f3a5c2cb56 # define version %{myver}_%{myrelver}_%{hash} %define version %{myver} # define unmangled_version %{myver}-%{myrelver}-%{hash} %define unmangled_version %{version} %define release %mkrel 3 Summary: Mercurial extension for working with Subversion repositories Name: %{name} Version: %{version} Release: %{release} Source0: %{name}-%{unmangled_version}.tar.gz License: GNU GPL Group: Development/Tools Prefix: %{_prefix} BuildArch: noarch Url: http://bitbucket.org/durin42/hgsubversion Suggests: subvertpy %description hgsubversion is an extension for Mercurial that allows using Mercurial as a Subversion client. %prep %setup -n durin42-hgsubversion-%{hash} %build %{__python} setup.py build %install %{__python} setup.py install -O1 --skip-build --root=%{buildroot} rm -rf %{buildroot}/%{python_sitelib}/%{name}/*/*.rst %files %{python_sitelib}/* %changelog * Tue Oct 22 2013 umeabot <umeabot> 1.5.1-3.mga4 + Revision: 542665 - Mageia 4 Mass Rebuild * Mon Oct 14 2013 pterjan <pterjan> 1.5.1-2.mga4 + Revision: 497801 - Rebuild to add different pythonegg provides for python 2 and 3 * Fri Oct 04 2013 philippem <philippem> 1.5.1-1.mga4 + Revision: 491517 - Update to 1.5.1 * Sat Jan 12 2013 umeabot <umeabot> 1.5-2.mga3 + Revision: 353193 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Mon Nov 12 2012 shlomif <shlomif> 1.5-1.mga3 + Revision: 317260 - New version 1.5 * Wed Oct 24 2012 malo <malo> 1.4-2.mga3 + Revision: 309730 - fix description - spec clean-up - update RPM group * Wed May 30 2012 shlomif <shlomif> 1.4-1.mga3 + Revision: 251851 - New version: 1.4. Add suggests for subvertpy and convert the archive to .xz * Fri Dec 16 2011 shlomif <shlomif> 1.3-3.mga2 + Revision: 182836 - Fixed the files section to handle the bytecode restrictions. - Update group, summary and remove Vendor. Fix buildbot warnings - New version (1.3) and add a call to mkrel - imported package hgsubversion