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 diff --git a/.packit.yml b/.packit.yml new file mode 100644 index 0000000..435d731 --- /dev/null +++ b/.packit.yml @@ -0,0 +1,19 @@ +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-9 + - centos-stream-10 + - fedora-all \ No newline at end of file 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/") 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