source: spec/trunk/SPECS/dos2unix.spec

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

spec: dos2unix: Release version 7.5.1-1.

File size: 2.1 KB
RevLine 
[1716]1Summary: Text file format converters
2Name: dos2unix
[1837]3Version: 7.5.1
[1812]4Release: 1%{?dist}
[1716]5License: BSD
[1812]6URL: https://waterlan.home.xs4all.nl/dos2unix.html
[1716]7%if !0%{?os2_version}
[1812]8Source: https://waterlan.home.xs4all.nl/dos2unix/%{name}-%{version}.tar.gz
[1716]9%else
[1812]10%scm_source github https://github.com/TeLLie/%{name}-os2 %{version}-os2
[1716]11%endif
12
13BuildRequires: gcc
14BuildRequires: gettext
15# perl modules, required for tests
16BuildRequires: perl-Test-Harness perl-Test-Simple
[1812]17BuildRequires: make
[1716]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
[1719]25%debug_package
26
[1716]27%prep
28%if !0%{?os2_version}
29%setup -q
30%else
31%scm_setup
32%endif
33
34%build
35export LIBS="-lcx"
[1812]36%if !0%{?os2_version}
37%make_build LDFLAGS="%{build_ldflags}"
38%else
39make %{?_smp_mflags}
40%endif
[1716]41
42%install
[1812]43%make_install
[1716]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
[1812]56%license COPYING.txt
57%doc man/man1/dos2unix.htm ChangeLog.txt
[1716]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
[1837]73* Wed Aug 30 2023 Elbert Pol <elbert.pol@gmail.com> - 7.5.1-1
74- Updated to latest version
75
[1833]76* Fri May 19 2023 Elbert Pol <elbert.pol@gmail.com> - 7.5.0-1
77- Updated to latest version
78
[1828]79* Sun Feb 12 2023 Elbert Pol <elbert.pol@gmail.com> - 7.4.4-1
80- Updated to latest version
81
[1812]82* Sun Jun 05 2022 Elbert Pol <elbert.pol@gmail.com> - 7.4.3-1
83- Updated to latest version
84
[1722]85* Mon Oct 19 2020 Elbert Pol <elbert.pol@gmail.com> - 7.4.2-2
86- Add changelog from previous version
87
[1716]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
[1722]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
Note: See TracBrowser for help on using the repository browser.