3 %bcond_without python2 # CPython 2.x module
4 %bcond_without python3 # CPython 3.x module
6 Summary: Add flag to ignore unicode literal prefixes in doctests
7 Summary(pl.UTF-8): Flaga do ignorowania prefiksów stałych unikodowych w doctestach
8 Name: python-doctest-ignore-unicode
12 Group: Libraries/Python
13 #Source0Download: https://pypi.org/simple/doctest-ignore-unicode/
14 Source0: https://files.pythonhosted.org/packages/source/d/doctest-ignore-unicode/doctest-ignore-unicode-%{version}.tar.gz
15 # Source0-md5: ba64fe1ef48e8ed68d9ac9a9a03d0c65
16 URL: https://pypi.org/project/doctest-ignore-unicode/
18 BuildRequires: python-modules >= 1:2.5
19 BuildRequires: python-setuptools
22 BuildRequires: python3-modules >= 1:3.2
23 BuildRequires: python3-setuptools
25 BuildRequires: rpm-pythonprov
26 BuildRequires: rpmbuild(macros) >= 1.714
27 Requires: python-modules >= 1:2.5
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 doctest-ignore-unicode is a plugin (currently only for Nose) that adds
33 a flag to ignore unicode literal prefixes in doctests.
35 %description -l pl.UTF-8
36 doctest-ignore-unicode to wtyczka (obecnie tylko dla Nose), dodająca
37 flagę do ignorowania prefiksów stałych unikodowych w doctestach.
39 %package -n python3-doctest-ignore-unicode
40 Summary: Add flag to ignore unicode literal prefixes in doctests
41 Summary(pl.UTF-8): Flaga do ignorowania prefiksów stałych unikodowych w doctestach
42 Group: Libraries/Python
43 Requires: python3-modules >= 1:3.2
45 %description -n python3-doctest-ignore-unicode
46 doctest-ignore-unicode is a plugin (currently only for Nose) that adds
47 a flag to ignore unicode literal prefixes in doctests.
49 %description -n python3-doctest-ignore-unicode -l pl.UTF-8
50 doctest-ignore-unicode to wtyczka (obecnie tylko dla Nose), dodająca
51 flagę do ignorowania prefiksów stałych unikodowych w doctestach.
54 %setup -q -n doctest-ignore-unicode-%{version}
66 rm -rf $RPM_BUILD_ROOT
79 rm -rf $RPM_BUILD_ROOT
83 %defattr(644,root,root,755)
85 %{py_sitescriptdir}/nose_plugin.py[co]
86 %{py_sitescriptdir}/doctest_ignore_unicode-%{version}-py*.egg-info
90 %files -n python3-doctest-ignore-unicode
91 %defattr(644,root,root,755)
93 %{py3_sitescriptdir}/nose_plugin.py
94 %{py3_sitescriptdir}/__pycache__/nose_plugin.cpython-*.py[co]
95 %{py3_sitescriptdir}/doctest_ignore_unicode-%{version}-py*.egg-info