File disktype.spec of Package disktype
#
# spec file for package disktype
#
# 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: disktype
Version: 9
Release: 0
Summary: Disk Format Detection
License: MIT
Group: System/Filesystems
Url: http://%{name}.sourceforge.net/
Source0: %{name}-%{version}.tar.xz
%description
The purpose of disktype is to detect the content format of a disk or disk image. It knows about common file systems, partition tables, and boot codes.
%prep
%setup -q
%build
%{__make} %{?_smp_mflags} CFLAGS="${CFLAGS:-%{optflags}}"
%{__strip} -s %{name}
%install
%{__mkdir_p} %{buildroot}%{_bindir}
%{__mkdir_p} %{buildroot}%{_mandir}/man1
%{__install} -m 0755 -p -t %{buildroot}%{_bindir} %{name}
%{__gzip} %{name}.1
%{__install} -m 0644 -p -t %{buildroot}%{_mandir}/man1 %{name}.1.gz
%files
%defattr(-,root,root,-)
%doc HISTORY README TODO
%attr(755,root,root) %{_bindir}/%{name}
%attr(644,root,root) %{_mandir}/man1/%{name}.1.gz
%if 0%{?suse_version} && 0%{?suse_version} >= 1500
%license LICENSE
%else
%doc LICENSE
%endif
%changelog