60e6db6
# Created by pyp2rpm-3.3.6
60e6db6
%global pypi_name op1repacker
60e6db6
60e6db6
%global common_description %{expand:
60e6db6
OP-1 Firmware Repacker is the tool for unpacking and repacking OP-1 synthesizer
60e6db6
firmware. This allows you to access and modify the files within the firmware as
60e6db6
well as repacking the files into a valid installable firmware file. Ready made
60e6db6
mods are also included in the tool. Lastly it is also possible to analyze
60e6db6
unpacked firmware to get information such as build version, build time and
60e6db6
date, bootloader version etc.}
60e6db6
60e6db6
Name:           python-%{pypi_name}
60e6db6
Version:        0.2.6
2e1d053
Release:        12%{?dist}
60e6db6
Summary:        Tool for unpacking, modding and repacking OP-1 firmware
60e6db6
60e6db6
License:        MIT
60e6db6
URL:            https://github.com/op1hacks/op1repacker
60e6db6
# PyPI tarball is missing a few files so use GitHub instead
60e6db6
Source0:        %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
60e6db6
BuildArch:      noarch
60e6db6
60e6db6
BuildRequires:  sed
60e6db6
BuildRequires:  python3-devel
60e6db6
BuildRequires:  python3dist(setuptools)
60e6db6
60e6db6
%description
60e6db6
%{common_description}
60e6db6
60e6db6
%package -n     %{pypi_name}
60e6db6
Summary:        %{summary}
60e6db6
60e6db6
%description -n %{pypi_name}
60e6db6
%{common_description}
60e6db6
60e6db6
%prep
60e6db6
%autosetup -n %{pypi_name}-%{version}
60e6db6
# Remove bundled egg-info
60e6db6
rm -rf %{pypi_name}.egg-info
60e6db6
# Remove unneeded shebang
60e6db6
sed -e "\|#!/usr/bin/env python3|d" -i %{pypi_name}/*.py
60e6db6
60e6db6
%build
60e6db6
%py3_build
60e6db6
60e6db6
%install
60e6db6
%py3_install
60e6db6
60e6db6
%files -n %{pypi_name}
60e6db6
%license LICENSE
60e6db6
%doc README.md CHANGELOG.md
60e6db6
%{_bindir}/op1repacker
60e6db6
%{python3_sitelib}/%{pypi_name}
60e6db6
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
60e6db6
60e6db6
%changelog
2e1d053
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 0.2.6-12
2e1d053
- Rebuilt for Python 3.13
2e1d053
ca2d0cb
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.6-11
ca2d0cb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
ca2d0cb
38da6be
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.6-10
38da6be
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
38da6be
53f5e21
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.6-9
53f5e21
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
53f5e21
77ef807
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 0.2.6-8
77ef807
- Rebuilt for Python 3.12
77ef807
d8f95b4
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.6-7
d8f95b4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
d8f95b4
85ae9f6
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.6-6
85ae9f6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
85ae9f6
6261359
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.2.6-5
6261359
- Rebuilt for Python 3.11
6261359
545282a
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.6-4
545282a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
545282a
040c2ea
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.6-3
040c2ea
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
040c2ea
535a74a
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.2.6-2
535a74a
- Rebuilt for Python 3.10
535a74a
60e6db6
* Sun Apr 18 2021 Davide Cavalca <dcavalca@fedoraproject.org> - 0.2.6-1
60e6db6
- Initial package.