2022-08-25 21:14:59 +08:00
|
|
|
Name: pin-server
|
2022-12-20 17:13:03 +08:00
|
|
|
Version: 0.4.0
|
|
|
|
|
Release: 1
|
2022-08-25 21:14:59 +08:00
|
|
|
Summary: Pin (Plug-IN framework) server provides plugin APIs for compiler optimization developers to develop optimization pass.
|
|
|
|
|
License: Apache 2.0
|
|
|
|
|
URL: https://gitee.com/openeuler/pin-server
|
|
|
|
|
Source0: %{name}-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
BuildRequires: gcc gcc-c++ cmake make pkgconfig grpc grpc-plugins grpc-devel protobuf-devel jsoncpp-devel
|
2022-12-01 09:39:24 +08:00
|
|
|
BuildRequires: llvm-mlir llvm-mlir-static llvm-mlir-devel llvm-devel
|
2022-08-25 21:14:59 +08:00
|
|
|
Requires: grpc protobuf
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Pin (Plug-IN framework) server provides plugin APIs for compiler optimization developers to develop optimization pass.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package demo
|
|
|
|
|
Summary: Demo for %{name}
|
|
|
|
|
Requires: grpc protobuf
|
|
|
|
|
|
|
|
|
|
%description demo
|
|
|
|
|
A demo for pin-server
|
|
|
|
|
|
|
|
|
|
# skip debuginfo packages
|
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
2022-12-08 21:42:24 +08:00
|
|
|
|
2022-08-25 21:14:59 +08:00
|
|
|
mkdir -p _build
|
|
|
|
|
cd _build
|
2022-12-01 09:39:24 +08:00
|
|
|
%{cmake} .. -DCMAKE_INSTALL_PREFIX=%{_usr} -DCMAKE_INSTALL_LIBDIR=%{_libdir} -DMLIR_DIR=/usr/lib64/cmake/mlir -DLLVM_DIR=/usr/lib64/cmake/llvm
|
2022-08-25 21:14:59 +08:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
cd _build
|
|
|
|
|
%make_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
cd _build
|
|
|
|
|
%make_install
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%attr(0755,root,root) %{_bindir}/pin_server
|
|
|
|
|
|
|
|
|
|
%files demo
|
2022-09-28 16:08:43 +08:00
|
|
|
%attr(0755,root,root) %{_libdir}/libpin_user.so
|
2022-12-01 09:39:24 +08:00
|
|
|
%attr(0755,root,root) %{_libdir}/libMLIRPlugin.so
|
|
|
|
|
%attr(0755,root,root) %{_libdir}/libMLIRPlugin.so.12
|
|
|
|
|
%attr(0755,root,root) %{_libdir}/libMLIRServerAPI.so
|
|
|
|
|
%attr(0755,root,root) %{_libdir}/libMLIRServerAPI.so.12
|
2022-09-28 16:08:43 +08:00
|
|
|
%attr(0644,root,root) %{_libdir}/libpin_user.sha256
|
2022-08-25 21:14:59 +08:00
|
|
|
|
|
|
|
|
%changelog
|
2022-12-20 17:13:03 +08:00
|
|
|
* Tue Dec 20 2022 zhaowenyu <804544223@qq.com> - 0.4.0-1
|
|
|
|
|
- Type:Update
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:Update to v0.4.0
|
|
|
|
|
|
2022-12-08 21:42:24 +08:00
|
|
|
* Thu Dec 08 2022 benniaobufeijiushiji <linda7@huawei.com> - 0.3.0-2
|
|
|
|
|
- Type:Sync
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:Sync patch from openEuler/pin-server
|
|
|
|
|
|
2022-12-01 09:39:24 +08:00
|
|
|
* Thu Dec 01 2022 wumingchuan <wumingchuan1992@foxmail.com> - 0.3.0-1
|
|
|
|
|
- Type:Update
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:Update to v0.3.0
|
|
|
|
|
|
2022-09-28 16:08:43 +08:00
|
|
|
* Thu Sep 29 2022 wumingchuan <wumingchuan1992@foxmail.com> - 0.2.0-1
|
|
|
|
|
- Type:Update
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:Update to v0.2.0
|
|
|
|
|
|
2022-08-27 10:30:04 +08:00
|
|
|
* Sat Aug 27 2022 liyancheng <412998149@qq.com> - 0.1.0-2
|
|
|
|
|
- Type:Bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:Static link plg_grpc_proto
|
|
|
|
|
|
2022-08-25 21:14:59 +08:00
|
|
|
* Fri Aug 26 2022 liyancheng <412998149@qq.com> - 0.1.0-1
|
|
|
|
|
- Type:Init
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:Init pin-server repository
|