diff --git a/python-flatbuffers.spec b/python-flatbuffers.spec new file mode 100644 index 0000000000000000000000000000000000000000..861f5fb7f601c64911d23f88017ce6106b5136cb --- /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