[packages/ceph] - fix shebangs

qboosh qboosh at pld-linux.org
Fri May 22 17:00:07 CEST 2020


commit e3919159a47cdbf97b403765bf1cb1caeb5b449e
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri May 22 17:00:43 2020 +0200

    - fix shebangs

 ceph.spec | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
---
diff --git a/ceph.spec b/ceph.spec
index 3c12d05..4b69581 100644
--- a/ceph.spec
+++ b/ceph.spec
@@ -40,7 +40,7 @@ Patch0:		%{name}-init-fix.patch
 Patch1:		%{name}.logrotate.patch
 Patch2:		cxx.patch
 Patch3:		boost.patch
-URL:		http://ceph.com/
+URL:		https://ceph.io/
 %{?with_accelio:BuildRequires:	accelio-devel}
 BuildRequires:	autoconf >= 2.59
 BuildRequires:	automake
@@ -76,6 +76,7 @@ BuildRequires:	pkgconfig
 BuildRequires:	python >= 1:2.4
 %{?with_rocksdb:BuildRequires:	rocksdb-devel}
 BuildRequires:	rpmbuild(macros) >= 1.671
+BuildRequires:	sed >= 4.0
 BuildRequires:	snappy-devel
 BuildRequires:	udev-devel
 BuildRequires:	xfsprogs-devel
@@ -218,6 +219,13 @@ Agenci OCF do monitorowania procesów Cepha.
 %patch2 -p1
 %patch3 -p0
 
+%{__sed} -i -e '1s,/usr/bin/env python$,%{__python},' \
+	src/{ceph-create-keys,ceph-disk,ceph-rest-api} \
+	src/brag/client/ceph-brag
+
+# adjust rule used to create ceph from ceph.in
+%{__sed} -i -e 's,"#!/usr/bin/env python","#!%{__python}",' src/Makefile-client.am
+
 %build
 %{__libtoolize}
 %{__aclocal} -I m4
@@ -361,7 +369,9 @@ fi
 %attr(755,root,root) /sbin/ceph-disk-udev
 %attr(755,root,root) /sbin/mount.ceph
 %attr(755,root,root) /sbin/mount.fuse.ceph
+%if "%{_libexecdir}" != "%{_libdir}"
 %dir %{_libexecdir}/ceph
+%endif
 %attr(755,root,root) %{_libexecdir}/ceph/ceph-osd-prestart.sh
 %dir %{_libdir}/ceph
 %{_libdir}/ceph/ceph_common.sh
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ceph.git/commitdiff/e3919159a47cdbf97b403765bf1cb1caeb5b449e



More information about the pld-cvs-commit mailing list