-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
174 additions
and
168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -90,8 +90,8 @@ | |
|
||
# FILENAME_EXTRA | ||
# Default is blank. Ocelot passes -DFILENAME_EXTRA="qt4" when building with qt4, | ||
# so the final package name will look like ocelotgui-1.0.1qt4-1_amd64.deb or | ||
# ocelotgui-1.0.1qt4-1.x86_64.rpm. Ordinarily it should not be specified. | ||
# so the final package name will look like ocelotgui-1.0.2qt4-1_amd64.deb or | ||
# ocelotgui-1.0.2qt4-1.x86_64.rpm. Ordinarily it should not be specified. | ||
|
||
# FILENAME_RELEASE | ||
# Default is "1". This affects filenames generated by cpack. Ordinarily it doesn't need to be changed. | ||
|
@@ -105,24 +105,24 @@ | |
# cmake . -DCPACK_GENERATOR="DEB" | ||
# make | ||
# cpack | ||
# lintian ocelotgui-1.0.1-1_amd64.deb | ||
# sudo dpkg -i ocelotgui-1.0.1-1_amd64.deb | ||
# lintian ocelotgui-1.0.2-1_amd64.deb | ||
# sudo dpkg -i ocelotgui-1.0.2-1_amd64.deb | ||
# Todo: lintian will warn "new-package-should-close-itp-bug", which we ignore. | ||
# Todo: lintian will warn about permissions if you are not root, which we work around by being root. | ||
|
||
# e.g. to generate .rpm file and install with rpm: | ||
# cmake . -DCPACK_GENERATOR="RPM" | ||
# make | ||
# cpack | ||
# rpmlint ocelotgui-1.0.1-1.x86_64.rpm | ||
# rpm -i ocelotgui-1.0.1-1.x86_64.rpm | ||
# rpmlint ocelotgui-1.0.2-1.x86_64.rpm | ||
# rpm -i ocelotgui-1.0.2-1.x86_64.rpm | ||
# Todo: rpmlint will warn "standard-dir-owned-by-package" for /usr/share/man and /usr/share/man/man1, which we ignore. | ||
# Todo: rpmlint will warn "no-signature", which we ignore. | ||
# Todo: rpmlint will warn "no-packager-tag", wich we ignore. | ||
|
||
# Todo: allow user to pass -DCMAKE_INSTALL_RPATH | ||
|
||
message("-- CmakeLists.txt for ocelotgui 1.0.1") | ||
message("-- CmakeLists.txt for ocelotgui 1.0.2") | ||
message("-- see comments in CMakeLists.txt for special instructions") | ||
message("-- see README.md for general instructions for building") | ||
|
||
|
@@ -295,7 +295,7 @@ endif (CPACK_GENERATOR MATCHES "RPM") | |
if (CPACK_GENERATOR MATCHES "DEB") | ||
#lintian complains changelog-file-missing-in-native-package, this fixes it, | ||
#but lintian will still complain new-package-should-close-itp-bug | ||
#which we cannot fix until version >= 1.0.1 and someone posts an ITP bug | ||
#which we cannot fix until version >= 1.0.2 and someone posts an ITP bug | ||
execute_process(COMMAND cp changelog changelog.bak) | ||
execute_process(COMMAND gzip -9 -f -n changelog) | ||
execute_process(COMMAND mv changelog.bak changelog) | ||
|
@@ -322,21 +322,21 @@ if (CPACK_GENERATOR MATCHES "RPM") | |
install(FILES ocelotgui.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1) | ||
endif (CPACK_GENERATOR MATCHES "RPM") | ||
|
||
# version = 1.0.1 | ||
# version = 1.0.2 | ||
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "GUI client for MySQL or MariaDB") | ||
set(CPACK_PACKAGE_VENDOR "Ocelot Computer Services Inc.") | ||
set(CPACK_PACKAGE_CONTACT "Peter Gulutzan") | ||
set(CPACK_PACKAGE_VERSION_MAJOR "1") | ||
set(CPACK_PACKAGE_VERSION_MINOR "0") | ||
set(CPACK_PACKAGE_VERSION_PATCH "1") | ||
set(CPACK_PACKAGE_VERSION_PATCH "2") | ||
# Todo: set(CPACK_PACKAGE_DESCRIPTION_FILE first-lines-of-README) | ||
# CPACK_PACKAGE_INSTALL_DIRECTORY = default | ||
set(CPACK_PACKAGE_ICON ocelotgui_logo.png) | ||
# CPACK_PROJECT_CONFIG_FILE = nonexistent | ||
|
||
# I assume nobody wants package names like ocelotgui-1.0.1-Linux.deb | ||
# I assume nobody wants package names like ocelotgui-1.0.2-Linux.deb | ||
# but that's what I get if CMAKE_SYSTEM_NAME = "Linux". | ||
# I'd prefer ocelotgui-1.0.1-1_amd64.deb or ocelotgui-1.0.1.x86_64.rpm | ||
# I'd prefer ocelotgui-1.0.2-1_amd64.deb or ocelotgui-1.0.2.x86_64.rpm | ||
# If it's neither "DEB" nor "RPM", CPACK_PACKAGE_FILE_NAME = default. | ||
set(FILENAME_PLATFORM_FOR_DEB "Linux") | ||
set(FILENAME_PLATFORM_FOR_RPM "Linux") | ||
|
@@ -376,7 +376,7 @@ if (CPACK_GENERATOR MATCHES "DEB") | |
# CPACK_RESOURCE_FILE_WELCOME = nonexistent | ||
# CPACK_GENERATOR = we expect it to be specified if cpack will be used. | ||
# CPACK_DEBIAN_PACKAGE_NAME = default = CPACK_PACKAGE_NAME = project name | ||
# CPACK_DEBIAN_PACKAGE_VERSION = default = CPACK_PACKAGE_VERSION = 1.0.1 | ||
# CPACK_DEBIAN_PACKAGE_VERSION = default = CPACK_PACKAGE_VERSION = 1.0.2 | ||
# CPACK_DEBIAN_PACKAGE_DEPENDS = todo? | ||
set(CPACK_DEBIAN_PACKAGE_MAINTAINER "Peter Gulutzan <[email protected]>") | ||
set(CPACK_DEBIAN_PACKAGE_DESCRIPTION "Ocelot GUI (ocelotgui), a database client, allows users to connect to | ||
|
@@ -397,7 +397,7 @@ if (CPACK_GENERATOR MATCHES "RPM") | |
# Todo: For other than Mageia prefer CPACK_RPM_PACKAGE_GROUP "Applications/Databases" | ||
#CPACK_RPM_PACKAGE_SUMMARY = default = CPACK_PACKAGE_DESCRIPTION_SUMMARY | ||
set(CPACK_RPM_PACKAGE_NAME "ocelotgui") | ||
#CPACK_RPM_PACKAGE_VERSION = DEFAULT = CPACK_PACKAGE_VERSION = 1.0.1 | ||
#CPACK_RPM_PACKAGE_VERSION = DEFAULT = CPACK_PACKAGE_VERSION = 1.0.2 | ||
set(CPACK_RPM_PACKAGE_RELEASE ${FILENAME_RELEASE}) | ||
set(CPACK_RPM_PACKAGE_LICENSE GPLv2) | ||
set(CPACK_RPM_PACKAGE_GROUP "Databases") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.