diff --git a/README.md b/README.md index 79c477a..c6e87e8 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # f2fs-tools +Userland tools for the f2fs filesystem. + diff --git a/f2fs-tools.spec b/f2fs-tools.spec new file mode 100644 index 0000000..619fd6a --- /dev/null +++ b/f2fs-tools.spec @@ -0,0 +1,87 @@ +Name: f2fs-tools +Version: 1.4.0 +Release: 1mamba +Summary: Userland tools for the f2fs filesystem +Group: System/Tools +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +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: lib%{name} = %{?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 1.4.0-1mamba +- package created using the webbuild interface