]>
Commit | Line | Data |
---|---|---|
ddd345d1 | 1 | Summary: A binary editor with Emacs-like keybindings |
544ab024 | 2 | Summary(pl.UTF-8): Binarny edytor z klawiszologią zbliżoną do Emacsa |
dc4362ec AM |
3 | Name: beav |
4 | Version: 1.40 | |
bdd3ba40 | 5 | Release: 4 |
dc4362ec AM |
6 | License: GPL |
7 | Group: Applications/Editors | |
dc4362ec | 8 | Source0: ftp://ftp.cdrom.com/pub/simtelnet/msdos/binaryed/%{name}140s.zip |
a57c1f46 | 9 | # Source0-md5: 21ebeb1c2fb04ca9ef6dbae842cc1687 |
d0d6e9ab | 10 | Patch0: %{name}-glibc.patch |
11 | Patch1: %{name}-linux.patch | |
12 | Patch2: %{name}-tinfo.patch | |
a9ebecd5 | 13 | BuildRequires: ncurses-devel |
dc4362ec | 14 | BuildRequires: unzip |
f0e40297 | 15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
dc4362ec AM |
16 | |
17 | %description | |
18 | Beav allows you to edit binary files with almost all of the | |
19 | capabilities of a screen editor. Beav can edit a file and/or do a | |
20 | search and replace in hex, ASCII, EBCDIC, octal, decimal, and binary | |
21 | modes. Data can be displayed in byte, word, or double word formats. | |
22 | While displaying words or double words, the data can be displayed in | |
23 | Intel's or Motorola's byte swap format. Data of any length can be | |
24 | inserted at any point in the file and the source of the data can be | |
25 | the keyboard, another buffer, or a file. Any displayed data can be | |
b553df59 | 26 | sent to a printer in the displayed format. Finally, Beav can even |
dc4362ec AM |
27 | handle files that are bigger than memory. |
28 | ||
544ab024 JR |
29 | %description -l pl.UTF-8 |
30 | Beav umożliwia edycję plików binarnych w trybie pełnoekranowym. Beav | |
31 | potrafi modyfikować pliki, wyszukiwać i zastępować w trybach | |
32 | heksadecymalnym, ASCII, EBCDIC, ósemkowym, dziesiętnym oraz binarnym. | |
33 | Dane mogą być wyświetlane jako bajt, słowo lub podwójne słowo. Dane w | |
34 | postaci słowa lub podwójnego słowa mogą być wyświetlone w formacie | |
35 | Intela lub Motoroli ze zmienioną kolejnością bajtów. W dowolnym | |
36 | miejscu pliku można wstawić dane dowolnej długości pochodzące z | |
37 | klawiatury, innego bufora lub pliku. Dowolne wyświetlane dane mogą być | |
38 | wysłane na drukarkę w wyświetlanym formacie. Beav jest w stanie | |
39 | obsługiwać nawet pliki nawet większe niż rozmiar pamięci. | |
b553df59 | 40 | |
dc4362ec AM |
41 | |
42 | %prep | |
b553df59 | 43 | %setup -q -c -T |
dc4362ec AM |
44 | unzip -L -q -aa %{SOURCE0} |
45 | ||
b553df59 JB |
46 | %patch1 -p1 |
47 | %patch0 -p1 | |
48 | %patch2 -p1 | |
dc4362ec AM |
49 | |
50 | %build | |
d0d6e9ab | 51 | %{__make} -f makefile.uxv \ |
ddd345d1 | 52 | CFLAGS="%{rpmcflags} -DUNIX -DSYSV %{rpmldflags}" |
dc4362ec AM |
53 | |
54 | %install | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | install -d $RPM_BUILD_ROOT%{_bindir} | |
57 | ||
d0d6e9ab | 58 | install beav $RPM_BUILD_ROOT%{_bindir} |
59 | ||
d0e6b7bc | 60 | %clean |
dc4362ec AM |
61 | rm -rf $RPM_BUILD_ROOT |
62 | ||
63 | %files | |
64 | %defattr(644,root,root,755) | |
b29fa75a | 65 | %doc *.txt |
dc4362ec | 66 | %attr(755,root,root) %{_bindir}/* |