]> git.pld-linux.org Git - packages/dos2unix.git/blob - dos2unix.spec
- removed all Group fields translations (oure rpm now can handle translating
[packages/dos2unix.git] / dos2unix.spec
1 Summary:        dos2unix - DOS/MAC to UNIX text file format converter
2 Summary(pl):    dos2unix - konwerter plików tekstowych z formatu DOS/MAC na UNIX
3 Name:           dos2unix
4 Version:        3.0
5 Release:        2
6 License:        Freer than LGPL
7 Group:          Applications/Text
8 Source0:        ftp://sunsite.unc.edu//pub/Linux/utils/text/%{name}-%{version}.src.tar.gz
9 Source1:        ftp://sunsite.unc.edu//pub/Linux/utils/text/unix2dos-2.2.src.tar.gz
10 Obsoletes:      unix2dos
11 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
12
13 %description
14 A utility that converts plain text files in DOS/MAC format to UNIX
15 format and back.
16
17 %description -l pl
18 Zestaw narzêdzi do konwersji pliki tekstowych w formacie DOS/MAC na
19 u¿ywany poprzez UNIXa oraz odwrotnie.
20
21 %prep
22 %setup -q -c -a1
23
24 %build
25 %{__cc} %{rpmcflags} -o dos2unix dos2unix.c
26 %{__cc} %{rpmcflags} -o unix2dos unix2dos.c
27
28 %install
29 rm -rf $RPM_BUILD_ROOT
30 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
31
32 install -m 755 dos2unix $RPM_BUILD_ROOT%{_bindir}
33 install -m 755 unix2dos $RPM_BUILD_ROOT%{_bindir}
34 install dos2unix.1 $RPM_BUILD_ROOT%{_mandir}/man1
35 install unix2dos.1 $RPM_BUILD_ROOT%{_mandir}/man1
36
37 ln -sf dos2unix $RPM_BUILD_ROOT%{_bindir}/mac2unix
38
39 echo ".so dos2unix.1" > $RPM_BUILD_ROOT%{_mandir}/man1/mac2unix.1
40
41 gzip -9nf COPYRIGHT
42
43 %clean
44 rm -rf $RPM_BUILD_ROOT
45
46 %files
47 %defattr(644,root,root,755)
48 %doc COPYRIGHT.gz
49 %attr(755, root, root) %{_bindir}/*
50 %{_mandir}/man1/*
This page took 0.203787 seconds and 3 git commands to generate.