374892b
%global with_python3 1
051440f
3f5afbf
Name:           python-minimock
Thomas Spura 12be9a0
Version:        1.2.8
74bbcd6
Release:        17%{?dist}
3f5afbf
Summary:        The simplest possible mock library
3f5afbf
3f5afbf
Group:          Development/Tools
3f5afbf
License:        MIT
3f5afbf
URL:            http://pypi.python.org/pypi/MiniMock
3f5afbf
Source0:        http://pypi.python.org/packages/source/M/MiniMock/MiniMock-%{version}.tar.gz
3f5afbf
3f5afbf
BuildArch:      noarch
323353d
BuildRequires:  python2-devel
323353d
BuildRequires:  python2-setuptools
3f5afbf
051440f
%if 0%{?with_python3}
051440f
BuildRequires:  python3-devel
051440f
BuildRequires:  python3-setuptools
d2b1dcc
BuildRequires:  %{_bindir}/2to3
051440f
%endif
051440f
3f5afbf
%description
3f5afbf
minimock is a simple library for doing Mock objects with doctest.
3f5afbf
051440f
%if 0%{?with_python3}
051440f
%package -n python3-minimock
051440f
Summary:        The simplest possible mock library
Thomas Spura 5eaa536
%{?python_provide:%python_provide python3-minimock}
051440f
%description -n python3-minimock
051440f
minimock is a simple library for doing Mock objects with doctest.
051440f
%endif
3f5afbf
Thomas Spura 5eaa536
%package -n python2-minimock
Thomas Spura 5eaa536
Summary:        The simplest possible mock library
Thomas Spura 5eaa536
%{?python_provide:%python_provide python2-minimock}
Thomas Spura 5eaa536
%description -n python2-minimock
Thomas Spura 5eaa536
minimock is a simple library for doing Mock objects with doctest.
Thomas Spura 5eaa536
3f5afbf
%prep
3f5afbf
%setup -q -n MiniMock-%{version}
3f5afbf
051440f
%if 0%{?with_python3}
051440f
rm -rf %{py3dir}
051440f
cp -ar . %{py3dir}
051440f
%endif
3f5afbf
3f5afbf
%build
Thomas Spura 5eaa536
%py2_build
3f5afbf
051440f
%if 0%{?with_python3}
051440f
pushd %{py3dir}
Thomas Spura 5eaa536
    %py3_build
051440f
popd
051440f
%endif
051440f
3f5afbf
3f5afbf
%install
3f5afbf
rm -rf $RPM_BUILD_ROOT
Thomas Spura 5eaa536
%py2_install
3f5afbf
051440f
%if 0%{?with_python3}
051440f
pushd %{py3dir}
Thomas Spura 5eaa536
    %py3_install
051440f
popd
051440f
%endif
051440f
Thomas Spura 12be9a0
Thomas Spura 12be9a0
%check
Thomas Spura 12be9a0
%{_bindir}/python2.? minimock.py -v
Thomas Spura 12be9a0
%if 0%{?with_python3}
Thomas Spura 12be9a0
    %{_bindir}/python3.? minimock.py -v
Thomas Spura 12be9a0
%endif
Thomas Spura 12be9a0
3f5afbf
Thomas Spura 5eaa536
%files -n python2-minimock
3f5afbf
%doc docs/*
374892b
%{python2_sitelib}/MiniMock-%{version}-py?.?.egg-info
374892b
%{python2_sitelib}/minimock*
3f5afbf
051440f
%if 0%{?with_python3}
051440f
%files -n python3-minimock
051440f
%doc docs/*
051440f
%{python3_sitelib}/MiniMock-%{version}-py?.?.egg-info
051440f
%{python3_sitelib}/minimock*
2dcdf2b
%{python3_sitelib}/__pycache__/minimock*
051440f
%endif
3f5afbf
3f5afbf
%changelog
74bbcd6
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.8-17
74bbcd6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
74bbcd6
c873323
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.2.8-16
c873323
- Rebuilt for Python 3.7
c873323
8006f88
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.8-15
8006f88
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
8006f88
323353d
* Thu Jan 25 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.2.8-14
323353d
- Update Python 2 dependency declarations to new packaging standards
323353d
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
323353d
b181ba0
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.8-13
b181ba0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
b181ba0
70d1b23
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.8-12
70d1b23
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
70d1b23
36efa11
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.2.8-11
36efa11
- Rebuild for Python 3.6
36efa11
dd5aef4
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.8-10
dd5aef4
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
dd5aef4
91a367a
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.8-9
91a367a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
91a367a
a0ef681
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.8-8
a0ef681
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
a0ef681
Thomas Spura 5eaa536
* Fri Jul 03 2015 Thomas Spura <tomspur@fedoraproject.org> - 1.2.8-7
Thomas Spura 5eaa536
- Use new python macros and clean up
Thomas Spura 5eaa536
157fc4e
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.8-6
157fc4e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
157fc4e
b746836
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.8-5
b746836
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
b746836
79ef599
* Wed May 28 2014 Kalev Lember <kalevlember@gmail.com> - 1.2.8-4
79ef599
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
79ef599
Thomas Spura b835238
* Wed Jan 15 2014 Thomas Spura <tomspur@fedoraproject.org> - 1.2.8-3
Thomas Spura 11584ec
- There is no python3 on epel
Thomas Spura 11584ec
c2522c9
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.8-2
c2522c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
c2522c9
Thomas Spura 12be9a0
* Thu Mar 21 2013 Thomas Spura <tomspur@fedoraproject.org> - 1.2.8-1
Thomas Spura 12be9a0
- update to 1.2.8
Thomas Spura 12be9a0
- python3 supported natively
Thomas Spura 12be9a0
- run tests in check section
Thomas Spura 12be9a0
09a423c
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.7-5
09a423c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
09a423c
d861d21
* Sat Aug 04 2012 David Malcolm <dmalcolm@redhat.com> - 1.2.7-4
d861d21
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
d861d21
050f736
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.7-3
050f736
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
050f736
d04be7a
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.7-2
d04be7a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
d04be7a
Thomas Spura f5ddf3e
* Sat Aug 20 2011 Thomas Spura <tomspur@fedoraproject.org> - 1.2.7-1
Thomas Spura f5ddf3e
- update to new version
Thomas Spura f5ddf3e
499faac
* Sun Feb 20 2011 Thomas Spura <tomspur@fedoraproject.org> - 1.2.6-1
499faac
- update to new version (#678851)
499faac
f87b99a
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.5-6
f87b99a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
f87b99a
bdc4a61
* Sun Aug 22 2010 Thomas Spura <tomspur@fedoraproject.org> - 1.2.5-5
bdc4a61
- rebuild with python3.2
bdc4a61
  http://lists.fedoraproject.org/pipermail/devel/2010-August/141368.html
bdc4a61
34fa772
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 1.2.5-4
34fa772
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
34fa772
051440f
* Fri Feb  5 2010 Thomas Spura <tomspur@fedoraproject.org> - 1.2.5-3
051440f
- update python3 subpackage to reflect actuall guidelines
051440f
051440f
* Thu Jan 14 2010 Thomas Spura <tomspur@fedoraproject.org> - 1.2.5-2
051440f
- also ship python3-minimock
051440f
- be more explicit in %%files
051440f
Thomas Spura 5eaa536
* Tue Dec 22 2009 Thomas Spura <tomspur@fedoraproject.org> - 1.2.5-1
3f5afbf
- correct URL
3f5afbf
- update to new version
3f5afbf
3f5afbf
* Sat Dec 5 2009 Thomas Spura <tomspur@fedoraproject.org> - 1.0-1
3f5afbf
- Initial creation for review