From 09138df35bab32f990f37cec523f61b7654e5ef3 Mon Sep 17 00:00:00 2001 From: Jiri Hnidek Date: Mon, 22 Jan 2024 13:55:50 +0100 Subject: [PATCH 1/5] feat: Added initial packit conf file to git repository --- .packit.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .packit.yml diff --git a/.packit.yml b/.packit.yml new file mode 100644 index 0000000..955723f --- /dev/null +++ b/.packit.yml @@ -0,0 +1,21 @@ +upstream_package_name: daemon +downstream_package_name: daemon +specfile_path: daemon.spec + +srpm_build_deps: + - tito + - gcc + - git-core + - make + - rpm-build + - 'pkgconfig(systemd)' + +jobs: + - job: copr_build + trigger: pull_request + targets: + - centos-stream-8 + - centos-stream-9 + - fedora-all + - rhel-8 + - rhel-9 \ No newline at end of file From f3cba7906c7bdda2e6c6db26c0cea18c2801f83f Mon Sep 17 00:00:00 2001 From: Jiri Hnidek Date: Tue, 23 Jan 2024 09:52:39 +0100 Subject: [PATCH 2/5] fix: Small changes of daemon.spec file --- daemon.spec | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/daemon.spec b/daemon.spec index 899b5cc..8e9d85d 100644 --- a/daemon.spec +++ b/daemon.spec @@ -4,7 +4,7 @@ Name: daemon -Version: 0.1 +Version: 0.2 Release: 1%{?dist} Summary: Example of daemon @@ -46,7 +46,7 @@ exit 0 %build # We have to use build type "Debug" to be able to create all variants of -# rpm packages (debuginfo, debugsource). The normal rpm is stripped from +# rpm packages (debuginfo, debug source). The normal rpm is stripped from # debug information. Following macro just run cmake and it generates Makefile %cmake -DCMAKE_BUILD_TYPE="Debug" @@ -88,9 +88,21 @@ rm -rf $RPM_BUILD_ROOT # This is section, where you should describe all important changes # in RPM %changelog +* Mon Jan 22 2024 Jiri Hnidek +- Add initial support for Packit +- Updated version of daemon to 0.2 + +* Tue Oct 24 2023 Jiri Hnidek +- Fix building of RPM on COPR + +* Wed Sep 29 2021 Jiri Hnidek +- Use non-root user for runnig daemon + +* Mon Sep 27 2021 Jiri Hnidek +- Use GitHub Actions for building RPM * Fri Aug 27 2021 Jiri Hnidek -- new package built with tito +- RPM package built with tito * Fri Aug 27 2021 Jiri Hnidek - Added first version of daemon.spec From 0ef1147dc11bfb65f401c3cc520cfb94e5671929 Mon Sep 17 00:00:00 2001 From: Jiri Hnidek Date: Tue, 23 Jan 2024 09:53:18 +0100 Subject: [PATCH 3/5] fix: Small typo in comment. --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b5afce6..77b2ac6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,7 +12,7 @@ env: jobs: build: - # The CMake configure and build commands are platform agnostic and should work equally + # The CMake configure and build commands are platform-agnostic and should work equally # well on Windows or Mac. You can convert this to a matrix build if you need # cross-platform coverage. # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix From ec8b8b76a6023552ce1689445dcb6ec2b089dba2 Mon Sep 17 00:00:00 2001 From: Jiri Hnidek Date: Tue, 23 Jan 2024 10:13:42 +0100 Subject: [PATCH 4/5] fix: Do not set any version in CMakeLists.txt --- CMakeLists.txt | 8 -------- 1 file changed, 8 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4823c8e..06b27ed 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,14 +13,6 @@ endif () # Define project name project (Daemon C) -# The version number -set (${PROJECT_NAME}_VERSION_MAJOR 0) -set (${PROJECT_NAME}_VERSION_MINOR 1) -set (${PROJECT_NAME}_PATCH_LEVEL 0) - -set (${PROJECT_NAME}_VERSION - "${${PROJECT_NAME}_VERSION_MAJOR}.${${PROJECT_NAME}_VERSION_MINOR}") - # Set up directory with 3rd party cmake modules set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/build_files/cmake/modules/") From 9566c5854f8c5e6d712f850aae2a17913a583ebc Mon Sep 17 00:00:00 2001 From: Jiri Hnidek Date: Tue, 22 Oct 2024 11:16:12 +0200 Subject: [PATCH 5/5] Removed support for RHELs and Centos Stream 8 from packit build. --- .packit.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.packit.yml b/.packit.yml index 955723f..435d731 100644 --- a/.packit.yml +++ b/.packit.yml @@ -14,8 +14,6 @@ jobs: - job: copr_build trigger: pull_request targets: - - centos-stream-8 - centos-stream-9 - - fedora-all - - rhel-8 - - rhel-9 \ No newline at end of file + - centos-stream-10 + - fedora-all \ No newline at end of file