1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2024-12-13 09:07:04 +01:00
strawberry-audio-player-win.../cmake/Rpm.cmake

13 lines
693 B
CMake
Raw Normal View History

2018-02-27 18:06:05 +01:00
set(RPMBUILD_DIR ~/rpmbuild CACHE STRING "Rpmbuild directory, for the rpm target")
set(MOCK_COMMAND mock CACHE STRING "Command to use for running mock")
2018-03-31 22:54:16 +02:00
set(MOCK_CHROOT suse-x86_64 CACHE STRING "Chroot to use when building an rpm with mock")
set(RPM_DISTRO suse CACHE STRING "Suffix of the rpm file")
2018-02-27 18:06:05 +01:00
set(RPM_ARCH x86_64 CACHE STRING "Architecture of the rpm file")
add_custom_target(rpm
2018-07-03 17:51:52 +02:00
COMMAND ${CMAKE_SOURCE_DIR}/dist/scripts/maketarball.sh
COMMAND ${CMAKE_COMMAND} -E copy strawberry-${STRAWBERRY_VERSION_PACKAGE}.tar.xz ${RPMBUILD_DIR}/SOURCES/
2018-07-03 17:51:52 +02:00
COMMAND rpmbuild -bs ${CMAKE_SOURCE_DIR}/dist/rpm/strawberry.spec
COMMAND rpmbuild -bb ${CMAKE_SOURCE_DIR}/dist/rpm/strawberry.spec
2018-02-27 18:06:05 +01:00
)