Name: platon-mpc Version: 0.0.1 Release: 1%{?dist} Summary: PlatON MPC virtual machine License: GPL-3.0 URL: https://github.com/PlatONnetwork Source0: platon-mpc-0.0.1.tar.gz BuildRequires: gcc, cmake >= 2.8 Requires: openssl-devel %description mpc virtual meachine %prep %setup -q %build cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release %install make DESTDIR=$RPM_BUILD_ROOT install %files /usr/include/PlatON/ /usr/bin/PlatON/ /usr/lib/PlatON/ %attr(0755, root, root) /usr/bin/PlatON/* %doc %changelog %post # ############ cd /usr/lib ln -sf /usr/lib/PlatON/libemp-tool.so.0.1.0 libemp-tool.so.0.1.0 ln -sf /usr/lib/PlatON/libGlacier2++11.so.36 libGlacier2++11.so.36 ln -sf /usr/lib/PlatON/libhiredis.so.0.14 libhiredis.so.0.14 ln -sf /usr/lib/PlatON/libIce++11.so.36 libIce++11.so.36 ln -sf /usr/lib/PlatON/libIceUtil++11.so.36 libIceUtil++11.so.36 ln -sf /usr/lib/PlatON/libjsonrpccpp-client.so.1 libjsonrpccpp-client.so.1 ln -sf /usr/lib/PlatON/libjsonrpccpp-common.so.1 libjsonrpccpp-common.so.1 ln -sf /usr/lib/PlatON/libjsonrpccpp-server.so.1 libjsonrpccpp-server.so.1 ln -sf /usr/lib/PlatON/libmicrohttpd.so.12 libmicrohttpd.so.12 ln -sf /usr/lib/PlatON/libmpc_vm_platonsdk.so.0.1.0 libmpc_vm_platonsdk.so.0.1.0 ln -sf /usr/lib/PlatON/libmpc_vm_service.so.0.1.0 libmpc_vm_service.so.0.1.0 ln -sf /usr/lib/PlatON/libmpc-jit.so.6 libmpc-jit.so.6 ln -sf /usr/lib/PlatON/librelic.so librelic.so ln -sf libemp-tool.so.0.1.0 libemp-tool.so ln -sf libGlacier2++11.so.36 libGlacier2++11.so ln -sf libhiredis.so.0.14 libhiredis.so ln -sf libIce++11.so.36 libIce++11.so ln -sf libIceUtil++11.so.36 libIceUtil++11.so ln -sf libjsonrpccpp-client.so.1 libjsonrpccpp-client.so ln -sf libjsonrpccpp-common.so.1 libjsonrpccpp-common.so ln -sf libjsonrpccpp-server.so.1 libjsonrpccpp-server.so ln -sf libmicrohttpd.so.12 libmicrohttpd.so ln -sf libmpc_vm_platonsdk.so.0.1.0 libmpc_vm_platonsdk.so ln -sf libmpc_vm_service.so.0.1.0 libmpc_vm_service.so ln -sf libmpc-jit.so.6 libmpc-jit.so chmod 755 /usr/bin/PlatON/* ln -sf /usr/bin/PlatON/protoc /usr/bin/protoc cd - # ############ %postun cd /usr/lib rm -f libemp-tool.so.0.1.0 rm -f libGlacier2++11.so.36 rm -f libhiredis.so.0.14 rm -f libIce++11.so.36 rm -f libIceUtil++11.so.36 rm -f libjsonrpccpp-client.so.1 rm -f libjsonrpccpp-common.so.1 rm -f libjsonrpccpp-server.so.1 rm -f libmicrohttpd.so.12 rm -f libmpc_vm_platonsdk.so.0.1.0 rm -f libmpc_vm_service.so.0.1.0 rm -f libmpc-jit.so.6 rm -f librelic.so rm -f libemp-tool.so rm -f libGlacier2++11.so rm -f libhiredis.so rm -f libIce++11.so rm -f libIceUtil++11.so rm -f libjsonrpccpp-client.so rm -f libjsonrpccpp-common.so rm -f libjsonrpccpp-server.so rm -f libmicrohttpd.so rm -f libmpc_vm_platonsdk.so rm -f libmpc_vm_service.so rm -f libmpc-jit.so rm -f /usr/bin/protoc cd -