File squashfs-tools.spec of Package squashfs-tools

#
# spec file for package squashfs-tools
#
# Copyright (c) 2022 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:           squashfs-tools
Version:        4.7
Release:        0
Summary:        Squashfs image helper tools
License:        GPL-2.0-only
Group:          System/Filesystems
URL:            https://github.com/plougher/squashfs-tools
Source:         https://github.com/plougher/squashfs-tools/archive/refs/tags/%{version}.tar.gz#/squashfs-tools-%{version}.tar.gz
BuildRequires:  gcc
BuildRequires:  make
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(liblz4)
BuildRequires:  pkgconfig(liblzma)
BuildRequires:  pkgconfig(libzstd)
BuildRequires:  pkgconfig(lzo2)
BuildRequires:  pkgconfig(zlib)

%description
Tools to create and extract Squashfs filesystems.

%prep
%autosetup

%build
%make_build -C squashfs-tools

%install
%make_install -C squashfs-tools \
  INSTALL_PREFIX=%{buildroot}%{_prefix} \
  INSTALL_MANPAGES_DIR=%{buildroot}%{_mandir} \
  USE_PREBUILT_MANPAGES=y

%files
%license COPYING
%doc CHANGES README USAGE
%{_bindir}/mksquashfs
%{_bindir}/unsquashfs
%{_bindir}/sqfscat
%{_bindir}/sqfstar
%{_mandir}/mksquashfs.1%{?ext_man}
%{_mandir}/sqfscat.1%{?ext_man}
%{_mandir}/sqfstar.1%{?ext_man}
%{_mandir}/unsquashfs.1%{?ext_man}

%changelog
openSUSE Build Service is sponsored by