File sacd_extract.spec of Package sacd_extract
#
# spec file for package sacd_extract
#
# Copyright (c) 2025 SUSE LLC and contributors
#
# 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: sacd_extract
Version: 0.3.9.3b
Release: 0
Summary: A SACD file extractor
License: GPL-2.0-only
Group: Productivity/Multimedia/Sound/Editors and Convertors
URL: https://sacd-ripper.github.io/
ExclusiveArch: i586 x86_64
Source0: %{name}-%{version}.tar.xz
BuildRequires: cmake
BuildRequires: dos2unix
BuildRequires: libxml2-devel
%description
SACD Extract allows you to extract individual tracks from SACD ISO files when operated in file mode or from the SACD Ripper when operated in Daemon mode.
%package doc
Summary: Documentation for %{name}
Group: Documentation/Man
BuildArch: noarch
Requires: %{name} = %{version}
%description doc
This package contains the documentation for %{name}.
%prep
%setup -q
dos2unix todo
%build
cd tools/%{name}
%if 0%{?suse_version} && 0%{?suse_version} < 1300
%{__mkdir_p} build
cd build
cmake ..
%else
%cmake
%endif
%{__make} %{?_smp_mflags}
%{__strip} -s %{name}
%install
%{__install} -D -m 0755 -p tools/%{name}/build/%{name} %{buildroot}/%{_bindir}/%{name}
%check
%files
%defattr(-,root,root,-)
%attr(755,root,root) %{_bindir}/%{name}
%files doc
%defattr(-,root,root,-)
%doc readme.rst todo docs/
%license COPYING
%changelog