SHA256
1
0
forked from pool/mtd-utils
mtd-utils/mtd-utils.spec

99 lines
2.2 KiB
RPMSpec

# norootforbuild
Name: mtd-utils
Version: 1.2.0
Release: 0
Summary: Tools for maintaining Memory Technology Devices
Source: mtd-utils-%{version}.tar.bz2
URL: http://www.linux-mtd.infradead.org/
Group: System/Filesystems
License: GNU General Public License version 2 or later (GPL v2 or later)
BuildRoot: %{_tmppath}/build-%{name}-%{version}
BuildRequires: libuuid-devel
BuildRequires: lzo-devel
BuildRequires: zlib-devel
BuildRequires: libacl-devel
BuildRequires: gcc make glibc-devel
BuildRequires: autoconf automake libtool
%description
This package contains tools for erasing and formatting flash devices,
including JFFS2, M-Systems DiskOnChip devices, etc.
%prep
%setup -q
%build
%__make %{?jobs:-j%{jobs}} \
CFLAGS="%{optflags}" \
CC="%__cc" \
PREFIX="%{_prefix}"
%install
%__make \
DESTDIR="%{buildroot}" \
PREFIX="%{_prefix}" \
MANDIR="%{_mandir}" \
install
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files
%defattr(-,root,root)
%doc COPYING *txt
%{_sbindir}/bin2nand
%{_sbindir}/doc_loadbios
%{_sbindir}/docfdisk
%{_sbindir}/flash_erase
%{_sbindir}/flash_eraseall
%{_sbindir}/flash_info
%{_sbindir}/flash_lock
%{_sbindir}/flash_otp_dump
%{_sbindir}/flash_otp_info
%{_sbindir}/flash_unlock
%{_sbindir}/flashcp
%{_sbindir}/ftl_check
%{_sbindir}/ftl_format
%{_sbindir}/jffs2dump
%{_sbindir}/mkbootenv
%{_sbindir}/mkfs.jffs2
%{_sbindir}/mkfs.ubifs
%{_sbindir}/mkpfi
%{_sbindir}/mtd_debug
%{_sbindir}/nand2bin
%{_sbindir}/nanddump
%{_sbindir}/nandtest
%{_sbindir}/nandwrite
%{_sbindir}/nftl_format
%{_sbindir}/nftldump
%{_sbindir}/pddcustomize
%{_sbindir}/pfi2bin
%{_sbindir}/pfiflash
%{_sbindir}/recv_image
%{_sbindir}/rfddump
%{_sbindir}/rfdformat
%{_sbindir}/serve_image
%{_sbindir}/sumtool
%{_sbindir}/ubiattach
%{_sbindir}/ubicrc32
%{_sbindir}/ubicrc32.pl
%{_sbindir}/ubidetach
%{_sbindir}/ubiformat
%{_sbindir}/ubigen
%{_sbindir}/ubimirror
%{_sbindir}/ubimkvol
%{_sbindir}/ubinfo
%{_sbindir}/ubinize
%{_sbindir}/ubirmvol
%{_sbindir}/ubiupdatevol
%{_sbindir}/unubi
%doc %{_mandir}/man1/mkfs.jffs2.1%{ext_man}
%changelog
# vim: set sw=3 ts=3 noet:
# Local Variables:
# mode: rpm-spec
# tab-width: 3
# End: