1
0
forked from pool/glusterfs

Go back to the previous style

OBS-URL: https://build.opensuse.org/package/show/filesystems/glusterfs?expand=0&rev=41
This commit is contained in:
Jan Engelhardt 2017-10-17 12:07:48 +00:00 committed by Git OBS Bridge
parent 696d15a5bf
commit 02b8e145e6

View File

@ -25,7 +25,7 @@ Group: System/Filesystems
Url: http://www.gluster.org/ Url: http://www.gluster.org/
#Git-Clone: git://github.com/gluster/glusterfs #Git-Clone: git://github.com/gluster/glusterfs
#Git-Clone: git://github.com/fvzwieten/lsgvt #Git-Clone: git://github.com/fvzwieten/lsgvt
Source: http://download.gluster.org/pub/gluster/glusterfs/3.8/%{version}/%{name}-%{version}.tar.gz Source: http://download.gluster.org/pub/gluster/glusterfs/3.8/%version/%name-%version.tar.gz
Patch1: glusterfs-date.diff Patch1: glusterfs-date.diff
BuildRequires: acl-devel BuildRequires: acl-devel
BuildRequires: autoconf BuildRequires: autoconf
@ -130,12 +130,12 @@ petabytes.
%package devel %package devel
Summary: Development files for glusterfs Summary: Development files for glusterfs
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: %{name} = %{version} Requires: %name = %version
Requires: libgfapi0 = %{version} Requires: libgfapi0 = %version
Requires: libgfchangelog0 = %{version} Requires: libgfchangelog0 = %version
Requires: libgfrpc0 = %{version} Requires: libgfrpc0 = %version
Requires: libgfxdr0 = %{version} Requires: libgfxdr0 = %version
Requires: libglusterfs0 = %{version} Requires: libglusterfs0 = %version
%description devel %description devel
GlusterFS is a clustered file-system capable of scaling to several GlusterFS is a clustered file-system capable of scaling to several
@ -156,47 +156,47 @@ links.
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
%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"
%fdupes %{buildroot}/%{_prefix} %fdupes %buildroot/%_prefix
%pre %pre
%service_add_pre glusterd.service %service_add_pre glusterd.service
@ -225,68 +225,68 @@ chmod u-s "%{buildroot}%{_bindir}/fusermount-glusterfs"
%files %files
%doc COPYING-GPLV2 COPYING-LGPLV3 ChangeLog NEWS README.md %doc COPYING-GPLV2 COPYING-LGPLV3 ChangeLog NEWS README.md
%dir %{_sysconfdir}/%{name} %dir %_sysconfdir/%name
%config(noreplace) %{_sysconfdir}/%{name}/glusterd.vol %config(noreplace) %_sysconfdir/%name/glusterd.vol
%config(noreplace) %{_sysconfdir}/%{name}/glusterfs-logrotate %config(noreplace) %_sysconfdir/%name/glusterfs-logrotate
%config %{_sysconfdir}/%{name}/gluster-rsyslog*.conf %config %_sysconfdir/%name/gluster-rsyslog*.conf
%config %{_sysconfdir}/%{name}/*.example %config %_sysconfdir/%name/*.example
%config %{_sysconfdir}/%{name}/*-logrotate %config %_sysconfdir/%name/*-logrotate
%{_bindir}/fusermount-glusterfs %_bindir/fusermount-glusterfs
%{_bindir}/glusterfind %_bindir/glusterfind
/sbin/mount.%{name} /sbin/mount.%name
%{_libexecdir}/%{name}/ %_libexecdir/%name/
%{_libdir}/%{name}/ %_libdir/%name/
%{_sbindir}/gluster* %_sbindir/gluster*
%{_sbindir}/glfsheal %_sbindir/glfsheal
%{_sbindir}/rcglusterd %_sbindir/rcglusterd
%{_sbindir}/gcron.py %_sbindir/gcron.py
%{_sbindir}/gfind_missing_files %_sbindir/gfind_missing_files
%{_sbindir}/snap_scheduler.py %_sbindir/snap_scheduler.py
%{_datadir}/glusterfs/ %_datadir/glusterfs/
%{_mandir}/man*/* %_mandir/man*/*
%{_docdir}/%{name} %_docdir/%name
%{_localstatedir}/lib/glusterd %_localstatedir/lib/glusterd
%{_localstatedir}/log/%{name} %_localstatedir/log/%name
%{_unitdir}/glusterd.service %_unitdir/glusterd.service
%{_libexecdir}/ocf %_libexecdir/ocf
%files -n libgfapi0 %files -n libgfapi0
%{_libdir}/libgfapi.so.0* %_libdir/libgfapi.so.0*
%files -n libgfchangelog0 %files -n libgfchangelog0
%{_libdir}/libgfchangelog.so.0* %_libdir/libgfchangelog.so.0*
%files -n libgfrpc0 %files -n libgfrpc0
%{_libdir}/libgfrpc.so.0* %_libdir/libgfrpc.so.0*
%files -n libgfxdr0 %files -n libgfxdr0
%{_libdir}/libgfxdr.so.0* %_libdir/libgfxdr.so.0*
%files -n libglusterfs0 %files -n libglusterfs0
%{_libdir}/libglusterfs.so.0* %_libdir/libglusterfs.so.0*
%files -n libgfdb0 %files -n libgfdb0
%{_libdir}/libgfdb.so.0* %_libdir/libgfdb.so.0*
%files ganesha %files ganesha
%dir %{_sysconfdir}/ganesha %dir %_sysconfdir/ganesha
%dir %{_libexecdir}/ganesha %dir %_libexecdir/ganesha
%{_sysconfdir}/ganesha/ganesha-ha.conf.sample %_sysconfdir/ganesha/ganesha-ha.conf.sample
%{_libexecdir}/ganesha/copy-export-ganesha.sh %_libexecdir/ganesha/copy-export-ganesha.sh
%{_libexecdir}/ganesha/create-export-ganesha.sh %_libexecdir/ganesha/create-export-ganesha.sh
%{_libexecdir}/ganesha/dbus-send.sh %_libexecdir/ganesha/dbus-send.sh
%{_libexecdir}/ganesha/ganesha-ha.sh %_libexecdir/ganesha/ganesha-ha.sh
%{_libexecdir}/ganesha/generate-epoch.py %_libexecdir/ganesha/generate-epoch.py
%files -n python-gluster %files -n python-gluster
%dir %{python_sitelib}/gluster %dir %python_sitelib/gluster
%dir %{python_sitelib}/gluster/glupy %dir %python_sitelib/gluster/glupy
%{python_sitelib}/gluster/__init__.* %python_sitelib/gluster/__init__.*
%{python_sitelib}/gluster/glupy/__init__.* %python_sitelib/gluster/glupy/__init__.*
%files devel %files devel
%{_includedir}/%{name} %_includedir/%name
%{_libdir}/*.so %_libdir/*.so
%{_libdir}/pkgconfig/*.pc %_libdir/pkgconfig/*.pc
%changelog %changelog