]> git.pld-linux.org Git - packages/dos2unix.git/blob - dos2unix.spec
ca4021b37e97adcdfcc0f7318a0bc468b564bc07
[packages/dos2unix.git] / dos2unix.spec
1 Summary:        dos2unix - DOS/MAC to UNIX text file format converter
2 Name:           dos2unix
3 Version:        3.0
4 Release:        1
5 Copyright:      Freer than LGPL
6 Group:          Utilities/Text
7 Group(fr):      Utilitaires/Texte
8 Group(pl):      Narzêdzia/Tekst
9 Source0:        %{name}-%{version}.src.tar.gz
10 Source1:        unix2dos-2.2.src.tar.gz
11 Obsoletes:      unix2dos
12 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
13
14 %description
15 A utility that converts plain text files in DOS/MAC format to UNIX
16 format.
17
18 %prep
19 %setup -q -c -a1
20
21 %build
22 gcc $RPM_OPT_FLAGS -o dos2unix dos2unix.c
23 gcc $RPM_OPT_FLAGS -o unix2dos unix2dos.c
24
25 %install
26 rm -rf $RPM_BUILD_ROOT
27 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
28
29 install -s -m 755 dos2unix $RPM_BUILD_ROOT%{_bindir}
30 install -s -m 755 unix2dos $RPM_BUILD_ROOT%{_bindir}
31 install dos2unix.1 $RPM_BUILD_ROOT%{_mandir}/man1
32 install unix2dos.1 $RPM_BUILD_ROOT%{_mandir}/man1
33
34 ln -s dos2unix $RPM_BUILD_ROOT%{_bindir}/mac2unix
35
36 echo ".so dos2unix.1" > $RPM_BUILD_ROOT%{_mandir}/man1/mac2unix.1
37
38 gzip -9nf COPYRIGHT $RPM_BUILD_ROOT%{_mandir}/man1/*
39
40 %clean
41 rm -rf $RPM_BUILD_ROOT
42
43 %files
44 %defattr(644,root,root,755)
45 %doc COPYRIGHT.gz
46 %attr(755, root, root) %{_bindir}/*
47 %{_mandir}/man1/*
This page took 0.266439 seconds and 2 git commands to generate.