File udftools.spec of Package udftools
#
# spec file for package udftools
#
# Copyright (c) 2011 SUSE LINUX Products 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
BuildRequires: libtool
BuildRequires: readline-devel
Provides: udf
Obsoletes: udf
Version: 1.0.0b3
Release: 0
Summary: UDF filesystem tools
License: GPL-2.0+
Group: System/Filesystems
Source: %name-%{version}.tar.bz2
Source1: http://www.kernel.org/pub/linux/kernel/people/axboe/tools/cdmrw.c
Patch: %name-%{version}.dif
Patch1: udftools-1.0.0b3-pktsetup-chardev.patch
Patch2: udftools-gcc4.patch
Patch3: udftools-include.patch
Patch4: cdmrw-include.patch
Patch5: udftools-HZ.patch
Patch6: udftools-open.patch
Patch7: udftools-wrong-memset.patch
Url: http://linux-udf.sourceforge.net/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
These are tools for UDF file systems as used, e.g., on DVD-ROMs.
Authors:
--------
Ben Fennema <bfennema@falcon.csc.calpoly.edu>
Jens Axboe <axboe@suse.de>
Paul Thompson <set@pobox.com>
%prep
%setup -q
cp -a %{S:1} .
%patch
%patch1 -p1
%patch2
%patch3
%patch4
%patch5
%patch6
%patch7 -p1
%build
%__cc $RPM_OPT_FLAGS cdmrw.c -o cdmrw
autoreconf --force --install
export CFLAGS="$RPM_OPT_FLAGS"
%configure \
--prefix=%_prefix \
--mandir=%{_mandir} \
--libdir=%_libdir
make
%install
rm -Rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
install cdmrw $RPM_BUILD_ROOT/usr/bin/
%clean
rm -Rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc ChangeLog AUTHORS README
%_libdir/libudffs.*
/usr/bin/*
%{_mandir}/man1/*.1.gz
%{_mandir}/man8/*.8.gz
%changelog