File udftools.spec of Package udftools

#
# spec file for package udftools
#
# Copyright (c) 2017 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:           udftools
Version:        1.3
Release:        0
Summary:        UDF filesystem tools
License:        GPL-2.0+
Group:          System/Filesystems
Url:            https://github.com/pali/udftools
Source:         https://github.com/pali/udftools/releases/download/%{version}/udftools-%{version}.tar.gz
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  libtool
BuildRequires:  readline-devel
Provides:       udf = %{version}
Obsoletes:      udf < %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
These are tools for UDF file systems as used, e.g., on DVD-ROMs.

%prep
%setup -q

%build
export CFLAGS="%{optflags} -fno-strict-aliasing"
%configure

make %{?_smp_mflags}

%install
%make_install  %{?_smp_mflags}

mkdir -p %{buildroot}%{_docdir}
mv %{buildroot}%{_datadir}/doc/udftools %{buildroot}%{_docdir}/udftools
rm -r %{buildroot}%{_datadir}/doc

%files
%defattr(-,root,root)
%{_bindir}/cdrwtool
%{_sbindir}/mkfs.udf
%{_sbindir}/mkudffs
%{_sbindir}/pktsetup
%{_sbindir}/wrudf
%{_mandir}/man1/cdrwtool.1%{ext_man}
%{_mandir}/man8/mkfs.udf.8%{ext_man}
%{_mandir}/man8/mkudffs.8%{ext_man}
%{_mandir}/man8/pktsetup.8%{ext_man}
%{_mandir}/man8/wrudf.8%{ext_man}

%changelog
openSUSE Build Service is sponsored by