Fix .deb package generation.

Update the README instructions, too, since fakeroot is essential.
Ubuntu 11.04 did not want to accept the package previously.
This commit is contained in:
Přemysl Eric Janouch 2011-04-21 14:43:40 +02:00
parent ef2966e9bc
commit 423afa8eec
2 changed files with 3 additions and 2 deletions

View File

@ -304,7 +304,7 @@ endif (WIN32)
# CPack
set (CPACK_PACKAGE_DESCRIPTION_SUMMARY "Schematic editor")
set (CPACK_PACKAGE_VENDOR "Premysl Janouch")
set (CPACK_PACKAGE_CONTACT "p.janouch@gmail.com")
set (CPACK_PACKAGE_CONTACT "Přemysl Janouch <p.janouch@gmail.com>")
set (CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE")
set (CPACK_PACKAGE_VERSION_MAJOR ${project_VERSION_MAJOR})
set (CPACK_PACKAGE_VERSION_MINOR ${project_VERSION_MINOR})
@ -314,6 +314,7 @@ if (WIN32)
set (CPACK_GENERATOR "NSIS;ZIP")
else (WIN32)
set (CPACK_GENERATOR "TGZ;ZIP")
set (CPACK_SET_DESTDIR TRUE)
endif (WIN32)
set (CPACK_PACKAGE_FILE_NAME

View File

@ -40,7 +40,7 @@ Now you have two basic choices of installing the application:
system package manager. CMake offers DEB and RPM.
After _cpack_ finishes making the package, install this file.
$ cpack -G DEB
$ fakeroot cpack -G DEB
# dpkg -i logdiag-0.0-Linux-x86_64.deb
# Building from sources on Windows