%define debug_package %{nil}
%global openHarmony_source_release OpenHarmony-v3.2-Release
Name:      distributed-build
Version:   1.0.0
Release:   5
Summary:   openEuler embedded softbus build tools
License:   Apache-2.0
URL:       https://gitee.com/openharmony/build
Requires:  ninja-build, gn, clang15, llvm15, lld15, python, python-pyyaml, python-jinja2, distributed-build_lite
Source0:   https://gitee.com/openharmony/build/repository/archive/%{openHarmony_source_release}.tar.gz #/build-%{openHarmony_source_release}.tar.gz
Patch0001: 0001-feat-Adapt-to-Openeuler-python-export-lld.patch
Patch0002: 0002-feat-Adapt-to-Openeuler-for-compilation.patch
Patch0003: 0003-feat-Adapt-to-Openeuler-add-clang.patch
Patch0004: 0004-feat-Adapt-to-Openeuler-add-include-file.patch
Patch0005: 0005-feat-use-pyyaml-on-openeuler.patch
Patch0006: 0006-feat-add-base-config.json-for-openeuler.patch
Patch0007: 0007-feat-add-gn-files-to-use-packages-on-openeuler.patch
Patch0008: 0008-feat-Adapt-to-openeuler.patch
Patch0009: 0009-feat-add-common-subsystem-and-delete-useless-config.patch
#Patch0010: 0010-feat-use-include-samgr-for-samgr-include-files-confi.patch
#Patch0011: 0011-feat-use-.z-for-libs-name.patch
Patch0012: 0012-fix-rpm-build-fail-caused-by-wrong-useless-code.patch
Patch0013: 0013-feature-use-llvm-tools-version-15-for-build.patch
Patch0014: 0014-feat-delete-the-default-sqlite-deps.patch
Patch0015: 0015-feat-and-hilog-gn-files.patch
Patch0016: 0016-fix-use-llvm15-path-on-x86_64.patch
Patch0017: 0017-feat-add-script-to-create-soft-link.patch
#Patch0018: 0018-feat-add-safwk-compile-gn-target.patch
#Patch0019: 0019-feat-add-devicemanager-gn-files.patch
Patch0020: 0020-feat-add-openssl-gn-file-and-soft-link.patch
Patch0021: 0021-feat-change-config-json.patch
Patch0022: 0022-add-build-gn-file-of-icu-jsoncpp-zlib.patch
BuildArch: noarch

%description
openEuler embedded softbus build tools

%prep
%autosetup -p1 -n build-%{openHarmony_source_release}

#%build
#nothing to do

%install
install -d %{buildroot}/opt/distributed-middleware-build
cp -rp  %{_builddir}/build-%{openHarmony_source_release}/* %{buildroot}/opt/distributed-middleware-build

%files
/opt/distributed-middleware-build

%changelog
* Tue Jun 20 2023 Peng He <hepeng68@huawei.com> - 1.0.0-5
- add some components to build.

* Fri Jun 16 2023 tianhang <tian_hang@hoperun.com> - 1.0.0-4
- add gn files and add tools for soft link files

* Thu Jun 15 2023 tianhang <tian_hang@hoperun.com> - 1.0.0-3
- use llvm15 path for strip on x86_64

* Thu Jun 15 2023 tianhang <tian_hang@hoperun.com> - 1.0.0-2
- add hilog compile gn files and remove default sqlite deps

* Tue May 30 2023 tianhang <tian_hang@hoperun.com> - 1.0.0-1
- Init and Adapt to Openeuler
