Summary: Text file format converters Name: dos2unix Version: 7.5.1 Release: 1%{?dist} License: BSD URL: https://waterlan.home.xs4all.nl/dos2unix.html %if !0%{?os2_version} Source: https://waterlan.home.xs4all.nl/dos2unix/%{name}-%{version}.tar.gz %else %scm_source github https://github.com/TeLLie/%{name}-os2 %{version}-os2 %endif BuildRequires: gcc BuildRequires: gettext # perl modules, required for tests BuildRequires: perl-Test-Harness perl-Test-Simple BuildRequires: make Provides: unix2dos = %{version}-%{release} Obsoletes: unix2dos < 5.1-1 %description Convert text files with DOS or Mac line endings to Unix line endings and vice versa. %debug_package %prep %if !0%{?os2_version} %setup -q %else %scm_setup %endif %build export LIBS="-lcx" %if !0%{?os2_version} %make_build LDFLAGS="%{build_ldflags}" %else make %{?_smp_mflags} %endif %install %make_install # We add doc files manually to %%doc rm -rf $RPM_BUILD_ROOT%{_docdir} %find_lang %{name} --with-man --all-name %check %if !0%{?os2_version} make test %endif %files -f %{name}.lang %license COPYING.txt %doc man/man1/dos2unix.htm ChangeLog.txt %doc NEWS.txt README.txt TODO.txt %if !0%{?os2_version} %{_bindir}/dos2unix %{_bindir}/mac2unix %{_bindir}/unix2dos %{_bindir}/unix2mac %else %{_bindir}/dos2unix.exe %{_bindir}/mac2unix.exe %{_bindir}/unix2dos.exe %{_bindir}/unix2mac.exe %endif %{_mandir}/man1/*.1* %changelog * Wed Aug 30 2023 Elbert Pol - 7.5.1-1 - Updated to latest version * Fri May 19 2023 Elbert Pol - 7.5.0-1 - Updated to latest version * Sun Feb 12 2023 Elbert Pol - 7.4.4-1 - Updated to latest version * Sun Jun 05 2022 Elbert Pol - 7.4.3-1 - Updated to latest version * Mon Oct 19 2020 Elbert Pol - 7.4.2-2 - Add changelog from previous version * Mon Oct 12 2020 Elbert Pol - 7.4.2-1 - Update to latest source - Add some OS2 definition to spec file * Sat Apr 11 2020 Elbert Pol 7.4.1-1 - Updated to latest source * Sat Feb 11 2017 Silvan Scherrer 7.3.4-1 - initial port