File discimagecreator.spec of Package discimagecreator

#
# spec file for package discimagecreator
#
# Copyright (c) 2024 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/
#


%define _realname DiscImageCreator
Name:           discimagecreator
Version:        20250901
Release:        0
Summary:        Optical media backup tool
License:        Apache-2.0
Group:          Productivity/Multimedia/CD/Grabbers
URL:            http://forum.redump.org/topic/10483/discimagecreator/
Source0:        https://github.com/saramibreak/DiscImageCreator/archive/refs/tags/%{version}.tar.gz#/%{_realname}-%{version}.tar.gz
BuildRequires:  gcc-c++
BuildRequires:  meson

%description
This command-line program dumps CD, GD, DVD, HD-DVD, BD, GC/Wii, XBOX, XBOX 360 and Floppy.
CD and GD, it can dump considering a drive + CD (=combined) offset.
It creates checksums and a compatible log/dat for http://redump.org.
DiscImageCreator generates a digital copy of the disc as accurate as possible

%prep
%setup -q -n %{_realname}-%{version}

%build
%meson
%meson_build

%install
%meson_install
# symlink to access program with lowercase only
ln -s %{_realname} %{buildroot}%{_bindir}/%{name}

%files
%license LICENSE
%doc README.md
%doc Release_ANSI/Doc/ChangeLog.txt Release_ANSI/Doc/TestedDrive.txt Release_ANSI/Doc/KnownIssue.txt Release_ANSI/Doc/Reference.md
%{_bindir}/%{_realname}
%{_bindir}/%{name}
%dir %{_datadir}/%{_realname}
%{_datadir}/%{_realname}/default.dat
%{_datadir}/%{_realname}/driveOffset.txt

%changelog
openSUSE Build Service is sponsored by