add python subpackage for tensorflow 2.10 build
Signed-off-by: hubin <hubin73@huawei.com>
This commit is contained in:
parent
11d39ccf1f
commit
1e9233e644
@ -5,7 +5,7 @@
|
|||||||
%endif
|
%endif
|
||||||
Name: flatbuffers
|
Name: flatbuffers
|
||||||
Version: 2.0.0
|
Version: 2.0.0
|
||||||
Release: 4
|
Release: 5
|
||||||
Summary: Memory efficient serialization library
|
Summary: Memory efficient serialization library
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
URL: https://github.com/google/flatbuffers
|
URL: https://github.com/google/flatbuffers
|
||||||
@ -33,9 +33,16 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
|
|||||||
%description devel
|
%description devel
|
||||||
%{summary}.
|
%{summary}.
|
||||||
|
|
||||||
|
%package -n python3-flatbuffers
|
||||||
|
Summary: The FlatBuffers serialization format for Python
|
||||||
|
BuildRequires: python3-devel
|
||||||
|
BuildRequires: python3-setuptools
|
||||||
|
%description -n python3-flatbuffers
|
||||||
|
Python runtime library for use with the Flatbuffers serialization format.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1
|
%autosetup -p1
|
||||||
rm -rf js net php python docs go java js biicode {samples/,}android
|
rm -rf js net php docs go java js biicode {samples/,}android
|
||||||
chmod -x readme.md
|
chmod -x readme.md
|
||||||
%cmake -DCMAKE_BUILD_TYPE=Release \
|
%cmake -DCMAKE_BUILD_TYPE=Release \
|
||||||
-DFLATBUFFERS_BUILD_SHAREDLIB=ON \
|
-DFLATBUFFERS_BUILD_SHAREDLIB=ON \
|
||||||
@ -46,12 +53,20 @@ chmod -x readme.md
|
|||||||
%build
|
%build
|
||||||
%make_build
|
%make_build
|
||||||
|
|
||||||
|
pushd python
|
||||||
|
%py3_build
|
||||||
|
popd
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
%make_install
|
||||||
mkdir -p %{buildroot}%{_mandir}/man{1,7}
|
mkdir -p %{buildroot}%{_mandir}/man{1,7}
|
||||||
cp -p %SOURCE1 %{buildroot}%{_mandir}/man1/flatc.1
|
cp -p %SOURCE1 %{buildroot}%{_mandir}/man1/flatc.1
|
||||||
cp -p %SOURCE2 %{buildroot}%{_mandir}/man7/flatbuffers.7
|
cp -p %SOURCE2 %{buildroot}%{_mandir}/man7/flatbuffers.7
|
||||||
|
|
||||||
|
pushd python
|
||||||
|
%py3_install
|
||||||
|
popd
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%if %{with tests}
|
%if %{with tests}
|
||||||
make test
|
make test
|
||||||
@ -75,7 +90,13 @@ make test
|
|||||||
%{_libdir}/pkgconfig/flatbuffers.pc
|
%{_libdir}/pkgconfig/flatbuffers.pc
|
||||||
%{_libdir}/cmake/flatbuffers/*.cmake
|
%{_libdir}/cmake/flatbuffers/*.cmake
|
||||||
|
|
||||||
|
%files -n python3-flatbuffers
|
||||||
|
%{python3_sitelib}/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Nov 22 2022 Bin Hu <hubin73@huawei.com> - 2.0.0-5
|
||||||
|
- add python subpackage for tensorflow 2.10 build
|
||||||
|
|
||||||
* Wed Nov 17 2021 yefeng <yefeng24@huawei.com> - 2.0.0-4
|
* Wed Nov 17 2021 yefeng <yefeng24@huawei.com> - 2.0.0-4
|
||||||
- fix undefined behaviour
|
- fix undefined behaviour
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user