Skip to content

Commit 70ab2d3

Browse files
authored
Merge branch 'main' into dependabot/github_actions/github-actions-91b2618d65
Signed-off-by: Björn Svensson <bjorn.a.svensson@est.tech>
2 parents ea0c61f + e2ff4f0 commit 70ab2d3

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,23 +36,20 @@ jobs:
3636
container: rockylinux:8
3737
steps:
3838
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
39-
4039
- name: Install dependencies
4140
run: |
4241
dnf -y upgrade --refresh
4342
dnf -y install https://rpms.remirepo.net/enterprise/remi-release-8.rpm
44-
dnf -y module install redis:remi-6.0
4543
dnf -y group install "Development Tools"
4644
dnf -y install openssl-devel cmake libevent-devel valkey
47-
48-
- name: Build using cmake
45+
- name: Build using CMake
4946
env:
5047
EXTRA_CMAKE_OPTS: -DENABLE_EXAMPLES:BOOL=ON -DENABLE_TLS:BOOL=ON
51-
run: mkdir build && cd build && cmake .. && make
52-
48+
run: |
49+
mkdir build && cd build && cmake .. && make
50+
cpack -G RPM
5351
- name: Build using Makefile
5452
run: USE_TLS=1 TEST_ASYNC=1 make
55-
5653
- name: Run tests
5754
working-directory: tests
5855
env:

CMakeLists.txt

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ getDefinedVersion(VERSION_MAJOR)
1111
getDefinedVersion(VERSION_MINOR)
1212
getDefinedVersion(VERSION_PATCH)
1313
set(VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}")
14-
MESSAGE("Detected version: ${VERSION}")
14+
message("Detected libvalkey version: ${VERSION}")
1515

16-
PROJECT(valkey LANGUAGES "C" VERSION "${VERSION}")
16+
project(libvalkey LANGUAGES "C" VERSION "${VERSION}")
1717
INCLUDE(GNUInstallDirs)
1818

1919
OPTION(BUILD_SHARED_LIBS "Build shared libraries" ON)
@@ -94,8 +94,9 @@ TARGET_INCLUDE_DIRECTORIES(valkey
9494
CONFIGURE_FILE(valkey.pc.in valkey.pc @ONLY)
9595

9696
set(CPACK_PACKAGE_VENDOR "Valkey")
97+
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Minimalistic C client library for Valkey")
9798
set(CPACK_PACKAGE_DESCRIPTION "\
98-
Libvalkey is a minimalistic C client library for the Valkey, KeyDB, and Redis databases
99+
Libvalkey is a minimalistic C client library for the Valkey, KeyDB, and Redis databases.
99100
100101
It is minimalistic because it just adds minimal support for the protocol, \
101102
but at the same time it uses a high level printf-alike API in order to make \
@@ -107,7 +108,7 @@ reply parser that is decoupled from the I/O layer. It is a stream parser designe
107108
for easy reusability, which can for instance be used in higher level language bindings \
108109
for efficient reply parsing.
109110
110-
valkey only supports the binary-safe RESP protocol, so you can use it with any Redis \
111+
Libvalkey only supports the binary-safe RESP protocol, so you can use it with any Redis \
111112
compatible server >= 1.2.0.
112113
113114
The library comes with multiple APIs. There is the synchronous API, the asynchronous API \
@@ -116,7 +117,9 @@ set(CPACK_PACKAGE_HOMEPAGE_URL "https://github.com/valkey-io/libvalkey")
116117
set(CPACK_PACKAGE_CONTACT "michael dot grunder at gmail dot com")
117118
set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
118119
set(CPACK_RPM_PACKAGE_AUTOREQPROV ON)
119-
120+
set(CPACK_RPM_PACKAGE_DESCRIPTION "${CPACK_PACKAGE_DESCRIPTION}")
121+
set(CPACK_RPM_PACKAGE_GROUP "Productivity/Databases/Clients")
122+
set(CPACK_RPM_PACKAGE_LICENSE "BSD-3-Clause")
120123
include(CPack)
121124

122125
INSTALL(TARGETS valkey

0 commit comments

Comments
 (0)