File f2fs-tools.spec of Package f2fs-tools
#
# spec file for package f2fs-tools
#
# Copyright (c) 2013 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: f2fs-tools
%define lname libf2fs0
Version: 1.1.0+git40
Release: 0
#Snapshot: 6e8f2d5d222eff0abea4b5c0abc7433834094924
Summary: Utilities for the Flash-friendly Filesystem (F2FS)
License: GPL-2.0
Group: System/Filesystems
Url: http://f2fs-tools.sf.net/_(disused)
#Git-Clone: git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools
#DL-URL: no tarballs provided
Source: %name-%version.tar.xz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: pkgconfig
BuildRequires: xz
%if 0%{?suse_version} >= 1140 || 0%{?fedora_version}
BuildRequires: pkgconfig(uuid)
%else
BuildRequires: libuuid-devel
%endif
%description
Utilities needed to create and maintain F2 filesystems.
%prep
%setup -qn %name
%build
%configure --disable-static
make %{?_smp_mflags} sbindir="%_sbindir"
%install
b="%buildroot"
make install DESTDIR="$b" sbindir="%_sbindir"
# The devel file is quite useless ATM without public headers.
rm -f "$b/%_libdir"/*.{la,so}
# /usr/sbin/filefrag already does what fibmap can do.
rm -f "$b/%_sbindir/fibmap"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%_sbindir/dump.f2fs
%_sbindir/fsck.f2fs
%_sbindir/mkfs.f2fs
%_libdir/libf2fs.so.0*
%_mandir/man8/*
%doc COPYING
%changelog