File f2fs-tools.spec of Package f2fs-tools

#
# spec file for package f2fs-tools
#
# Copyright (c) 2015 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:           f2fs-tools
%define lname	libf2fs0
Version:        1.4.1
Release:        0
Summary:        Utilities for the Flash-friendly Filesystem (F2FS)
License:        GPL-2.0 and LGPL-2.1
Group:          System/Filesystems
Url:            http://f2fs-tools.sf.net/_(disused)

#Snapshot:	v1.4.1
#Git-Clone:	git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools
#DL-URL:	no location known - no tarballs provided
Source:         %name-%version.tar.xz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  libtool
BuildRequires:  pkgconfig
BuildRequires:  xz
BuildRequires:  pkgconfig(uuid)

%description
Utilities needed to create and maintain F2 filesystems.

%prep
%setup -qn %name

%build
if [ ! -e configure ]; then
	autoreconf -fi
fi
%configure --disable-static
make %{?_smp_mflags} sbindir="%_sbindir"

%install
b="%buildroot"
%make_install sbindir="%_sbindir"
# The devel file is quite useless ATM without public headers.
rm -f "$b/%_libdir"/*.{la,so}

%post   -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%_sbindir/f2fstat
%_sbindir/*.f2fs
%_libdir/libf2fs.so.0*
%_mandir/man8/*
%doc COPYING

%changelog