1 | Summary: Text file format converters
|
---|
2 | Name: dos2unix
|
---|
3 | Version: 7.5.1
|
---|
4 | Release: 1%{?dist}
|
---|
5 | License: BSD
|
---|
6 | URL: https://waterlan.home.xs4all.nl/dos2unix.html
|
---|
7 | %if !0%{?os2_version}
|
---|
8 | Source: https://waterlan.home.xs4all.nl/dos2unix/%{name}-%{version}.tar.gz
|
---|
9 | %else
|
---|
10 | %scm_source github https://github.com/TeLLie/%{name}-os2 %{version}-os2
|
---|
11 | %endif
|
---|
12 |
|
---|
13 | BuildRequires: gcc
|
---|
14 | BuildRequires: gettext
|
---|
15 | # perl modules, required for tests
|
---|
16 | BuildRequires: perl-Test-Harness perl-Test-Simple
|
---|
17 | BuildRequires: make
|
---|
18 | Provides: unix2dos = %{version}-%{release}
|
---|
19 | Obsoletes: unix2dos < 5.1-1
|
---|
20 |
|
---|
21 | %description
|
---|
22 | Convert text files with DOS or Mac line endings to Unix line endings and
|
---|
23 | vice versa.
|
---|
24 |
|
---|
25 | %debug_package
|
---|
26 |
|
---|
27 | %prep
|
---|
28 | %if !0%{?os2_version}
|
---|
29 | %setup -q
|
---|
30 | %else
|
---|
31 | %scm_setup
|
---|
32 | %endif
|
---|
33 |
|
---|
34 | %build
|
---|
35 | export LIBS="-lcx"
|
---|
36 | %if !0%{?os2_version}
|
---|
37 | %make_build LDFLAGS="%{build_ldflags}"
|
---|
38 | %else
|
---|
39 | make %{?_smp_mflags}
|
---|
40 | %endif
|
---|
41 |
|
---|
42 | %install
|
---|
43 | %make_install
|
---|
44 |
|
---|
45 | # We add doc files manually to %%doc
|
---|
46 | rm -rf $RPM_BUILD_ROOT%{_docdir}
|
---|
47 |
|
---|
48 | %find_lang %{name} --with-man --all-name
|
---|
49 |
|
---|
50 | %check
|
---|
51 | %if !0%{?os2_version}
|
---|
52 | make test
|
---|
53 | %endif
|
---|
54 |
|
---|
55 | %files -f %{name}.lang
|
---|
56 | %license COPYING.txt
|
---|
57 | %doc man/man1/dos2unix.htm ChangeLog.txt
|
---|
58 | %doc NEWS.txt README.txt TODO.txt
|
---|
59 | %if !0%{?os2_version}
|
---|
60 | %{_bindir}/dos2unix
|
---|
61 | %{_bindir}/mac2unix
|
---|
62 | %{_bindir}/unix2dos
|
---|
63 | %{_bindir}/unix2mac
|
---|
64 | %else
|
---|
65 | %{_bindir}/dos2unix.exe
|
---|
66 | %{_bindir}/mac2unix.exe
|
---|
67 | %{_bindir}/unix2dos.exe
|
---|
68 | %{_bindir}/unix2mac.exe
|
---|
69 | %endif
|
---|
70 | %{_mandir}/man1/*.1*
|
---|
71 |
|
---|
72 | %changelog
|
---|
73 | * Wed Aug 30 2023 Elbert Pol <elbert.pol@gmail.com> - 7.5.1-1
|
---|
74 | - Updated to latest version
|
---|
75 |
|
---|
76 | * Fri May 19 2023 Elbert Pol <elbert.pol@gmail.com> - 7.5.0-1
|
---|
77 | - Updated to latest version
|
---|
78 |
|
---|
79 | * Sun Feb 12 2023 Elbert Pol <elbert.pol@gmail.com> - 7.4.4-1
|
---|
80 | - Updated to latest version
|
---|
81 |
|
---|
82 | * Sun Jun 05 2022 Elbert Pol <elbert.pol@gmail.com> - 7.4.3-1
|
---|
83 | - Updated to latest version
|
---|
84 |
|
---|
85 | * Mon Oct 19 2020 Elbert Pol <elbert.pol@gmail.com> - 7.4.2-2
|
---|
86 | - Add changelog from previous version
|
---|
87 |
|
---|
88 | * Mon Oct 12 2020 Elbert Pol <elbert.pol@gmail.com> - 7.4.2-1
|
---|
89 | - Update to latest source
|
---|
90 | - Add some OS2 definition to spec file
|
---|
91 |
|
---|
92 | * Sat Apr 11 2020 Elbert Pol <elbert.pol@gmail.com> 7.4.1-1
|
---|
93 | - Updated to latest source
|
---|
94 |
|
---|
95 | * Sat Feb 11 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> 7.3.4-1
|
---|
96 | - initial port
|
---|