3 %bcond_without ftdi # FTDI chips
4 %bcond_without jaylink # J-Link chips
6 Summary: Tool Flashing your BIOS from the Unix/Linux command line
7 Summary(pl.UTF-8): Narzędzie do aktualizacji BIOS-u z linii poleceń Uniksa/Linuksa
12 Group: Applications/System
13 Source0: https://download.flashrom.org/releases/%{name}-v%{version}.tar.bz2
14 # Source0-md5: 7f8e4b87087eb12ecee0fcc5445b4956
15 URL: https://www.flashrom.org/Flashrom
16 %{?with_ftdi:BuildRequires: libftdi1-devel >= 1.0}
17 %{?with_jaylink:BuildRequires: libjaylink-devel}
18 BuildRequires: libusb-devel >= 1.0
19 BuildRequires: pciutils-devel
20 BuildRequires: pkgconfig
21 BuildRequires: zlib-devel
22 ExclusiveArch: %{ix86} %{x8664} x32 mips ppc ppc64 sparc sparcv9 sparc64
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 %define _sbindir /sbin
28 flashrom is a utility for identifying, reading, writing, verifying and
29 erasing flash chips. It's often used to flash BIOS / EFI / coreboot /
31 - Supports more than 470 flash chips, 291 chipsets, 500 mainboards,
32 79 PCI devices, 17 USB devices and various parallel/serial port
34 - Supports parallel, LPC, FWH and SPI flash interfaces and various
35 chip packages (DIP32, PLCC32, DIP8, SO8/SOIC8, TSOP32, TSOP40,
37 - No physical access needed, root access is sufficient.
38 - No bootable floppy disk, bootable CD-ROM or other media needed.
39 - No keyboard or monitor needed. Simply reflash remotely via SSH.
40 - No instant reboot needed. Reflash your chip in a running system,
41 verify it, be happy. The new firmware will be present next time you
43 - Crossflashing and hotflashing is possible as long as the flash chips
44 are electrically and logically compatible (same protocol). Great for
46 - Scriptability. Reflash a whole pool of identical machines at the
47 same time from the command line. It is recommended to check flashrom
48 output and error codes.
49 - Speed. flashrom is often much faster than most vendor flash tools.
50 - Portability. Supports DOS, Linux, FreeBSD (including
51 Debian/kFreeBSD), NetBSD, OpenBSD, DragonFly BSD, Solaris, Mac OS
52 X, and other Unix-like OSes, as well as GNU Hurd.
54 %description -l pl.UTF-8
55 flashrom to narzędzie do identyfikacji, odczytu, zapisu, weryfikacji i
56 kasowania układów flash. Jest często używany do programowania obrazów
57 BIOS-u / EFI / coreboot / firmware'u.
58 - Obsługuje ponad 470 układów flash, 291 chipsetów, 500 płyt głównych,
59 79 urządzeń PCI, 17 urządzeń USB i różne programatory podłączane
60 przez port równoległy/szeregowy.
61 - Wspiera układy flash równoległe, LPC, FWH i SPI o różnych
62 obudowach/wyprowadzeniach (DIP32, PLCC32, DIP8, SO8/SOIC8, TSOP32,
63 TSOP40, TSOP48, BGA i inne)
64 - Nie wymaga fizycznego dostępu, wystarczy dostęp do konta roota.
65 - Nie potrzebuje bootowalnej dyskietki, rozruchowego dysku CD-ROM lub
67 - Nie jest wymagana klawiatura ani monitor. Wystarczy przeprogramować
69 - Nie ma potrzeby ponownego uruchamiania komputera. Wystarczy
70 przeprogramować układ w uruchomionym systemie, zweryfikować i być
71 szczęśliwym. Nowy firmware będzie dostępny po następnym
73 - Crossflashing i hotflashing są możliwe na tyle, na ile układy flash
74 są elektrycznie i logicznie kompatybilne (ten sam protokół). Jest to
75 świetna metoda do przywracania sprzętu ze źle zaprogramowanym
77 - Pozwala na tworzenie skryptów do wielokrotnego programowania.
78 Programowanie identycznych maszyn w tym samym czasie z wiersza
79 poleceń. Zaleca się sprawdzanie komunikatów programu flashrom i
81 - Szybkość. flashrom jest często znacznie szybszy niż większość
82 sprzedawanych narzędzi do flashowania.
83 - Przenośność. Obsługuje systemy DOS, Linux, FreeBSD (w tym
84 Debian/kFreeBSD), Dragonfly BSD, Solaris, Mac OS X oraz inne
85 systemy operacyjne oparte na Uniksie, a także GNU Hurd.
88 %setup -q -n %{name}-v%{version}
93 CFLAGS="%{rpmcflags}" \
94 LDFLAGS="%{rpmldflags}" \
95 %{!?with_ftdi:CONFIG_FT2232_SPI=no} \
96 %{?with_jaylink:CONFIG_JLINK_SPI=yes}
99 rm -rf $RPM_BUILD_ROOT
100 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8}
101 install %{name} $RPM_BUILD_ROOT%{_sbindir}
102 install %{name}.8 $RPM_BUILD_ROOT%{_mandir}/man8
105 rm -rf $RPM_BUILD_ROOT
108 %defattr(644,root,root,755)
110 %attr(755,root,root) %{_sbindir}/flashrom
111 %{_mandir}/man8/flashrom.8*