6444625
%global pypi_name python-registry
6444625
%global srcname registry
6444625
%{?python_disable_dependency_generator}
6444625
6444625
Name:           python-%{srcname}
37dfa85
Version:        1.4
37dfa85
Release:        1%{?dist}
6444625
Summary:        Read access to Windows Registry files
6444625
6444625
License:        ASL 2.0
6444625
URL:            https://github.com/williballenthin/python-registry
6444625
Source0:        %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
6444625
BuildArch:      noarch
6444625
6444625
%description
6444625
python-registry is a pure Python library that provides read-only access to
6444625
Windows NT Registry files. These include NTUSER.DAT, userdiff, and SAM. The
6444625
interface is two-fold: a high-level interface suitable for most tasks, and
6444625
a low level set of parsing objects and methods which may be used for advanced
6444625
study of the Windows NT Registry.
6444625
6444625
%package -n     python3-%{srcname}
6444625
Summary:        %{summary}
6444625
6444625
BuildRequires:  python3-devel
6444625
BuildRequires:  python3-setuptools
37dfa85
BuildRequires:  python3-six
6444625
BuildRequires:  python3-pytest
6444625
6444625
Requires:       python3-unicodecsv
6444625
%{?python_provide:%python_provide python3-%{srcname}}
6444625
6444625
%description -n python3-%{srcname}
6444625
python-registry is a pure Python library that provides read-only access to
6444625
Windows NT Registry files. These include NTUSER.DAT, userdiff, and SAM. The
6444625
interface is two-fold: a high-level interface suitable for most tasks, and
6444625
a low level set of parsing objects and methods which may be used for advanced
6444625
study of the Windows NT Registry.
6444625
6444625
%prep
6444625
%autosetup -n %{pypi_name}-%{version}
6444625
rm -rf %{pypi_name}.egg-info
6444625
sed -i -e '/^#!\//, 1d' Registry/*.py
6444625
6444625
%build
6444625
%py3_build
6444625
6444625
%install
6444625
%py3_install
6444625
6444625
%check
85e7199
%pytest -v tests -k "not test_regsz_value and not test_decoding and not test_utf16le_kanji_with_nulls"
6444625
6444625
%files -n python3-%{srcname}
37dfa85
%doc CHANGELOG.TXT README.MD
37dfa85
%license LICENSE.TXT
6444625
%{python3_sitelib}/Registry/
6444625
%{python3_sitelib}/python_registry-*.egg-info/
6444625
6444625
%changelog
37dfa85
* Sun Jan 24 2021 Fabian Affolter <mail@fabian-affolter.ch> - 1.4-1
37dfa85
- Add new BR, license file and docs (#1914873)
37dfa85
- Update to latest upstream release 1.4
37dfa85
dea634a
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-4
dea634a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
dea634a
1c7ba0c
* Tue May 26 2020 Miro HronĨok <mhroncok@redhat.com> - 1.3.1-3
1c7ba0c
- Rebuilt for Python 3.9
1c7ba0c
6444625
* Mon Mar 23 2020 Fabian Affolter <mail@fabian-affolter.ch> - 1.3.1-2
6444625
- Disable dep generator to avoid issue with enum-compat (rhbz#1809910)
6444625
6444625
* Wed Mar 04 2020 Fabian Affolter <mail@fabian-affolter.ch> - 1.3.1-1
6444625
- Initial package for Fedora