From 8d4ab069f3fc7f15884d46d0afc805a7000b7086 Mon Sep 17 00:00:00 2001 From: Jincheng Miao Date: Mon, 21 Nov 2022 12:35:53 +0000 Subject: [PATCH] init python spec file Signed-off-by: Jincheng Miao --- python-flatbuffers.spec | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 python-flatbuffers.spec diff --git a/python-flatbuffers.spec b/python-flatbuffers.spec new file mode 100644 index 0000000..861f5fb --- /dev/null +++ b/python-flatbuffers.spec @@ -0,0 +1,34 @@ +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-flatbuffers +Version: 2.0.0 +Release: 0 +Summary: The FlatBuffers serialization format for Python +License: Apache-2.0 +Group: Development/Languages/Python +URL: https://google.github.io/flatbuffers/ +Source0: https://github.com/google/flatbuffers/archive/v%{version}.tar.gz#/flatbuffers-%{version}.tar.gz +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Recommends: python-numpy +BuildArch: noarch + +%description +Python runtime library for use with the Flatbuffers serialization format. + +%prep +%setup -q -n flatbuffers-%{version}/python + +%build +VERSION=%{version} %py3_build + +%install +VERSION=%{version} %py3_install + +%files +%license ../LICENSE.txt +%{python_sitelib}/* + +%changelog +* Mon Nov 21 Jincheng Miao +- init python spec file -- Gitee