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

Last change on this file since 1716 was 1716, checked in by tellie, 5 years ago

spec: dos2unix: Release version 7.4.2-1.

File size: 1.4 KB
Line 
1Summary: Text file format converters
2Name: dos2unix
3Version: 7.4.2
4Release: 1%{?dist}
5License: BSD
6URL: http://waterlan.home.xs4all.nl/dos2unix.html
7%if !0%{?os2_version}
8Source: http://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
17Provides: unix2dos = %{version}-%{release}
18Obsoletes: unix2dos < 5.1-1
19
20%description
21Convert text files with DOS or Mac line endings to Unix line endings and
22vice versa.
23
24%prep
25%if !0%{?os2_version}
26%setup -q
27%else
28%scm_setup
29%endif
30
31%build
32export LIBS="-lcx"
33make %{?_smp_mflags}
34
35%install
36make DESTDIR=$RPM_BUILD_ROOT install
37
38# We add doc files manually to %%doc
39rm -rf $RPM_BUILD_ROOT%{_docdir}
40
41%find_lang %{name} --with-man --all-name
42
43%check
44%if !0%{?os2_version}
45make test
46%endif
47
48%files -f %{name}.lang
49%doc man/man1/dos2unix.htm ChangeLog.txt COPYING.txt
50%doc NEWS.txt README.txt TODO.txt
51%if !0%{?os2_version}
52%{_bindir}/dos2unix
53%{_bindir}/mac2unix
54%{_bindir}/unix2dos
55%{_bindir}/unix2mac
56%else
57%{_bindir}/dos2unix.exe
58%{_bindir}/mac2unix.exe
59%{_bindir}/unix2dos.exe
60%{_bindir}/unix2mac.exe
61%endif
62%{_mandir}/man1/*.1*
63
64%changelog
65* Mon Oct 12 2020 Elbert Pol <elbert.pol@gmail.com> - 7.4.2-1
66- Update to latest source
67- Add some OS2 definition to spec file
Note: See TracBrowser for help on using the repository browser.