diff --git a/0001-fixed-incorrect-installation-path.patch b/0001-fixed-incorrect-installation-path.patch new file mode 100644 index 0000000000000000000000000000000000000000..7c3f838d2aa43c88e35dd0b95bd9b00499eb69b8 --- /dev/null +++ b/0001-fixed-incorrect-installation-path.patch @@ -0,0 +1,27 @@ +From 598ff3f688c14a5c17cc8f71d75c48767797ddd1 Mon Sep 17 00:00:00 2001 +From: Mingchuan Wu +Date: Thu, 29 Sep 2022 11:57:54 +0800 +Subject: [PATCH] [Pin-server] Fixed incorrect installation path in + CMakeLists.txt Fixed incorrect installation path for libpin_user.sha256 in + CMakeLists.txt. + +--- + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 44dfd32..7615077 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -58,7 +58,7 @@ target_link_libraries(pin_server + install(TARGETS pin_server RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) + install(TARGETS pin_user LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) + include(GNUInstallDirs) +-install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libpin_user.sha256" DESTINATION lib) ++install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libpin_user.sha256" DESTINATION ${CMAKE_INSTALL_LIBDIR}) + + # uninstall target + if(NOT TARGET uninstall) +-- +2.33.0 + diff --git a/0001-static-link-plg_grpc_proto.patch b/0001-static-link-plg_grpc_proto.patch deleted file mode 100644 index 40ef355191ea2d10ccae673125005848ac77a2e1..0000000000000000000000000000000000000000 --- a/0001-static-link-plg_grpc_proto.patch +++ /dev/null @@ -1,14 +0,0 @@ -diff --git a/CMakeLists.txt b/CMakeLists.txt -index e713c1b..ec07e26 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -28,7 +28,7 @@ add_custom_command( - include_directories("${CMAKE_CURRENT_BINARY_DIR}") - - # plg_grpc_proto --add_library(plg_grpc_proto -+add_library(plg_grpc_proto STATIC - ${plg_grpc_srcs} - ${plg_grpc_hdrs} - ${plg_proto_srcs} - diff --git a/pin-server-0.1.0.tar.gz b/pin-server-0.1.0.tar.gz deleted file mode 100644 index b3d4938afae1c9118f4b8346852725825cd1b6b1..0000000000000000000000000000000000000000 Binary files a/pin-server-0.1.0.tar.gz and /dev/null differ diff --git a/pin-server-0.2.0.tar.gz b/pin-server-0.2.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..802013411fd59c8dcfc17fcd69aa239731f90329 Binary files /dev/null and b/pin-server-0.2.0.tar.gz differ diff --git a/pin-server.spec b/pin-server.spec index 5b2cf1871f7fc4dcca97580ed3a8b122f4fdf15c..aab45989acbac0216aba4f010e8b31f97de0803f 100644 --- a/pin-server.spec +++ b/pin-server.spec @@ -1,11 +1,11 @@ Name: pin-server -Version: 0.1.0 -Release: 2 +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-static-link-plg_grpc_proto.patch +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 @@ -42,12 +42,18 @@ cd _build %files %license LICENSE %attr(0755,root,root) %{_bindir}/pin_server -%attr(0644,root,root) %{_bindir}/pin_server.sha256 %files demo -%attr(0755,root,root) %{_libdir}/libuser.so +%attr(0755,root,root) %{_libdir}/libpin_user.so +%attr(0644,root,root) %{_libdir}/libpin_user.sha256 %changelog +* Thu Sep 29 2022 wumingchuan - 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