68 lines
1.6 KiB
RPMSpec
68 lines
1.6 KiB
RPMSpec
Name: pin-server
|
|
Version: 0.2.0
|
|
Release: 1
|
|
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
|
|
Patch0: 0001-fixed-incorrect-installation-path.patch
|
|
|
|
BuildRequires: gcc gcc-c++ cmake make pkgconfig grpc grpc-plugins grpc-devel protobuf-devel jsoncpp-devel
|
|
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
|
|
%patch0 -p1
|
|
mkdir -p _build
|
|
cd _build
|
|
%{cmake} .. -DCMAKE_INSTALL_PREFIX=%{_usr} -DCMAKE_INSTALL_LIBDIR=%{_libdir}
|
|
|
|
%build
|
|
cd _build
|
|
%make_build
|
|
|
|
%install
|
|
cd _build
|
|
%make_install
|
|
|
|
%files
|
|
%license LICENSE
|
|
%attr(0755,root,root) %{_bindir}/pin_server
|
|
|
|
%files demo
|
|
%attr(0755,root,root) %{_libdir}/libpin_user.so
|
|
%attr(0644,root,root) %{_libdir}/libpin_user.sha256
|
|
|
|
%changelog
|
|
* Thu Sep 29 2022 wumingchuan <wumingchuan1992@foxmail.com> - 0.2.0-1
|
|
- Type:Update
|
|
- ID:NA
|
|
- SUG:NA
|
|
- DESC:Update to v0.2.0
|
|
|
|
* Sat Aug 27 2022 liyancheng <412998149@qq.com> - 0.1.0-2
|
|
- Type:Bugfix
|
|
- ID:NA
|
|
- SUG:NA
|
|
- DESC:Static link plg_grpc_proto
|
|
|
|
* Fri Aug 26 2022 liyancheng <412998149@qq.com> - 0.1.0-1
|
|
- Type:Init
|
|
- ID:NA
|
|
- SUG:NA
|
|
- DESC:Init pin-server repository
|