File yaffs2utils.spec of Package yaffs2utils

Name:           yaffs2utils
Version:        0.1
Release:        1%{?dist}
Summary:        Utilities to create/extract a yaffs2 image

Group:          Unknown
License:        GPLv2
URL:            http://code.google.com/p/yaffs2utils/
Source0:        http://yaffs2utils.googlecode.com/files/yaffs2utils-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

#BuildRequires:  
#Requires:       

%description
The yaffs2utils is the collection of utilities to make/extract a YAFFS2/YAFFS1 image for Linux.


%prep
%setup -q


%build
cd src
make


%install
rm -rf $RPM_BUILD_ROOT
%{__install} -d $RPM_BUILD_ROOT%{_bindir}
%{__install} -m 755 src/mkyaffs2 $RPM_BUILD_ROOT%{_bindir}/mkyaffs2
%{__install} -m 755 src/unyaffs2 $RPM_BUILD_ROOT%{_bindir}/unyaffs2


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc CHANGES COPYING README
%{_bindir}/mkyaffs2
%{_bindir}/unyaffs2


%changelog
* Thu Mar 24 2011 Tim Hawes <tim.hawes@tomtom.com>
- Initial spec file.