## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 3; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %bcond_without tests Name: fatcat Version: 1.1.1 Release: %autorelease Summary: FAT filesystems explore, extract, repair, and forensic tool License: MIT URL: https://github.com/Gregwar/fatcat Source: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz # Port the test suite to PHPUnit 9+ Patch: %{url}/pull/43.patch # php-scl needed by phpunit10 not available # and this package never gets released for ix86 ExcludeArch: %{ix86} BuildRequires: gcc-c++ BuildRequires: cmake BuildRequires: sed %if %{with tests} BuildRequires: phpunit10 %endif Suggests: %{name}-doc %description fatcat is a tool is designed to manipulate FAT filesystems, in order to explore, extract, repair, recover and forensic them. It currently supports FAT12, FAT16 and FAT32. %package doc Summary: Documentation for %{name} BuildArch: noarch %description doc This package contains additional documentation for %{name}. %prep %autosetup -p1 # Remove bundled Windows-only dependency rm -r src/xgetopt sed -i '/xgetopt/d' CMakeLists.txt %build %cmake %cmake_build %install %cmake_install install -Dpm0644 -t %{buildroot}%{_mandir}/man1 man/fatcat.1 %if %{with tests} %check PATH="%{buildroot}/%{_bindir}:${PATH}" phpunit10 %endif %files %license LICENSE %doc README.md %{_bindir}/fatcat %{_mandir}/man1/fatcat.1* %files doc %license LICENSE %doc docs/* %changelog ## START: Generated by rpmautospec * Tue Jul 30 2024 Michel Lind - 1.1.1-3 - Explicitly use phpunit10 for tests - Fixes: rhbz#2300665 - Disable ix86 build, this is not a library * Wed Jul 17 2024 Fedora Release Engineering - 1.1.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Wed Jan 24 2024 Davide Cavalca - 1.1.1-1 - Update to 1.1.1 and fix FTBFS * Wed Jan 24 2024 Fedora Release Engineering - 1.1.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 19 2024 Fedora Release Engineering - 1.1.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Wed Jul 19 2023 Fedora Release Engineering - 1.1.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jan 19 2023 Fedora Release Engineering - 1.1.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Jul 21 2022 Fedora Release Engineering - 1.1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Jan 20 2022 Fedora Release Engineering - 1.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Aug 20 2021 Davide Cavalca - 1.1.0-1 - Initial import; Fixes: RHBZ#1983841 ## END: Generated by rpmautospec