f2fs-tools/f2fs-tools.spec

91 lines
2.4 KiB
RPMSpec

Name: f2fs-tools
Version: 1.4.0
Release: 2mamba
Summary: Userland tools for the f2fs filesystem
Group: System/Tools
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://git.kernel.org/cgit/linux/kernel/git/jaegeuk/f2fs-tools.git
## GITSOURCE git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git master
Source: git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git/master/f2fs-tools-%{version}.tar.bz2
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libuuid-devel
## AUTOBUILDREQ-END
Requires: libf2fs = %{?epoch:%epoch:}%{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Userland tools for the f2fs filesystem.
%package -n libf2fs
Group: System/Libraries
Summary: Shared libraries for %{name}
%description -n libf2fs
This package contains shared libraries for %{name}.
%package -n libf2fs-devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: libf2fs = %{?epoch:%epoch:}%{version}-%{release}
%description -n libf2fs-devel
This package contains libraries and header files for developing applications that use %{name}.
%debug_package
%prep
%setup -q
%build
autoreconf -f -i
%configure
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
install -D -m0644 include/f2fs_fs.h %{buildroot}%{_includedir}/f2fs_fs.h
install -D -m0644 mkfs/f2fs_format_utils.h %{buildroot}%{_includedir}/f2fs_format_utils.h
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n libf2fs -p /sbin/ldconfig
%postun -n libf2fs -p /sbin/ldconfig
%files
%defattr(-,root,root)
/sbin/dump.f2fs
/sbin/f2fstat
/sbin/fibmap.f2fs
/sbin/fsck.f2fs
/sbin/mkfs.f2fs
/sbin/parse.f2fs
%{_mandir}/man8/mkfs.f2fs.8*
%files -n libf2fs
%defattr(-,root,root)
%{_libdir}/libf2fs.so.*
%doc AUTHORS COPYING
%files -n libf2fs-devel
%defattr(-,root,root)
%{_includedir}/f2fs_fs.h
%{_includedir}/f2fs_format_utils.h
%{_libdir}/libf2fs.a
%{_libdir}/libf2fs.la
%{_libdir}/libf2fs.so
%doc ChangeLog README
%changelog
* Wed Jan 21 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.0-2mamba
- fs2fs-tools: fix requirement for libf2fs
* Wed Jan 21 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.0-1mamba
- package created using the webbuild interface