From 20993e7dd1fb42c2140d372765e3036689e7159e Mon Sep 17 00:00:00 2001 From: Lumir Balhar Date: Mon, 20 Jul 2020 17:20:21 +0200 Subject: [PATCH] Initial import (#1858286). --- .gitignore | 1 + marshalparser.spec | 47 ++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 49 insertions(+) create mode 100644 .gitignore create mode 100644 marshalparser.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ca893a1 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/marshalparser-0.1.1.tar.gz diff --git a/marshalparser.spec b/marshalparser.spec new file mode 100644 index 0000000..80743c4 --- /dev/null +++ b/marshalparser.spec @@ -0,0 +1,47 @@ +Name: marshalparser +Version: 0.1.1 +Release: 1%{?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 + +%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 +* 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..f122d88 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (marshalparser-0.1.1.tar.gz) = d7893c9bab75fd0c4a1e2ac52fa15144c68bf5339247f412dc7fdb1b4251d5da413f3eb37b4dc5438cdc3d7d51cedbd9b16d9659e6cee49e0ed2c44b62f81b0e