a9e14f4
%global pypi_name dpath
a9e14f4
a9e14f4
Name:           python-%{pypi_name}
569560d
Version:        2.0.6
fb0d049
Release:        4%{?dist}
a9e14f4
Summary:        Library for searching dictionaries using XPath-like expressions
a9e14f4
Stanislav Ochotnicky 5340182
License:        MIT
Stanislav Ochotnicky 5340182
URL:            https://github.com/akesterson/dpath-python
a9e14f4
Source0:        %{pypi_source}
Stanislav Ochotnicky 5340182
BuildArch:      noarch
Stanislav Ochotnicky 5340182
a9e14f4
%description
a9e14f4
A Python library for accessing and searching dictionaries via /slashed/paths ala
a9e14f4
xpath.
Stanislav Ochotnicky 5340182
a9e14f4
Basically it lets you glob over a dictionary as if it were a filesystem. It
a9e14f4
allows you to specify globs (ala the bash eglob syntax, through some advanced
a9e14f4
fnmatch.fnmatch magic) to access dictionary elements, and provides some facility
Stanislav Ochotnicky 5340182
for filtering those results.
Stanislav Ochotnicky 5340182
a9e14f4
%package -n python3-%{pypi_name}
a9e14f4
Summary:        %{summary}
5f55e80
a9e14f4
BuildRequires:  python3-devel
a9e14f4
BuildRequires:  python3-setuptools
a9e14f4
%{?python_provide:%python_provide python3-%{pypi_name}}
Stanislav Ochotnicky 5340182
a9e14f4
%description -n python3-%{pypi_name}
a9e14f4
A Python library for accessing and searching dictionaries via /slashed/paths ala
Stanislav Ochotnicky 5340182
xpath
Stanislav Ochotnicky 5340182
Stanislav Ochotnicky 5340182
Basically it lets you glob over a dictionary as if it were a filesystem. It
Stanislav Ochotnicky 5340182
allows you to specify globs (ala the bash eglob syntax, through some advanced
Stanislav Ochotnicky 5340182
fnmatch.fnmatch magic) to access dictionary elements, and provides some facility
Stanislav Ochotnicky 5340182
for filtering those results.
Stanislav Ochotnicky 5340182
Stanislav Ochotnicky 5340182
%prep
a9e14f4
%autosetup -n %{pypi_name}-%{version}
27790d0
find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
Stanislav Ochotnicky 5340182
Stanislav Ochotnicky 5340182
%build
27790d0
%py3_build
Stanislav Ochotnicky 5340182
Stanislav Ochotnicky 5340182
%install
27790d0
%py3_install
Stanislav Ochotnicky 5340182
Stanislav Ochotnicky 5340182
%files -n python3-dpath
Stanislav Ochotnicky e9b4d78
%doc LICENSE.txt README.rst
a9e14f4
%{python3_sitelib}/%{pypi_name}*
Stanislav Ochotnicky 5340182
Stanislav Ochotnicky 5340182
%changelog
fb0d049
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.6-4
fb0d049
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
fb0d049
4126a23
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.6-3
4126a23
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
4126a23
b9df497
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 2.0.6-2
b9df497
- Rebuilt for Python 3.11
b9df497
569560d
* Fri Mar 25 2022 Fabian Affolter <mail@fabian-affolter.ch> - 2.0.6-1
569560d
- Update to latest upstream release 2.0.6 (closes rhbz#2049315)
569560d
5b42d26
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.5-2
5b42d26
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
5b42d26
e29bd04
* Tue Sep 21 2021 Fabian Affolter <mail@fabian-affolter.ch> - 2.0.5-1
e29bd04
- Update to latest upstream release 2.0.5 (closes rhbz#2003476)
e29bd04
3467e40
* Sun Sep 12 2021 Fabian Affolter <mail@fabian-affolter.ch> - 2.0.4-1
3467e40
- Update to latest upstream release 2.0.4 (closes rhbz#2003377)
3467e40
67df6e0
* Wed Sep 08 2021 Fabian Affolter <mail@fabian-affolter.ch> - 2.0.3-1
67df6e0
- Update to latest upstream release 2.0.3 (closes rhbz#2002457)
67df6e0
259a5d8
* Fri Sep 03 2021 Fabian Affolter <mail@fabian-affolter.ch> - 2.0.2-1
259a5d8
- Update to latest upstream release 2.0.2 (closes rhbz#2000790)
259a5d8
2505881
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-4
2505881
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
2505881
d4e422f
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 2.0.1-3
d4e422f
- Rebuilt for Python 3.10
d4e422f
808d762
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-2
808d762
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
808d762
a9e14f4
* Thu Oct 22 2020 Fabian Affolter <mail@fabian-affolter.ch> - 2.0.1-1
a9e14f4
- Update to latest upstream release 2.0.1
a9e14f4
682bf5d
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-19
682bf5d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
682bf5d
bf5241a
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.4.0-18
bf5241a
- Rebuilt for Python 3.9
bf5241a
158ca1a
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-17
158ca1a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
158ca1a
27790d0
* Thu Sep 05 2019 Miro Hrončok <mhroncok@redhat.com> - 1.4.0-16
27790d0
- Subpackage python2-dpath has been removed
27790d0
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
27790d0
17c91a8
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.4.0-15
17c91a8
- Rebuilt for Python 3.8
17c91a8
b90beb9
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-14
b90beb9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
b90beb9
bd7aeab
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-13
bd7aeab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
bd7aeab
32fcefe
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-12
32fcefe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
32fcefe
7152d73
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.4.0-11
7152d73
- Rebuilt for Python 3.7
7152d73
2d906ae
* Mon Feb 12 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.4.0-10
2d906ae
- Update Python 2 dependency declarations to new packaging standards
2d906ae
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
2d906ae
ba4ae37
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-9
ba4ae37
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
ba4ae37
5f55e80
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.4.0-8
5f55e80
- Python 2 binary package renamed to python2-dpath
5f55e80
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
5f55e80
88f8eee
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-7
88f8eee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
88f8eee
482e0a6
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-6
482e0a6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
482e0a6
59be466
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.4.0-5
59be466
- Rebuild for Python 3.6
59be466
d6f8c71
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-4
d6f8c71
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
d6f8c71
136d4ed
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-3
136d4ed
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
136d4ed
44786b5
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-2
44786b5
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
44786b5
Stanislav Ochotnicky e9b4d78
* Wed Oct 21 2015 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.4.0-1
Stanislav Ochotnicky e9b4d78
- Update to new upstream version
Stanislav Ochotnicky e9b4d78
30b85b0
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-0.5.70
30b85b0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
30b85b0
9c0aab2
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-0.4.70
9c0aab2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
9c0aab2
469d77a
* Wed May 28 2014 Kalev Lember <kalevlember@gmail.com> - 1.2-0.3.70
469d77a
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
469d77a
Stanislav Ochotnicky 2781098
* Mon Apr 07 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.2-0.2.70
Stanislav Ochotnicky 2781098
- Update to new upstream version
Stanislav Ochotnicky 2781098
Stanislav Ochotnicky 5340182
* Wed Mar 19 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.2-0.1.52.20140319gita6ce774d
Stanislav Ochotnicky 5340182
- Initial packaging
Stanislav Ochotnicky 5340182