ft_multimedia/ft_multimedia.spec

99 lines
4.7 KiB
RPMSpec
Raw Normal View History

# 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: ft_flutter-devel
BuildRequires: distributed-build distributed-beget distributedhardware_device_manager
BuildRequires: commonlibrary_c_utils
BuildRequires: notification_eventhandler
BuildRequires: communication_ipc communication_dsoftbus
BuildRequires: security_device_auth security_huks security_device_security_level security_dataclassification
BuildRequires: systemabilitymgr_safwk systemabilitymgr_samgr
Requires: compiler-rt llvm-devel python3 libexif-devel zlib-devel giflib-devel libpng-devel libjpeg-turbo-devel libwebp-devel
Requires: ft_flutter
Requires: distributed-beget distributedhardware_device_manager
Requires: commonlibrary_c_utils
Requires: notification_eventhandler
Requires: communication_ipc communication_dsoftbus
Requires: security_device_auth security_huks security_device_security_level security_dataclassification
Requires: systemabilitymgr_safwk systemabilitymgr_samgr
%description
ft_multimedia provides media (image, audio, media...) framework for FangTian.
%package devel
Summary: ft_multimedia development files
2023-12-11 15:04:30 +08:00
Requires: ft_multimedia
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
%{_includedir}/*
%changelog
* Tue Oct 10 2023 xieyijun3 <xieyijun3@huawei.com> - 1.0.0-1
-