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

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

spec: jasper: Release version 2.0.22-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%debug_package
25
26%prep
27%if !0%{?os2_version}
28%setup -q
29%else
30%scm_setup
31%endif
32
33%build
34export LIBS="-lcx"
35make %{?_smp_mflags}
36
37%install
38make DESTDIR=$RPM_BUILD_ROOT install
39
40# We add doc files manually to %%doc
41rm -rf $RPM_BUILD_ROOT%{_docdir}
42
43%find_lang %{name} --with-man --all-name
44
45%check
46%if !0%{?os2_version}
47make test
48%endif
49
50%files -f %{name}.lang
51%doc man/man1/dos2unix.htm ChangeLog.txt COPYING.txt
52%doc NEWS.txt README.txt TODO.txt
53%if !0%{?os2_version}
54%{_bindir}/dos2unix
55%{_bindir}/mac2unix
56%{_bindir}/unix2dos
57%{_bindir}/unix2mac
58%else
59%{_bindir}/dos2unix.exe
60%{_bindir}/mac2unix.exe
61%{_bindir}/unix2dos.exe
62%{_bindir}/unix2mac.exe
63%endif
64%{_mandir}/man1/*.1*
65
66%changelog
67* Mon Oct 12 2020 Elbert Pol <elbert.pol@gmail.com> - 7.4.2-1
68- Update to latest source
69- Add some OS2 definition to spec file
Note: See TracBrowser for help on using the repository browser.