File partclone.spec of Package partclone
#
# spec file for package partclone
#
# Copyright (c) 2012 SUSE LINUX Products 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.2.48
Release: 0
License: GPL-2.0+
Summary: File System Clone Utilities
Url: http://partclone.org/
Group: System/Filesystems
Source: http://downloads.sourceforge.net/project/partclone/testing/src/partclone-%{version}.tar.gz
BuildRequires: btrfsprogs
BuildRequires: e2fsprogs-devel
BuildRequires: fdupes
BuildRequires: glibc-devel
BuildRequires: libreiserfs-devel
BuildRequires: libuuid-devel
BuildRequires: ncurses-devel
BuildRequires: pkg-config
%if %{suse_version} < 1210
BuildRequires: ntfs-3g-devel
%else
BuildRequires: pkgconfig(libntfs-3g)
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
A set of file system clone utilities, including
ext2/3, reiserfs, reiser4, xfs, hfs+ file systems
%{lang_package}
%prep
%setup
%build
%configure \
--prefix=/usr \
--enable-btrfs \
--enable-extfs \
--enable-fat \
--enable-hfsp \
--enable-ncursesw \
--enable-ntfs \
--enable-reiserfs
### disabled filesystems:
# jfs
# reiser4
# ufs
# vmfs
# xfs
### end list
make %{?_smp_mflags}
%install
%makeinstall
%fdupes %{buildroot}%{_datadir}
%{find_lang} %{name}
%files
%defattr(-,root,root)
%doc ChangeLog README COPYING
%{_sbindir}/partclone.*
%{_mandir}/man8/partclone.*
%files lang -f %{name}.lang
%defattr(-,root,root)
%changelog