diff --git a/nano/nano_rpc/CMakeLists.txt b/nano/nano_rpc/CMakeLists.txt index 1cb28ab8..9c22d5cb 100644 --- a/nano/nano_rpc/CMakeLists.txt +++ b/nano/nano_rpc/CMakeLists.txt @@ -19,3 +19,9 @@ target_compile_definitions(nano_rpc -DNANO_VERSION_MAJOR=${CPACK_PACKAGE_VERSION_MAJOR} -DNANO_VERSION_MINOR=${CPACK_PACKAGE_VERSION_MINOR} -DNANO_VERSION_PATCH=${CPACK_PACKAGE_VERSION_PATCH}) + +install(TARGETS nano_rpc + RUNTIME DESTINATION bin + LIBRARY DESTINATION lib + ARCHIVE DESTINATION lib +) diff --git a/nanocurrency-beta.spec.in b/nanocurrency-beta.spec.in index ed44481c..520820bd 100644 --- a/nanocurrency-beta.spec.in +++ b/nanocurrency-beta.spec.in @@ -40,6 +40,7 @@ if [ ! %{buildroot} = "/" ]; then %{__rm} -rf %{buildroot}; fi mkdir -p %{buildroot}/usr/bin mkdir -p %{buildroot}/etc/systemd/system/ cp nano_node %{buildroot}/usr/bin/nano_node-beta +cp nano_rpc %{buildroot}/usr/bin/nano_rpc-beta cp etc/systemd/nanocurrency-beta.service %{buildroot}/etc/systemd/system/nanocurrency-beta.service %clean diff --git a/nanocurrency.spec.in b/nanocurrency.spec.in index a00c693a..d68f21b6 100644 --- a/nanocurrency.spec.in +++ b/nanocurrency.spec.in @@ -40,6 +40,7 @@ if [ ! %{buildroot} = "/" ]; then %{__rm} -rf %{buildroot}; fi mkdir -p %{buildroot}/usr/bin mkdir -p %{buildroot}/etc/systemd/system/ cp nano_node %{buildroot}/usr/bin/nano_node +cp nano_rpc %{buildroot}/usr/bin/nano_rpc cp etc/systemd/nanocurrency.service %{buildroot}/etc/systemd/system/nanocurrency.service %clean