diff --git a/CMakeLists.txt b/CMakeLists.txt index bd0cca4..1697ae8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,9 +1,8 @@ -cmake_minimum_required(VERSION 3.5...4.0) - project(chunkfs LANGUAGES C ) +cmake_minimum_required(VERSION 3.0) set(VERSION 0.8) add_definitions(-DVERSION="${VERSION}") @@ -30,30 +29,11 @@ add_executable(unchunkfs target_link_libraries(unchunkfs fuse) -# Define the manpage output file -set(MANPAGE_OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/chunkfs.1") +add_custom_target(manpage ALL) -# Custom command to generate the manpage -add_custom_command( - OUTPUT ${MANPAGE_OUTPUT} - COMMAND pod2man - --center="" - --name="CHUNKFS" - --release="ChunkFS ${VERSION}" - --section=1 - "${CMAKE_SOURCE_DIR}/manpage.pod" - "${MANPAGE_OUTPUT}" - DEPENDS "${CMAKE_SOURCE_DIR}/manpage.pod" - COMMENT "Generating chunkfs.1 manpage" - VERBATIM -) - -# Custom target to depend on the manpage output -add_custom_target( - manpage - ALL - DEPENDS ${MANPAGE_OUTPUT} -) +add_custom_command(TARGET manpage + COMMAND pod2man -c '' -n CHUNKFS -r 'ChunkFS ${VERSION}' -s 1 ${CMAKE_SOURCE_DIR}/manpage.pod chunkfs.1 + ) execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink chunkfs.1 unchunkfs.1 WORKING_DIRECTORY ${CMAKE_BINARY_DIR}) diff --git a/chunkfs.spec b/chunkfs.spec index cb213fe..b7eef72 100644 --- a/chunkfs.spec +++ b/chunkfs.spec @@ -1,10 +1,9 @@ Name: chunkfs Version: 0.8 -Release: 13%{?dist} +Release: 4%{?dist} Summary: FUSE based filesystem that allows you to mount an arbitrary file or block device -# Automatically converted from old format: GPLv2+ - review is highly recommended. -License: GPL-2.0-or-later +License: GPLv2+ URL: https://chunkfs.florz.de/ Source0: https://chunkfs.florz.de/%{name}_%{version}.tar.xz Source100: CMakeLists.txt @@ -51,33 +50,6 @@ install %{SOURCE100} . %changelog -* Wed Jul 23 2025 Fedora Release Engineering - 0.8-13 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild - -* Thu Jan 16 2025 Fedora Release Engineering - 0.8-12 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild - -* Fri Jul 26 2024 Miroslav Suchý - 0.8-11 -- convert license to SPDX - -* Wed Jul 17 2024 Fedora Release Engineering - 0.8-10 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild - -* Tue Jan 23 2024 Fedora Release Engineering - 0.8-9 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - -* Fri Jan 19 2024 Fedora Release Engineering - 0.8-8 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - -* Wed Jul 19 2023 Fedora Release Engineering - 0.8-7 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild - -* Wed Jan 18 2023 Fedora Release Engineering - 0.8-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild - -* Wed Jul 20 2022 Fedora Release Engineering - 0.8-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild - * Wed Jan 19 2022 Fedora Release Engineering - 0.8-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild