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
Release: 1%{?dist}
License: BSD
URL: http://waterlan.home.xs4all.nl/dos2unix.html
Source: http://waterlan.home.xs4all.nl/dos2unix/%{name}-%{version}.tar.gz
URL: https://waterlan.home.xs4all.nl/dos2unix.html
Source: https://waterlan.home.xs4all.nl/dos2unix/%{name}-%{version}.tar.gz
BuildRequires: gcc
BuildRequires: gettext
# perl modules, required for tests
@ -21,10 +21,10 @@ vice versa.
%setup -q
%build
make %{?_smp_mflags} LDFLAGS="%{build_ldflags}"
%make_build LDFLAGS="%{build_ldflags}"
%install
make DESTDIR=$RPM_BUILD_ROOT install
%make_install
# We add doc files manually to %%doc
rm -rf $RPM_BUILD_ROOT%{_docdir}
@ -35,7 +35,8 @@ rm -rf $RPM_BUILD_ROOT%{_docdir}
make test
%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
%{_bindir}/dos2unix
%{_bindir}/mac2unix