|
|
99c992a |
%global modname sieve
|
|
|
99c992a |
|
|
|
99c992a |
Name: python-sieve
|
|
|
52f165d |
Version: 0.1.9
|
|
|
803a9d1 |
Release: 32%{?dist}
|
|
|
99c992a |
Summary: XML Comparison Utils
|
|
|
99c992a |
|
|
|
99c992a |
License: MIT
|
|
Jan ONDREJ (SAL) |
5416ec4 |
URL: https://pypi.python.org/pypi/sieve
|
|
Jan ONDREJ (SAL) |
5416ec4 |
Source0: https://pypi.python.org/packages/source/s/%{modname}/%{modname}-%{version}.tar.gz
|
|
|
99c992a |
|
|
|
99c992a |
BuildArch: noarch
|
|
|
99c992a |
|
|
|
99c992a |
|
|
|
99c992a |
BuildRequires: python3-devel
|
|
Jan ONDREJ (SAL) |
361c290 |
BuildRequires: python3-setuptools
|
|
|
99c992a |
BuildRequires: python3-six
|
|
|
99c992a |
BuildRequires: python3-lxml
|
|
|
20cda0d |
BuildRequires: python3-markupsafe
|
|
Jan ONDREJ (SAL) |
526582f |
BuildRequires: python3-wheel
|
|
|
99c992a |
|
|
|
eb04d24 |
%global _description\
|
|
|
eb04d24 |
Ripped from FormEncode and strainer just to support Pythons 2 and 3.\
|
|
|
eb04d24 |
Intended for use in your webapp test suites.\
|
|
|
eb04d24 |
\
|
|
|
eb04d24 |
Example usage::\
|
|
|
eb04d24 |
\
|
|
|
eb04d24 |
>>> from sieve.operators import eq_xml, in_xml\
|
|
|
eb04d24 |
>>> a = "<foo><bar>Value</bar></foo>"\
|
|
|
eb04d24 |
>>> b = """\
|
|
|
eb04d24 |
... <foo>\
|
|
|
eb04d24 |
... <bar>\
|
|
|
eb04d24 |
... Value\
|
|
|
eb04d24 |
... </bar>\
|
|
|
eb04d24 |
... </foo>\
|
|
|
eb04d24 |
... """\
|
|
|
eb04d24 |
>>> eq_xml(a, b)\
|
|
|
eb04d24 |
True\
|
|
|
eb04d24 |
>>> c = "<html><body><foo><bar>Value</bar></foo></body>
|
|
|
eb04d24 |
>>> in_xml(a, c) # 'needle' in a 'haystack'\
|
|
|
eb04d24 |
True\
|
|
|
eb04d24 |
|
|
|
eb04d24 |
|
|
|
eb04d24 |
%description %_description
|
|
|
eb04d24 |
|
|
|
99c992a |
%package -n python3-sieve
|
|
|
99c992a |
Summary: XML Comparison Utils
|
|
|
99c992a |
|
|
|
e7151b5 |
Requires: python3-six
|
|
|
e7151b5 |
Requires: python3-lxml
|
|
|
20cda0d |
Requires: python3-markupsafe
|
|
|
e7151b5 |
|
|
|
99c992a |
%description -n python3-sieve
|
|
|
99c992a |
Ripped from FormEncode and strainer just to support Pythons 2 and 3.
|
|
|
99c992a |
Intended for use in your webapp test suites.
|
|
|
99c992a |
|
|
|
99c992a |
Example usage::
|
|
|
99c992a |
|
|
|
99c992a |
>>> from sieve.operators import eq_xml, in_xml
|
|
|
99c992a |
>>> a = "<foo><bar>Value</bar></foo>"
|
|
|
99c992a |
>>> b = """
|
|
|
99c992a |
... <foo>
|
|
|
99c992a |
... <bar>
|
|
|
99c992a |
... Value
|
|
|
99c992a |
... </bar>
|
|
|
99c992a |
... </foo>
|
|
|
99c992a |
... """
|
|
|
99c992a |
>>> eq_xml(a, b)
|
|
|
99c992a |
True
|
|
|
99c992a |
>>> c = "<html><body><foo><bar>Value</bar></foo></body>
|
|
|
99c992a |
>>> in_xml(a, c) # 'needle' in a 'haystack'
|
|
|
99c992a |
True
|
|
|
99c992a |
|
|
|
99c992a |
%prep
|
|
|
99c992a |
%setup -q -n %{modname}-%{version}
|
|
|
99c992a |
|
|
|
99c992a |
rm -rf %{modname}.egg-info
|
|
|
99c992a |
|
|
|
99c992a |
|
|
|
99c992a |
|
|
|
99c992a |
%build
|
|
|
99c992a |
%{__python3} setup.py build
|
|
|
99c992a |
|
|
|
99c992a |
|
|
|
99c992a |
%install
|
|
|
99c992a |
%{__python3} setup.py install -O1 --skip-build --root=%{buildroot}
|
|
|
99c992a |
|
|
|
99c992a |
|
|
Jan ONDREJ (SAL) |
526582f |
%check
|
|
Jan ONDREJ (SAL) |
526582f |
# check disabled, only deprecated nose is supported
|
|
Jan ONDREJ (SAL) |
526582f |
#%%{__python3} setup.py test
|
|
|
99c992a |
|
|
|
99c992a |
|
|
|
99c992a |
%files -n python3-%{modname}
|
|
|
99c992a |
%doc LICENSE.txt README.rst
|
|
|
99c992a |
%{python3_sitelib}/%{modname}
|
|
|
99c992a |
%{python3_sitelib}/%{modname}-%{version}-*
|
|
|
99c992a |
|
|
|
99c992a |
|
|
|
99c992a |
|
|
|
99c992a |
%changelog
|
|
|
803a9d1 |
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.9-32
|
|
|
803a9d1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
803a9d1 |
|
|
|
dfb58f9 |
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.9-31
|
|
|
dfb58f9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
dfb58f9 |
|
|
|
f7f4f47 |
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.9-30
|
|
|
f7f4f47 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
f7f4f47 |
|
|
|
37ebc70 |
* Wed Jun 14 2023 Python Maint <python-maint@redhat.com> - 0.1.9-29
|
|
|
37ebc70 |
- Rebuilt for Python 3.12
|
|
|
37ebc70 |
|
|
|
d744988 |
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.9-28
|
|
|
d744988 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
d744988 |
|
|
|
155b615 |
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.9-27
|
|
|
155b615 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
155b615 |
|
|
|
d3c51d9 |
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.1.9-26
|
|
|
d3c51d9 |
- Rebuilt for Python 3.11
|
|
|
d3c51d9 |
|
|
Jan ONDREJ (SAL) |
526582f |
* Thu Apr 21 2022 Ján ONDREJ (SAL) <ondrejj(at)salstar.sk> - 0.1.9-25
|
|
Jan ONDREJ (SAL) |
526582f |
- Remove check, because there is support only for deprecated nose package
|
|
Jan ONDREJ (SAL) |
526582f |
|
|
|
584e8f3 |
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.9-24
|
|
|
584e8f3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
584e8f3 |
|
|
|
1d6fad9 |
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.9-23
|
|
|
1d6fad9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
1d6fad9 |
|
|
|
266d858 |
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.1.9-22
|
|
|
266d858 |
- Rebuilt for Python 3.10
|
|
|
266d858 |
|
|
|
40a50a0 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.9-21
|
|
|
40a50a0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
40a50a0 |
|
|
Jan ONDREJ (SAL) |
361c290 |
* Wed Oct 07 2020 Ján ONDREJ (SAL) <ondrejj(at)salstar.sk> - 0.1.9-20
|
|
Jan ONDREJ (SAL) |
361c290 |
- BuildRequire setuptools explicitly
|
|
Jan ONDREJ (SAL) |
361c290 |
|
|
|
7d63c62 |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.9-19
|
|
|
7d63c62 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
7d63c62 |
|
|
|
86cb1a1 |
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.1.9-18
|
|
|
86cb1a1 |
- Rebuilt for Python 3.9
|
|
|
86cb1a1 |
|
|
|
7d24132 |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.9-17
|
|
|
7d24132 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
7d24132 |
|
|
|
9be0c0c |
* Sun Sep 08 2019 Miro Hrončok <mhroncok@redhat.com> - 0.1.9-16
|
|
|
9be0c0c |
- Subpackage python2-sieve has been removed
|
|
|
9be0c0c |
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
|
|
9be0c0c |
|
|
|
9230089 |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.1.9-15
|
|
|
9230089 |
- Rebuilt for Python 3.8
|
|
|
9230089 |
|
|
|
7bad6aa |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.9-14
|
|
|
7bad6aa |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
7bad6aa |
|
|
|
a9fae67 |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.9-13
|
|
|
a9fae67 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
a9fae67 |
|
|
|
b38b040 |
* Wed Jul 25 2018 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.1.9-12
|
|
|
b38b040 |
- Use the py2 version of the macros
|
|
|
b38b040 |
|
|
|
3d79755 |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.9-11
|
|
|
3d79755 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
3d79755 |
|
|
|
4f73626 |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.1.9-10
|
|
|
4f73626 |
- Rebuilt for Python 3.7
|
|
|
4f73626 |
|
|
|
8ff548d |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.9-9
|
|
|
8ff548d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
8ff548d |
|
|
|
ffe67aa |
* Tue Jan 30 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.1.9-8
|
|
|
ffe67aa |
- Update Python 2 dependency declarations to new packaging standards
|
|
|
ffe67aa |
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
|
ffe67aa |
|
|
|
eb04d24 |
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.1.9-7
|
|
|
eb04d24 |
- Python 2 binary package renamed to python2-sieve
|
|
|
eb04d24 |
See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
|
|
|
eb04d24 |
|
|
|
4945788 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.9-6
|
|
|
4945788 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
4945788 |
|
|
|
1cfc3d1 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.9-5
|
|
|
1cfc3d1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
1cfc3d1 |
|
|
|
780e5bf |
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.1.9-4
|
|
|
780e5bf |
- Rebuild for Python 3.6
|
|
|
780e5bf |
|
|
|
574aab3 |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.9-3
|
|
|
574aab3 |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
574aab3 |
|
|
|
42734b6 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.9-2
|
|
|
42734b6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
42734b6 |
|
|
|
52f165d |
* Thu Jan 7 2016 Toshio Kuratomi <toshio@fedoraproject.org> - 0.1.9-1
|
|
|
52f165d |
- Update to upstream 0.1.9 to fix tracebacks with some xml fragments
|
|
|
52f165d |
|
|
|
df2d028 |
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.6-14
|
|
|
df2d028 |
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
|
df2d028 |
|
|
|
c6ed00c |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.6-13
|
|
|
c6ed00c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
c6ed00c |
|
|
|
5aee1c7 |
* Thu Nov 13 2014 Ralph Bean <rbean@redhat.com> - 0.1.6-12
|
|
|
5aee1c7 |
- Fixed with_python3 conditional.
|
|
|
5aee1c7 |
|
|
|
e9a3e01 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.6-11
|
|
|
e9a3e01 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
e9a3e01 |
|
|
|
edfc3e2 |
* Wed May 14 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 0.1.6-10
|
|
|
edfc3e2 |
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
|
|
|
edfc3e2 |
|
|
|
52b0ca8 |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.6-9
|
|
|
52b0ca8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
52b0ca8 |
|
|
|
586ca2d |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.6-8
|
|
|
586ca2d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
586ca2d |
|
|
|
e7151b5 |
* Sat Nov 03 2012 Ralph Bean <rbean@redhat.com> - 0.1.6-7
|
|
|
e7151b5 |
- Move python3 requirements into the correct section.
|
|
|
e7151b5 |
|
|
|
eb42457 |
* Tue Oct 30 2012 Ralph Bean <rbean@redhat.com> - 0.1.6-6
|
|
|
eb42457 |
- Bump release to get around a koji hiccup again.
|
|
|
eb42457 |
|
|
|
65a4b8d |
* Mon Oct 22 2012 Ralph Bean <rbean@redhat.com> - 0.1.6-5
|
|
|
65a4b8d |
- Bump release to get around a koji hiccup.
|
|
|
65a4b8d |
|
|
|
99c992a |
* Tue Sep 25 2012 Ralph Bean <rbean@redhat.com> - 0.1.6-4
|
|
|
99c992a |
- Added requirement on python3-six back in since that package has been split.
|
|
|
99c992a |
|
|
|
99c992a |
* Mon Sep 24 2012 Ralph Bean <rbean@redhat.com> - 0.1.6-3
|
|
|
99c992a |
- Removed upstream egg-info in prep section.
|
|
|
99c992a |
|
|
|
99c992a |
* Fri Jun 22 2012 Ralph Bean <rbean@redhat.com> - 0.1.6-2
|
|
|
99c992a |
- Fix to python-six dependencies. (no python3-six)
|
|
|
99c992a |
|
|
|
99c992a |
* Fri Jun 22 2012 Ralph Bean <rbean@redhat.com> - 0.1.6-1
|
|
|
99c992a |
- Initial package for Fedora
|