!1 rpm for openEuler-22.03-LTS-Next
From: @xieyijun3 Reviewed-by: @yanansong Signed-off-by: @yanansong
This commit is contained in:
commit
ba1a7bfe48
BIN
ft_multimedia-1.0.0.tar.gz
Normal file
BIN
ft_multimedia-1.0.0.tar.gz
Normal file
Binary file not shown.
86
ft_multimedia.spec
Normal file
86
ft_multimedia.spec
Normal file
@ -0,0 +1,86 @@
|
||||
# Copyright (c) 2023 Huawei Technologies Co., Ltd. All rights reserved.
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
%define debug_package %{nil}
|
||||
%define _debugsource_template %{nil}
|
||||
|
||||
Name: ft_multimedia
|
||||
Version: 1.0.0
|
||||
Release: 1%{?dist}
|
||||
Summary: ft_multimedia provides media (image, audio, media...) framework for FangTian.
|
||||
|
||||
License: Apache-2.0
|
||||
URL: https://gitee.com/openeuler/ft_multimedia
|
||||
Source0: https://gitee.com/openeuler/ft_multimedia/repository/archive/ft_multimedia-1.0.0.tar.gz
|
||||
|
||||
BuildRequires: clang compiler-rt llvm-devel python3 python3-pip python-toml tar cmake libexif-devel zlib-devel giflib-devel libpng-devel libjpeg-turbo-devel libwebp-devel
|
||||
BuildRequires: distributed-utils distributed-build ft_flutter-devel
|
||||
Requires: compiler-rt llvm-devel python3 libexif-devel zlib-devel giflib-devel libpng-devel libjpeg-turbo-devel libwebp-devel
|
||||
Requires: distributed-utils distributed-build ft_flutter
|
||||
|
||||
%description
|
||||
ft_multimedia provides media (image, audio, media...) framework for FangTian.
|
||||
|
||||
%package devel
|
||||
Summary: ft_multimedia development files
|
||||
Provides: ft_multimedia-devel
|
||||
|
||||
%description devel
|
||||
This package contains necessary header files for ft_multimedia development.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{name}-%{version} -p1
|
||||
|
||||
%build
|
||||
cd %{_builddir}/%{name}-%{version}
|
||||
./build/prebuildrpm.sh -b release
|
||||
./build.sh -b release
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{_libdir}
|
||||
%ifarch x86_64
|
||||
cp -pdf %{_builddir}/%{name}-%{version}/out/Release/x64/common/common/*.so %{buildroot}%{_libdir}
|
||||
%endif
|
||||
%ifarch aarch64
|
||||
cp -pdf %{_builddir}/%{name}-%{version}/out/Release/aarch64/common/common/*.so %{buildroot}%{_libdir}
|
||||
%endif
|
||||
|
||||
mkdir -p %{buildroot}/usr/local/share/ft/multimedia/image
|
||||
cp -pdf %{_builddir}/%{name}-%{version}/image_framework/plugins/common/libs/image/libpngplugin/pngplugin.pluginmeta %{buildroot}/usr/local/share/ft/multimedia/image/
|
||||
cp -pdf %{_builddir}/%{name}-%{version}/image_framework/plugins/common/libs/image/libjpegplugin/jpegplugin.pluginmeta %{buildroot}/usr/local/share/ft/multimedia/image/
|
||||
cp -pdf %{_builddir}/%{name}-%{version}/image_framework/plugins/common/libs/image/formatagentplugin/imageformatagent.pluginmeta %{buildroot}/usr/local/share/ft/multimedia/image/
|
||||
cp -pdf %{_builddir}/%{name}-%{version}/image_framework/plugins/common/libs/image/librawplugin/rawplugin.pluginmeta %{buildroot}/usr/local/share/ft/multimedia/image/
|
||||
cp -pdf %{_builddir}/%{name}-%{version}/image_framework/plugins/common/libs/image/libbmpplugin/bmpplugin.pluginmeta %{buildroot}/usr/local/share/ft/multimedia/image/
|
||||
cp -pdf %{_builddir}/%{name}-%{version}/image_framework/plugins/common/libs/image/libwebpplugin/webpplugin.pluginmeta %{buildroot}/usr/local/share/ft/multimedia/image/
|
||||
cp -pdf %{_builddir}/%{name}-%{version}/image_framework/plugins/common/libs/image/libgifplugin/gifplugin.pluginmeta %{buildroot}/usr/local/share/ft/multimedia/image/
|
||||
|
||||
mkdir -p %{buildroot}%{_includedir}/image
|
||||
cp -pdf %{_builddir}/%{name}-%{version}/image_framework/interfaces/innerkits/include/*.h %{buildroot}%{_includedir}/image/
|
||||
cp -pdf %{_builddir}/%{name}-%{version}/image_framework/frameworks/innerkitsimpl/utils/include/*.h %{buildroot}%{_includedir}/image/
|
||||
cp -pdf %{_builddir}/%{name}-%{version}/image_framework/frameworks/innerkitsimpl/converter/include/pixel_map_rosen_utils.h %{buildroot}%{_includedir}/image/
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%{_libdir}/*
|
||||
/usr/local/share/ft/*
|
||||
|
||||
%files devel
|
||||
%{_libdir}/*
|
||||
/usr/local/share/ft/*
|
||||
%{_includedir}/*
|
||||
|
||||
%changelog
|
||||
* Tue Oct 10 2023 xieyijun3 <xieyijun3@huawei.com> - 1.0.0-1
|
||||
-
|
||||
Loading…
x
Reference in New Issue
Block a user