Skip to content

Commit

Permalink
add rpm gen directives
Browse files Browse the repository at this point in the history
  • Loading branch information
fwang2 committed Dec 6, 2018
1 parent 4a6877e commit fe063a1
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
.ropeproject
.swp
build
build-*
dist
tags
pcircle.egg-info
Expand Down
16 changes: 14 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ configure_file(
)

# Add POP and externals
add_subdirectory (pop)
add_subdirectory(pop)
add_subdirectory(externals)
add_subdirectory(utils)

Expand Down Expand Up @@ -84,4 +84,16 @@ endif()

if (P2_BUILD_TESTING)
add_subdirectory(tests)
endif()
endif()


set(CPACK_PACKAGE_NAME pcircle)
set(CPACK_PACKAGE_DESCRIPTION "A set of parallel filesystem tools")
set(CPACK_PACKAGE_VERSION_MAJOR 0)
set(CPACK_PACKAGE_VERSION_MINOR 19)
set(CPACK_PACKAGE_VERSION_PATCH 1)
set(CPACK_PACKAGE_HOMEPAGE_URL http://www.github.com/olcf/pcircle)
set(CPACK_GENERATOR "RPM")
set(CPACK_RPM_PACKAGE_REQUIRES_PRE "openmpi")
install(TARGETS fprof RUNTIME DESTINATION bin)
include(CPack)
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ feedbacks, please post it here at https://github.com/olcf/pcircle/issues.
## Build from source: (RHEL/CentOS 7)

git clone http://github.com/olcf/pcircle
cd pcircle; mkdir build; cd build; cmake3 ..
cd pcircle; ./buildme.sh

This should build the `fprof` binary by default in the `build` directory.

Expand Down
14 changes: 14 additions & 0 deletions buildme.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash
mkdir -p build
cd build
if [ -f /bin/cmake3 ]; then
cmake3 ..
else
cmake ..
fi

make

echo ""
echo "Binary is written in ./build"
echo ""

0 comments on commit fe063a1

Please sign in to comment.