File fatcat.spec of Package fatcat
#
# spec file for package fatcat
#
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: fatcat
Version: 1.1.0
Release: 0
Summary: FAT filesystems explore, extract, repair, and forensic tool
License: MIT
Group: System/Filesystems
URL: https://github.com/Gregwar/fatcat
Source: %{url}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: %{name}.changes
Source2: %{name}-rpmlintrc
# Output 8DOT3 short filenames whenever possible
Patch0: 0001-Output-8DOT3-short-filenames-whenever-possible.patch
# Make volume labels distinguishable from files
Patch1: 0002-Make-volume-labels-distinguishable-from-files.patch
# Don't skip files that have no archive attribute set
Patch2: 0003-Don-t-skip-files-that-have-no-archive-attribute-set.patch
# Fix spelling and grammar -- Arachnos
Patch3: 0004-Fix-spelling-and-grammar.patch
BuildRequires: cmake >= 2.8
BuildRequires: gcc-c++
%description
This 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 docs
Summary: FAT filesystems explore, extract, repair, and forensic tool - docs
Group: System/Filesystems
Requires: %{name} = %{version}-%{release}
BuildArch: noarch
%description docs
This package contains extra documentations and examples for %{name}.
%prep
%autosetup -p1
%build
%cmake
%cmake_build
%install
%cmake_install
# install man page
install -Dpm 0644 man/%{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
# install docs and tests
install -dm 0755 %{buildroot}%{_datadir}/%{name}
cp -prt %{buildroot}%{_datadir}/%{name} docs tests
%files
%license LICENSE
%doc README.md
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1%{?ext_man}
%files docs
%{_datadir}/%{name}/
%changelog