nano_rpc included in packaging (#1961)

* include nano_rpc in package targets

* protect nano_rpc from packaging if apple

* Update CMakeLists.txt

whitespace change

* Revert "protect nano_rpc from packaging if apple"

This reverts commit 69d8a597cd51adcdd4bb715a0e09178fd1db29f7.
This commit is contained in:
Russel Waters 2019-05-06 13:47:24 -04:00 committed by GitHub
commit 05b6abcfd1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 0 deletions

View file

@ -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
)

View file

@ -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

View file

@ -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