%define pkgver %(echo %version | cut -d. -f2) Name: yaffs-utils Epoch: 1 Version: 20141016git Release: 1mamba Summary: Utilities for YAFFS, an embedded filesystem designed for NAND storage Group: System/Tools Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://www.yaffs.net # Source got from cvs: # export CVSROOT=:pserver:anonymous@cvs.aleph1.co.uk:/home/aleph1/cvs cvs logon # cvs checkout yaffs2 Source: git://www.aleph1.co.uk/yaffs2.git/master/yaffs2-%{version}.tar.bz2 Patch0: yaffs2-20141016git-x86-shift.patch License: GPL Provides: yaff-utils Obsoletes: yaff-utils ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel ## AUTOBUILDREQ-END BuildRoot: %{_tmppath}/%{name}-%{version}-root %description YAFFS stands for Yet Another Flash File System. YAFFS is the first file system that has been designed, from the ground up, for NAND storage. %prep %setup -q -n yaffs2-%{version} %ifnarch x86_64 %patch0 -p1 %endif %build %make -C utils %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" install -m0755 -D utils/mkyaffs2image %{buildroot}%{_bindir}/mkyaffs2image install -m0755 -D utils/mkyaffsimage %{buildroot}%{_bindir}/mkyaffsimage %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %defattr(-,root,root) %{_bindir}/mkyaffsimage %{_bindir}/mkyaffs2image %doc README-linux README-linux-patch %changelog * Thu Oct 16 2014 Silvan Calarco 20141016git-1mamba - update to 20141016git * Thu Mar 21 2013 Automatic Build System 20130321git-1mamba - update to 20130321git * Mon Nov 19 2012 Automatic Build System 20121119git.a18ab52-1mamba - update to 20121119git.a18ab52 * Thu Oct 18 2012 Automatic Build System 7897f17-1mamba - update to 7897f17 * Fri Dec 12 2008 Silvan Calarco cvs20080710-2mamba - fixed package name * Thu Jul 10 2008 Silvan Calarco cvs20080710-1mamba - package created by autospec