Blob Blame History Raw
%global mod_name setuptools_hg

Name:           python-%{mod_name}
Version:        0.4
Release:        3%{?dist}
Summary:        Setuptools plugin for Mercurial version control

Group:          Development/Libraries
License:        GPLv2
URL:            http://pypi.python.org/pypi/%{mod_name}
Source0:        https://files.pythonhosted.org/packages/source/s/%{mod_name}/%{mod_name}-%{version}.tar.gz

BuildArch:      noarch

BuildRequires:  python2-devel
BuildRequires:  python2-setuptools

BuildRequires:  python3-devel
BuildRequires:  python3-setuptools

%description
setuptools_hg is a plugin for setuptools that enables setuptools to find files
under the Mercurial version control system.It uses the Mercurial Python library
by default and falls back to use the command line program ``hg``. That's 
especially useful inside virtualenvs that don't have access to the system wide 
installed Mercurial lib (e.g. when created with ``--no-site-packages``).


%package -n python2-%{mod_name}
Summary:  %{summary}
%{?python_provide:%python_provide python2-%{mod_name}}

%description -n python2-%{mod_name}
setuptools_hg is a plugin for setuptools that enables setuptools to find files
under the Mercurial version control system.It uses the Mercurial Python library
by default and falls back to use the command line program ``hg``. That's 
especially useful inside virtualenvs that don't have access to the system wide 
installed Mercurial lib (e.g. when created with ``--no-site-packages``).
Python 2 version.


%package -n python3-%{mod_name}
Summary:  %{summary}
%{?python_provide:%python_provide python3-%{mod_name}}

%description -n python3-%{mod_name}
setuptools_hg is a plugin for setuptools that enables setuptools to find files
under the Mercurial version control system.It uses the Mercurial Python library
by default and falls back to use the command line program ``hg``. That's 
especially useful inside virtualenvs that don't have access to the system wide 
installed Mercurial lib (e.g. when created with ``--no-site-packages``).
Python 3 version.


%prep
%setup -q -n %{mod_name}-%{version}

%build
%py2_build
%py3_build


%install
%py2_install
%py3_install


%files -n python2-%{mod_name}
%doc PKG-INFO
%license LICENSE
%{python2_sitelib}/%{mod_name}.*
%{python2_sitelib}/*.egg-info/

%files -n python3-%{mod_name}
%doc PKG-INFO
%license LICENSE
%{python3_sitelib}/%{mod_name}.*
%{python3_sitelib}/*.egg-info/
%{python3_sitelib}/__pycache__/


%changelog
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

* Mon Dec 19 2016 Miro HronĨok <mhroncok@redhat.com> - 0.4-2
- Rebuild for Python 3.6

* Thu Sep 01 2016 Dominika Krejci <dkrejci@redhat.com> - 0.4-1
- Update to 0.4
- Add Python3

* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.1-10
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages

* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.1-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.1-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.1-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.1-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild

* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild

* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild

* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild

* Thu Jul 14 2011 Praveen Kumar <kumarpraveen.nitdgp@gmail.com> - 0.2.1-2
- Add license file and some minor changes

* Wed Jul 13 2011 Praveen Kumar <kumarpraveen.nitdgp@gmail.com> - 0.2.1-1
- Initial RPM release