Spec file cleanup

This commit is contained in:
Robert Scheck 2021-01-13 01:27:07 +00:00
parent 19aef1d994
commit 4e3fb7981d

View File

@ -3,8 +3,8 @@ Name: dos2unix
Version: 7.4.2 Version: 7.4.2
Release: 1%{?dist} Release: 1%{?dist}
License: BSD License: BSD
URL: http://waterlan.home.xs4all.nl/dos2unix.html URL: https://waterlan.home.xs4all.nl/dos2unix.html
Source: http://waterlan.home.xs4all.nl/dos2unix/%{name}-%{version}.tar.gz Source: https://waterlan.home.xs4all.nl/dos2unix/%{name}-%{version}.tar.gz
BuildRequires: gcc BuildRequires: gcc
BuildRequires: gettext BuildRequires: gettext
# perl modules, required for tests # perl modules, required for tests
@ -21,10 +21,10 @@ vice versa.
%setup -q %setup -q
%build %build
make %{?_smp_mflags} LDFLAGS="%{build_ldflags}" %make_build LDFLAGS="%{build_ldflags}"
%install %install
make DESTDIR=$RPM_BUILD_ROOT install %make_install
# We add doc files manually to %%doc # We add doc files manually to %%doc
rm -rf $RPM_BUILD_ROOT%{_docdir} rm -rf $RPM_BUILD_ROOT%{_docdir}
@ -35,7 +35,8 @@ rm -rf $RPM_BUILD_ROOT%{_docdir}
make test make test
%files -f %{name}.lang %files -f %{name}.lang
%doc man/man1/dos2unix.htm ChangeLog.txt COPYING.txt %license COPYING.txt
%doc man/man1/dos2unix.htm ChangeLog.txt
%doc NEWS.txt README.txt TODO.txt %doc NEWS.txt README.txt TODO.txt
%{_bindir}/dos2unix %{_bindir}/dos2unix
%{_bindir}/mac2unix %{_bindir}/mac2unix