9d6108f7dec6afd560af18169fe8e737f8f60f65
[platform/upstream/dos2unix.git] / packaging / dos2unix.spec
1 Name:           dos2unix
2 Version:        7.4.1
3 Release:        0
4 License:        BSD-3-Clause
5 Summary:        Text converters to and from DOS/MAC to UNIX
6 Url:            http://waterlan.home.xs4all.nl/dos2unix.html
7 Group:          Productivity/Text/Convertors
8 Source:         http://waterlan.home.xs4all.nl/dos2unix/dos2unix-%{version}.tar.gz
9 Source1001:     dos2unix.manifest
10 BuildRequires:  gettext-tools
11 Provides:       unix2dos = %{version}
12 Obsoletes:      unix2dos < %{version}
13 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
14
15 %description
16 Dos2unix is used to convert plain text from DOS (CR/LF) format. Mac2unix
17 converts plain text from MAC (CR) format to UNIX format (LF).
18
19 Unix2dos converts plain text files from UNIX
20 format to DOS format and unix2dos converts from UNIX to MAC format.
21
22 %prep
23 %setup -q
24 cp %{SOURCE1001} .
25 #find . -type f | xargs chmod -x
26
27 %build
28 export RPM_OPT_FLAGS
29 make %{?_smp_mflags} CC="gcc" HTMLEXT="html"
30
31
32 %install
33 %make_install docdir=%{_defaultdocdir}/%{name}
34 %{find_lang} dos2unix --all-name --with-man
35
36 %files -f dos2unix.lang
37 %manifest %{name}.manifest
38 %defattr(-,root,root,0755)
39 %doc /usr/share/doc/%{name}-%{version}
40 %{_bindir}/dos2unix
41 %{_bindir}/mac2unix
42 %{_bindir}/unix2mac
43 %{_bindir}/unix2dos
44 %doc %{_mandir}/*/dos2unix.1*
45 %doc %{_mandir}/*/mac2unix.1*
46 %doc %{_mandir}/*/unix2mac.1*
47 %doc %{_mandir}/*/unix2dos.1*
48 %doc %lang(nl) %dir %{_mandir}/nl