[packages/libcec] - drop versioned binaries
arekm
arekm at pld-linux.org
Sun Jan 17 11:40:15 CET 2021
commit f6d721c7351a16bc8a6252404eac375a760c53f3
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sun Jan 17 11:40:01 2021 +0100
- drop versioned binaries
libcec.spec | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/libcec.spec b/libcec.spec
index aa8bd8d..14826b8 100644
--- a/libcec.spec
+++ b/libcec.spec
@@ -96,6 +96,11 @@ rm -rf $RPM_BUILD_ROOT
%{__make} -C build install \
DESTDIR=$RPM_BUILD_ROOT
+# Remove versioned binaries
+rm $RPM_BUILD_ROOT/%{_bindir}/cec-client $RPM_BUILD_ROOT/%{_bindir}/cecc-client
+mv $RPM_BUILD_ROOT/%{_bindir}/cec-client-%{version} $RPM_BUILD_ROOT/%{_bindir}/cec-client
+mv $RPM_BUILD_ROOT/%{_bindir}/cecc-client-%{version} $RPM_BUILD_ROOT/%{_bindir}/cecc-client
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -111,8 +116,8 @@ rm -rf $RPM_BUILD_ROOT
%files utils
%defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/cec-client*
-%attr(755,root,root) %{_bindir}/cecc-client*
+%attr(755,root,root) %{_bindir}/cec-client
+%attr(755,root,root) %{_bindir}/cecc-client
%files devel
%defattr(644,root,root,755)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libcec.git/commitdiff/f6d721c7351a16bc8a6252404eac375a760c53f3
More information about the pld-cvs-commit
mailing list