forked from pool/glusterfs
trim the semicolons at EOL; they are not really needed
OBS-URL: https://build.opensuse.org/package/show/filesystems/glusterfs?expand=0&rev=43
This commit is contained in:
parent
acfbb4b8e2
commit
c3194e5609
@ -159,40 +159,40 @@ make %{?_smp_mflags}
|
|||||||
%make_install docdir="%_docdir/%name"
|
%make_install docdir="%_docdir/%name"
|
||||||
find %buildroot -type f -name "*.la" -delete -print
|
find %buildroot -type f -name "*.la" -delete -print
|
||||||
|
|
||||||
mkdir -p "%buildroot%_localstatedir/log"/{glusterd,glusterfs,glusterfsd};
|
mkdir -p "%buildroot/%_localstatedir/log"/{glusterd,glusterfs,glusterfsd}
|
||||||
|
|
||||||
# The things seemingly forgotten by make install.
|
# The things seemingly forgotten by make install.
|
||||||
# - Manually populate devel dirs
|
# - Manually populate devel dirs
|
||||||
mkdir -p "%buildroot%_includedir/%name";
|
mkdir -p "%buildroot/%_includedir/%name"
|
||||||
install -pm0644 libglusterfs/src/*.h "%buildroot%_includedir/%name/";
|
install -pm0644 libglusterfs/src/*.h "%buildroot/%_includedir/%name/"
|
||||||
# - hekafs wants this:
|
# - hekafs wants this:
|
||||||
mkdir -p "%buildroot%_includedir/%name"/{rpc,server};
|
mkdir -p "%buildroot/%_includedir/%name"/{rpc,server}
|
||||||
install -pm0644 rpc/rpc-lib/src/*.h rpc/xdr/src/*.h \
|
install -pm0644 rpc/rpc-lib/src/*.h rpc/xdr/src/*.h \
|
||||||
"%buildroot%_includedir/%name/rpc/";
|
"%buildroot/%_includedir/%name/rpc/"
|
||||||
install -pm0644 xlators/protocol/server/src/*.h \
|
install -pm0644 xlators/protocol/server/src/*.h \
|
||||||
"%buildroot%_includedir/%name/server/";
|
"%buildroot/%_includedir/%name/server/"
|
||||||
# - init script; there is no SuSE-release in the build env
|
# - init script; there is no SuSE-release in the build env
|
||||||
mkdir -p "%buildroot%_initddir";
|
mkdir -p "%buildroot/%_initddir"
|
||||||
install -pm0755 extras/init.d/glusterd-SuSE "%buildroot%_initddir/glusterd";
|
install -pm0755 extras/init.d/glusterd-SuSE "%buildroot/%_initddir/glusterd"
|
||||||
# - wrapper umount script?
|
# - wrapper umount script?
|
||||||
# - logrotate entry
|
# - logrotate entry
|
||||||
mkdir -p "%buildroot%_localstatedir/log/%name";
|
mkdir -p "%buildroot/%_localstatedir/log/%name"
|
||||||
# - vim syntax
|
# - vim syntax
|
||||||
|
|
||||||
# - state
|
# - state
|
||||||
mkdir -p "%buildroot%_localstatedir/lib/glusterd";
|
mkdir -p "%buildroot/%_localstatedir/lib/glusterd"
|
||||||
perl -i -pe \
|
perl -i -pe \
|
||||||
's{^(\s*option working-directory )\S+}{$1 %_localstatedir/lib/glusterd}g' \
|
's{^(\s*option working-directory )\S+}{$1 %_localstatedir/lib/glusterd}g' \
|
||||||
"%buildroot%_sysconfdir/%name/glusterd.vol";
|
"%buildroot/%_sysconfdir/%name/glusterd.vol"
|
||||||
|
|
||||||
# Clean, but must NOT remove .la from dirs not searched by
|
# Clean, but must NOT remove .la from dirs not searched by
|
||||||
# default, thus maxdepth.
|
# default, thus maxdepth.
|
||||||
find %buildroot -type f -name "*.la" -delete -print
|
find %buildroot -type f -name "*.la" -delete -print
|
||||||
|
|
||||||
# W: wrong-file-end-of-line-encoding
|
# W: wrong-file-end-of-line-encoding
|
||||||
perl -i -pe 's{\x0d\x0a}{\x0a}gs' %_docdir/%name/glusterfs-mode.el;
|
perl -i -pe 's{\x0d\x0a}{\x0a}gs' %_docdir/%name/glusterfs-mode.el
|
||||||
|
|
||||||
mkdir -p "%buildroot%_unitdir";
|
mkdir -p "%buildroot/%_unitdir"
|
||||||
rm -Rf "%buildroot%_initddir"
|
rm -Rf "%buildroot%_initddir"
|
||||||
ln -s service "%buildroot%_sbindir/rcglusterd"
|
ln -s service "%buildroot%_sbindir/rcglusterd"
|
||||||
chmod u-s "%buildroot%_bindir/fusermount-glusterfs"
|
chmod u-s "%buildroot%_bindir/fusermount-glusterfs"
|
||||||
|
Loading…
Reference in New Issue
Block a user