File partclone.spec of Package partclone

#
# spec file for package partclone
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2012 Mariusz Fik <fisiu@opensuse.org>
#
# 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:           partclone
Version:        0.3.0~gitbcaa
Release:        0
Summary:        File System Clone Utilities
License:        GPL-2.0+
Group:          System/Filesystems
Url:            http://partclone.org/
Source:         http://downloads.sourceforge.net/project/partclone/experimental/src/partclone-%{version}.tar.gz
# PATCH-FIX-UPSTREAM partclone-missing-includes.patch dimstar@opensuse.org -- Fix missing includes, submitted as https://github.com/Thomas-Tsai/partclone/pull/61
Patch0:         partclone-missing-includes.patch
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  e2fsprogs-devel
BuildRequires:  fdupes
BuildRequires:  libbtrfs-devel
BuildRequires:  libreiserfs-devel
BuildRequires:  libuuid-devel
BuildRequires:  ncurses-devel
BuildRequires:  pkg-config
BuildRequires:  pkgconfig(libntfs-3g)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
# PowerPC do not support the fail-mbr/fail-mbr.S
ExcludeArch:    ppc ppc64 ppc64le

%description
A set of file system clone utilities, including
ext2/3, reiserfs, reiser4, xfs, hfs+ file systems

%lang_package

%prep
%setup -q
%patch0 -p1

%build
autoreconf -fi
%configure \
    --disable-rpath \
    --enable-ncursesw \
    --enable-fs-test \
    --enable-btrfs \
    --enable-extfs \
    --enable-fat \
    --enable-hfsp \
    --enable-ntfs \
    --enable-reiserfs

### disabled filesystems:
# jfs
# reiser4
# ufs
# vmfs
# xfs
### end list

make %{?_smp_mflags}

%install
make DESTDIR=%{buildroot} INSTLIBDIR=%{buildroot}%{_datadir}/%{name} install %{?_smp_mflags}
%fdupes %{buildroot}%{_datadir}
%find_lang %{name}

%files
%defattr(-,root,root)
%doc ChangeLog README COPYING
%{_sbindir}/partclone.*
%{_datadir}/partclone
%{_mandir}/man8/partclone.*

%files lang -f %{name}.lang
%defattr(-,root,root)

%changelog
openSUSE Build Service is sponsored by