|
|
3f5afbf |
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
3f5afbf |
|
|
Thomas Spura |
11584ec |
%if 0%{?fedora} > 12
|
|
|
051440f |
%global with_python3 1
|
|
|
051440f |
%endif
|
|
|
051440f |
|
|
|
3f5afbf |
Name: python-minimock
|
|
Thomas Spura |
12be9a0 |
Version: 1.2.8
|
|
Thomas Spura |
11584ec |
Release: 3%{?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 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
3f5afbf |
|
|
|
3f5afbf |
BuildArch: noarch
|
|
|
3f5afbf |
BuildRequires: python-devel
|
|
|
3f5afbf |
BuildRequires: python-setuptools
|
|
|
3f5afbf |
|
|
|
051440f |
%if 0%{?with_python3}
|
|
|
051440f |
BuildRequires: python3-devel
|
|
|
051440f |
BuildRequires: python3-setuptools
|
|
|
051440f |
BuildRequires: python-tools
|
|
|
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
|
|
|
051440f |
%description -n python3-minimock
|
|
|
051440f |
minimock is a simple library for doing Mock objects with doctest.
|
|
|
051440f |
%endif
|
|
|
3f5afbf |
|
|
|
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
|
|
|
3f5afbf |
%{__python} setup.py build
|
|
|
3f5afbf |
|
|
|
051440f |
%if 0%{?with_python3}
|
|
|
051440f |
pushd %{py3dir}
|
|
|
051440f |
%{__python3} setup.py build
|
|
|
051440f |
popd
|
|
|
051440f |
%endif
|
|
|
051440f |
|
|
|
3f5afbf |
|
|
|
3f5afbf |
%install
|
|
|
3f5afbf |
rm -rf $RPM_BUILD_ROOT
|
|
|
3f5afbf |
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
|
|
3f5afbf |
|
|
|
051440f |
%if 0%{?with_python3}
|
|
|
051440f |
pushd %{py3dir}
|
|
|
051440f |
%{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
|
|
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 |
|
|
|
3f5afbf |
%clean
|
|
|
3f5afbf |
rm -rf $RPM_BUILD_ROOT
|
|
|
3f5afbf |
|
|
|
3f5afbf |
|
|
|
3f5afbf |
%files
|
|
|
3f5afbf |
%defattr(-,root,root,-)
|
|
|
3f5afbf |
%doc docs/*
|
|
|
051440f |
%{python_sitelib}/MiniMock-%{version}-py?.?.egg-info
|
|
|
051440f |
%{python_sitelib}/minimock*
|
|
|
3f5afbf |
|
|
|
051440f |
%if 0%{?with_python3}
|
|
|
051440f |
%files -n python3-minimock
|
|
|
051440f |
%defattr(-,root,root,-)
|
|
|
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
|
|
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 |
|
|
|
3f5afbf |
* Thu 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
|