2c3ba5a
%global pypi_name minidump
2c3ba5a
2c3ba5a
Name:           python-%{pypi_name}
c6dc3a8
Version:        0.0.19
b91e84d
Release:        1%{?dist}
b91e84d
Summary:        Python library to parse and read Microsoft minidump file format
2c3ba5a
2c3ba5a
License:        MIT
2c3ba5a
URL:            https://github.com/skelsec/minidump
2c3ba5a
Source0:        %pypi_source
2c3ba5a
BuildArch:      noarch
2c3ba5a
2c3ba5a
%description
2c3ba5a
A Python library to parse and read Microsoft minidump file format. Can create
2c3ba5a
minidumps on Windows machines using the windows API (implemented with ctypes).
2c3ba5a
2c3ba5a
%package -n python3-%{pypi_name}
2c3ba5a
Summary:        %{summary}
2c3ba5a
4f223bd
BuildRequires:  python3-devel
4f223bd
BuildRequires:  python3-setuptools
2c3ba5a
%{?python_provide:%python_provide python3-%{pypi_name}}
2c3ba5a
2c3ba5a
%description -n python3-%{pypi_name}
2c3ba5a
A Python library to parse and read Microsoft minidump file format. Can create
2c3ba5a
minidumps on Windows machines using the windows API (implemented with ctypes).
2c3ba5a
2c3ba5a
%package -n %{pypi_name}
2c3ba5a
Summary:        %{summary}
2c3ba5a
Requires:       python3-%{pypi_name}
2c3ba5a
2c3ba5a
%description -n %{pypi_name}
2c3ba5a
Command line tools for the Microsoft minidump file format.
2c3ba5a
2c3ba5a
%prep
2c3ba5a
%autosetup -n %{pypi_name}-%{version}
2c3ba5a
# Remove shebangs
2c3ba5a
sed -i -e '/^#!\//, 1d' %{pypi_name}/{*.py,*/*.py}
2c3ba5a
# Fix line endings
2c3ba5a
sed -i "s|\r||g" README.md
2c3ba5a
2c3ba5a
%build
2c3ba5a
%py3_build
2c3ba5a
2c3ba5a
%install
2c3ba5a
%py3_install
2c3ba5a
2c3ba5a
%files -n python3-%{pypi_name}
2c3ba5a
%doc README.md
2c3ba5a
%license LICENSE
2c3ba5a
%{python3_sitelib}/%{pypi_name}/
2c3ba5a
%{python3_sitelib}/%{pypi_name}*.egg-info
2c3ba5a
2c3ba5a
%files -n %{pypi_name}
2c3ba5a
%doc README.md
2c3ba5a
%license LICENSE
2c3ba5a
%{_bindir}/%{pypi_name}
2c3ba5a
2c3ba5a
%changelog
c6dc3a8
* Mon Aug 30 2021 Fabian Affolter <mail@fabian-affolter.ch> - 0.0.19-1
c6dc3a8
- Update to latest upstream release 0.0.19 (closes rhbz#1998910)
c6dc3a8
b91e84d
* Thu Aug 26 2021 Fabian Affolter <mail@fabian-affolter.ch> - 0.0.18-1
b91e84d
- Update to latest upstream release 0.0.18 (closes rhbz#1938613)
b91e84d
7a63f0b
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.13-6
7a63f0b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
7a63f0b
14d5cc6
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.0.13-5
14d5cc6
- Rebuilt for Python 3.10
14d5cc6
ef7d95e
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.13-4
ef7d95e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
ef7d95e
d0e311e
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.13-3
d0e311e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
d0e311e
150b8c9
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.0.13-2
150b8c9
- Rebuilt for Python 3.9
150b8c9
9400847
* Mon Mar 30 2020 Fabian Affolter <mail@fabian-affolter.ch> - 0.0.13-1
9400847
- Use LICENSE file shipped in source tarball
9400847
- Update to latest upstream release 0.0.4 (rhbz#1818642)
9400847
3af209e
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.12-2
3af209e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
3af209e
4f223bd
* Sun Jan 12 2020 Fabian Affolter <mail@fabian-affolter.ch> - 0.0.12-1
4f223bd
- Update to new upstream version 0.0.12
4f223bd
772ff1e
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.0.6-4
772ff1e
- Rebuilt for Python 3.8.0rc1 (#1748018)
772ff1e
8e12a9f
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.0.6-3
8e12a9f
- Rebuilt for Python 3.8
8e12a9f
0801cbb
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.6-2
0801cbb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
0801cbb
2c3ba5a
* Sat Jun 15 2019 Fabian Affolter <mail@fabian-affolter.ch> - 0.0.6-1
2c3ba5a
- Initial package for Fedora