diff --git a/traceroute.spec b/traceroute.spec index 2f1301c..8078116 100644 --- a/traceroute.spec +++ b/traceroute.spec @@ -5,7 +5,7 @@ Version: 2.1.0 Release: 12%{?dist} License: GPLv2+ URL: http://traceroute.sourceforge.net -Source0: http://downloads.sourceforge.net/project/traceroute/traceroute/traceroute-%{version}/traceroute-%{version}.tar.gz +Source0: https://downloads.sourceforge.net/project/traceroute/traceroute/traceroute-%{version}/traceroute-%{version}.tar.gz Provides: tcptraceroute = 1.5-1 Obsoletes: tcptraceroute < 1.5-1 @@ -35,29 +35,23 @@ problems. %install - -install -d $RPM_BUILD_ROOT/bin -install -m755 traceroute/traceroute $RPM_BUILD_ROOT/bin -pushd $RPM_BUILD_ROOT/bin -ln -s traceroute traceroute6 -popd - -install -d $RPM_BUILD_ROOT%{_bindir} -install -m755 wrappers/tcptraceroute $RPM_BUILD_ROOT%{_bindir} - -install -d $RPM_BUILD_ROOT%{_mandir}/man8 -install -p -m644 traceroute/traceroute.8 $RPM_BUILD_ROOT%{_mandir}/man8 -pushd $RPM_BUILD_ROOT%{_mandir}/man8 -ln -s traceroute.8 traceroute6.8 -ln -s traceroute.8 tcptraceroute.8 -popd +install -D -p -m755 traceroute/traceroute $RPM_BUILD_ROOT%{_bindir}/traceroute +ln -s traceroute $RPM_BUILD_ROOT%{_bindir}/traceroute6 +install -D -p -m755 wrappers/tcptraceroute $RPM_BUILD_ROOT%{_bindir}/tcptraceroute +install -D -p -m644 traceroute/traceroute.8 $RPM_BUILD_ROOT%{_mandir}/man8/traceroute.8 +ln -s traceroute.8 $RPM_BUILD_ROOT%{_mandir}/man8/traceroute6.8 +ln -s traceroute.8 $RPM_BUILD_ROOT%{_mandir}/man8/tcptraceroute.8 %files -%doc COPYING README TODO CREDITS -/bin/* -%{_bindir}/* -%{_mandir}/*/* +%license COPYING +%doc README TODO CREDITS +%{_bindir}/traceroute +%{_bindir}/traceroute6 +%{_bindir}/tcptraceroute +%{_mandir}/man8/traceroute.8* +%{_mandir}/man8/traceroute6.8* +%{_mandir}/man8/tcptraceroute.8* %changelog