]> git.pld-linux.org Git - SPECS.git/blob - tofrodos.spec
SPECS updated Mon 29 Apr 22:05:02 CEST 2024
[SPECS.git] / tofrodos.spec
1 Summary:        DOS/UNIX text file conversion tool
2 Summary(pl.UTF-8):      Narzędzie do konwersji plików tekstowych między formatami DOS i UNIX
3 Name:           tofrodos
4 Version:        1.7.8
5 Release:        1
6 License:        GPL v2
7 Group:          Applications/Text
8 Source0:        http://tofrodos.sourceforge.net/download/%{name}-%{version}.tar.gz
9 # Source0-md5:  aaa044f9817a048e126d9eb7a7535e96
10 URL:            http://www.thefreecountry.com/tofrodos/
11 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
12
13 %description
14 DOS text files traditionally have CR/LF (carriage return/line feed)
15 pairs as their new line delimiters while Unix text files traditionally
16 have LFs (line feeds) to terminate each line.
17
18 tofrodos comprises two programs, "fromdos" and "todos", which convert
19 text files to and from these formats. Use "fromdos" to convert DOS
20 text files to the Unix format, and "todos" to convert Unix text files
21 to the DOS format.
22
23 %description -l pl.UTF-8
24 W systemach z rodziny DOS/Windows końce linii w plikach tekstowych
25 są tradycyjnie oznaczane przez znaki CR/LF (powrót karetki / nowa
26 linia). Wynika to z braku elementarnej obsługi drukarek w systemie
27 DOS. W systemach UNIX końce linii są oznaczane przez znaki LF.
28
29 tofrodos jest zestawem dwóch narzędzi "fromdos" i "todos", które
30 służą do konwersji plików tekstowych między tymi formatami.
31 Program "fromdos" służy do konwersji plików z formatu DOS-a do
32 formatu UNIX-a, natomiast "todos" służy do konwersji z formatu
33 UNIX-a do formatu DOS-a.
34
35 %prep
36 %setup -q -n %{name}
37
38 %build
39 %{__make} -C src \
40         CC="%{__cc}" \
41         CFLAGS="%{rpmcflags} -c" \
42         LDFLAGS="%{rpmldflags}" \
43         %{?debug:DEBUG=1}
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
48 install src/fromdos $RPM_BUILD_ROOT%{_bindir}
49 install src/fromdos.1 $RPM_BUILD_ROOT%{_mandir}/man1
50
51 ln -sf fromdos $RPM_BUILD_ROOT%{_bindir}/todos
52
53 %clean
54 rm -rf $RPM_BUILD_ROOT
55
56 %files
57 %defattr(644,root,root,755)
58 %doc readme.txt tofrodos.html
59 %attr(755,root,root) %{_bindir}/fromdos
60 %attr(755,root,root) %{_bindir}/todos
61 %{_mandir}/man1/fromdos.1*
This page took 0.252376 seconds and 3 git commands to generate.