File cddfs.spec of Package cddfs

#
# spec file for package cddfs
#
# Copyright (c) 2025 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:           cddfs
Version:        0.2
Release:        0
Summary:        FUSE Filesystem to Access Audio CDs
License:        GPL-2.0-or-later
Group:          System/Filesystems
URL:            http://castet.matthieu.free.fr/cddfs/
Source:         http://castet.matthieu.free.fr/cddfs/cddfs-%{version}.tar.gz
Patch1:         cddfs-optflags.patch
Patch2:         cddfs-fix_missing_return.patch
BuildRequires:  fuse-devel
BuildRequires:  gcc
BuildRequires:  glibc-devel
BuildRequires:  make
%if 0%{?suse_version} > 1110
BuildRequires:  cdparanoia-devel
%else
BuildRequires:  cdparanoia
%endif

%description
FUSE userland filesystem to access audio CDs as regular users.

%prep
%setup -q
%patch -P 1
%patch -P 2

%build
%make_build OPTFLAGS="%{optflags}"

%install
install -D -m0755 cddfs "%{buildroot}%{_bindir}/cddfs"

%files
%doc README
%{_bindir}/cddfs

%changelog
openSUSE Build Service is sponsored by