1
0
Fork 0
mirror of https://repo.or.cz/socat.git synced 2025-07-22 02:22:57 +00:00

Socat now installs as socat1, with symlink socat

This commit is contained in:
Gerhard Rieger 2023-10-26 18:44:10 +02:00
parent d10dd8a03e
commit 1861303728
3 changed files with 21 additions and 4 deletions

View file

@ -38,6 +38,8 @@ mkdir -p $RPM_BUILD_ROOT%{_bindir}
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
make install DESTDIR=$RPM_BUILD_ROOT
mv $RPM_BUILD_ROOT%{_bindir}/socat $RPM_BUILD_ROOT%{_bindir}/socat1
mv $RPM_BUILD_ROOT%{_mandir}/man1/socat.1 $RPM_BUILD_ROOT%{_mandir}/man1/socat1.1
%clean
rm -rf $RPM_BUILD_ROOT
@ -46,7 +48,15 @@ rm -rf $RPM_BUILD_ROOT
%defattr(-,root,root)
%doc README CHANGES EXAMPLES SECURITY doc/socat.html FAQ BUGREPORTS
%doc COPYING COPYING.OpenSSL FILES PORTING DEVELOPMENT
%{_bindir}/socat
%{_bindir}/socat1
%{_bindir}/procan
%{_bindir}/filan
%{_mandir}/man1/socat.1*
%{_mandir}/man1/socat1.1
%post
ln -s -f socat1 %{_binddir}/socat
ln -s -f socat1.1 %{_mandir}/man1/socat.1
%postun
rm -f %{_bindir}/socat
rm -f %{_mandir}/man1/socat.1