From 38e366710fb6e8cc19b067eb7a5678391bfd7d97 Mon Sep 17 00:00:00 2001 From: Tomas Orsava Date: Thu, 17 Mar 2022 00:54:01 +0100 Subject: [PATCH] Import marshalparser from Fedora rawhide (F37) Resolves: rhbz#2051483 --- .gitignore | 1 + marshalparser.spec | 88 ++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 90 insertions(+) create mode 100644 marshalparser.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..b74ceaf 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/marshalparser-0.3.0.tar.gz diff --git a/marshalparser.spec b/marshalparser.spec new file mode 100644 index 0000000..598c414 --- /dev/null +++ b/marshalparser.spec @@ -0,0 +1,88 @@ +Name: marshalparser +Version: 0.3.0 +Release: 2%{?dist} +Summary: Parser for Python internal Marshal format + +License: MIT +URL: https://github.com/fedora-python/%{name} +Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: pyproject-rpm-macros + +# For tests on various pyc files +BuildRequires: python3.6 +BuildRequires: python3.7 +BuildRequires: python3.8 +BuildRequires: python3.9 +BuildRequires: python3.10 + +%generate_buildrequires +%pyproject_buildrequires -t + +%description +Parser for Python internal Marshal format which can fix pyc files +reproducibility. + +%prep +%autosetup + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files %{name} + +%check +%tox + +%files -f %{pyproject_files} +%license LICENSE +%doc README.md +%{_bindir}/%{name} + +%changelog +* Thu Jan 20 2022 Fedora Release Engineering - 0.3.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Wed Oct 13 2021 Lumír Balhar - 0.3.0-1 +- Update to 0.3.0 + +* Thu Jul 22 2021 Fedora Release Engineering - 0.2.6-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri Jun 04 2021 Python Maint - 0.2.6-2 +- Rebuilt for Python 3.10 + +* Fri Apr 30 2021 Lumír Balhar - 0.2.6-1 +- Update to 0.2.6 + +* Tue Jan 26 2021 Fedora Release Engineering - 0.2.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Fri Dec 18 2020 Lumír Balhar - 0.2.5-1 +- Update to 0.2.5 + +* Tue Dec 08 2020 Lumír Balhar - 0.2.4-1 +- Update to 0.2.4 + +* Wed Nov 11 2020 Lumír Balhar - 0.2.3-1 +- Update to 0.2.3 (#1896208) + +* Tue Nov 10 2020 Lumír Balhar - 0.2.2-1 +- Update to 0.2.2 (#1896208) + +* Wed Sep 16 2020 Lumír Balhar - 0.2.1-1 +- Update to 0.2.1 + +* Wed Jul 29 2020 Lumír Balhar - 0.2.0-1 +- Update to 0.2.0 + +* Tue Jul 28 2020 Fedora Release Engineering - 0.1.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Wed Jul 15 2020 Lumír Balhar - 0.1.1-1 +- Initial package + diff --git a/sources b/sources new file mode 100644 index 0000000..ccd56b1 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (marshalparser-0.3.0.tar.gz) = 4ec95c1106f62b70d0de1fafd6f7b0afdc6a93f922ffc2bedc94848dc057562324c6804cc3a5a298fa453b47fc728e1fd9bf0fda1641a5443b0cb84daf4eb09a