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

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

#Snapshot:	v1.4.1
#Git-Clone:	git://
#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)

Utilities needed to create and maintain F2 filesystems.

%setup -qn %name

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

%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