File cdinfo.spec of Package cdinfo

#
# spec file for package cdinfo
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#


Name:           cdinfo
Version:        1.1
Release:        0
Summary:        CD Info
License:        GPL-2.0
Group:          Productivity/Multimedia/CD/Record
Source0:        %{name}.c
Conflicts:      audiotools

%description
CDInfo prints various information about a CD and detects the type of the CD.

%prep

%build
%{__cc} %{optflags} %{S:0} -o %{name}
%{__strip} -s %{name}

%install
%{__mkdir_p} -p %{buildroot}%{_bindir}
%{__install} -m 0755 -p -t %{buildroot}%{_bindir} %{name}

%files
%defattr(-,root,root,-)
%attr(755,root,root) %{_bindir}/%{name}

%changelog
openSUSE Build Service is sponsored by