source: spec/trunk/SPECS/dos2unix.spec@ 1833

Last change on this file since 1833 was 1833, checked in by tellie, 2 years ago

spec: dos2unix: Release version 7.5.0-1.

File size: 2.0 KB
Line 
1Summary: Text file format converters
2Name: dos2unix
3Version: 7.5.0
4Release: 1%{?dist}
5License: BSD
6URL: https://waterlan.home.xs4all.nl/dos2unix.html
7%if !0%{?os2_version}
8Source: 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
13BuildRequires: gcc
14BuildRequires: gettext
15# perl modules, required for tests
16BuildRequires: perl-Test-Harness perl-Test-Simple
17BuildRequires: make
18Provides: unix2dos = %{version}-%{release}
19Obsoletes: unix2dos < 5.1-1
20
21%description
22Convert text files with DOS or Mac line endings to Unix line endings and
23vice 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
35export LIBS="-lcx"
36%if !0%{?os2_version}
37%make_build LDFLAGS="%{build_ldflags}"
38%else
39make %{?_smp_mflags}
40%endif
41
42%install
43%make_install
44
45# We add doc files manually to %%doc
46rm -rf $RPM_BUILD_ROOT%{_docdir}
47
48%find_lang %{name} --with-man --all-name
49
50%check
51%if !0%{?os2_version}
52make 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* Fri May 19 2023 Elbert Pol <elbert.pol@gmail.com> - 7.5.0-1
74- Updated to latest version
75
76* Sun Feb 12 2023 Elbert Pol <elbert.pol@gmail.com> - 7.4.4-1
77- Updated to latest version
78
79* Sun Jun 05 2022 Elbert Pol <elbert.pol@gmail.com> - 7.4.3-1
80- Updated to latest version
81
82* Mon Oct 19 2020 Elbert Pol <elbert.pol@gmail.com> - 7.4.2-2
83- Add changelog from previous version
84
85* Mon Oct 12 2020 Elbert Pol <elbert.pol@gmail.com> - 7.4.2-1
86- Update to latest source
87- Add some OS2 definition to spec file
88
89* Sat Apr 11 2020 Elbert Pol <elbert.pol@gmail.com> 7.4.1-1
90- Updated to latest source
91
92* Sat Feb 11 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> 7.3.4-1
93- initial port
Note: See TracBrowser for help on using the repository browser.