|
Last change
on this file since 1732 was 1722, checked in by tellie, 5 years ago |
|
spec: dos2unix: Release version 7.4.2-2.
|
|
File size:
1.7 KB
|
| Line | |
|---|
| 1 | Summary: Text file format converters
|
|---|
| 2 | Name: dos2unix
|
|---|
| 3 | Version: 7.4.2
|
|---|
| 4 | Release: 2%{?dist}
|
|---|
| 5 | License: BSD
|
|---|
| 6 | URL: http://waterlan.home.xs4all.nl/dos2unix.html
|
|---|
| 7 | %if !0%{?os2_version}
|
|---|
| 8 | Source: 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 |
|
|---|
| 13 | BuildRequires: gcc
|
|---|
| 14 | BuildRequires: gettext
|
|---|
| 15 | # perl modules, required for tests
|
|---|
| 16 | BuildRequires: perl-Test-Harness perl-Test-Simple
|
|---|
| 17 | Provides: unix2dos = %{version}-%{release}
|
|---|
| 18 | Obsoletes: unix2dos < 5.1-1
|
|---|
| 19 |
|
|---|
| 20 | %description
|
|---|
| 21 | Convert text files with DOS or Mac line endings to Unix line endings and
|
|---|
| 22 | vice 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
|
|---|
| 34 | export LIBS="-lcx"
|
|---|
| 35 | make %{?_smp_mflags}
|
|---|
| 36 |
|
|---|
| 37 | %install
|
|---|
| 38 | make DESTDIR=$RPM_BUILD_ROOT install
|
|---|
| 39 |
|
|---|
| 40 | # We add doc files manually to %%doc
|
|---|
| 41 | rm -rf $RPM_BUILD_ROOT%{_docdir}
|
|---|
| 42 |
|
|---|
| 43 | %find_lang %{name} --with-man --all-name
|
|---|
| 44 |
|
|---|
| 45 | %check
|
|---|
| 46 | %if !0%{?os2_version}
|
|---|
| 47 | make 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 19 2020 Elbert Pol <elbert.pol@gmail.com> - 7.4.2-2
|
|---|
| 68 | - Add changelog from previous version
|
|---|
| 69 |
|
|---|
| 70 | * Mon Oct 12 2020 Elbert Pol <elbert.pol@gmail.com> - 7.4.2-1
|
|---|
| 71 | - Update to latest source
|
|---|
| 72 | - Add some OS2 definition to spec file
|
|---|
| 73 |
|
|---|
| 74 | * Sat Apr 11 2020 Elbert Pol <elbert.pol@gmail.com> 7.4.1-1
|
|---|
| 75 | - Updated to latest source
|
|---|
| 76 |
|
|---|
| 77 | * Sat Feb 11 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> 7.3.4-1
|
|---|
| 78 | - initial port
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.