General cleanup for Duplicate Provides, but found lots of other issues
in the spec file: - let base package include all its documentation files via %doc magic, so for Fedora 20 Unversioned Docdirs no files are included accidentally - include the sample config files again (instead of just an empty docdir that has been added for #846735) - don't include librbd.so.1 also in -devel package (#1003202) - move one misplaced rados plugin from -devel into -libs package (#891993) - include missing directories in -devel and -libs packages - move librados-config into the -devel pkg where its manual page is, too - add %_isa to subpackage dependencies - don't use %defattr anymore - add V=1 to make invocation for verbose build output
This commit is contained in:
parent
fc25307343
commit
f6f6a625d7
48
ceph.spec
48
ceph.spec
@ -1,6 +1,6 @@
|
|||||||
Name: ceph
|
Name: ceph
|
||||||
Version: 0.61.7
|
Version: 0.61.7
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
Summary: User space components of the Ceph file system
|
Summary: User space components of the Ceph file system
|
||||||
License: LGPLv2
|
License: LGPLv2
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
@ -45,7 +45,7 @@ libcephfs library for Ceph distributed network file system
|
|||||||
%package fuse
|
%package fuse
|
||||||
Summary: Ceph fuse-based client
|
Summary: Ceph fuse-based client
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
BuildRequires: fuse-devel
|
BuildRequires: fuse-devel
|
||||||
%description fuse
|
%description fuse
|
||||||
FUSE based client for Ceph distributed network file system
|
FUSE based client for Ceph distributed network file system
|
||||||
@ -54,9 +54,9 @@ FUSE based client for Ceph distributed network file system
|
|||||||
Summary: Ceph headers
|
Summary: Ceph headers
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
License: LGPLv2
|
License: LGPLv2
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
Requires: %{name}-libs = %{version}-%{release}
|
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
||||||
Requires: %{name}-libcephfs = %{version}-%{release}
|
Requires: %{name}-libcephfs%{?_isa} = %{version}-%{release}
|
||||||
%description devel
|
%description devel
|
||||||
This package contains the headers needed to develop programs that use Ceph.
|
This package contains the headers needed to develop programs that use Ceph.
|
||||||
|
|
||||||
@ -100,7 +100,7 @@ CFLAGS="$RPM_OPT_FLAGS $EXTRA_CFLAGS" \
|
|||||||
CXXFLAGS="$RPM_OPT_FLAGS $EXTRA_CFLAGS -fvisibility-inlines-hidden" \
|
CXXFLAGS="$RPM_OPT_FLAGS $EXTRA_CFLAGS -fvisibility-inlines-hidden" \
|
||||||
LDFLAGS="$EXTRA_LDFLAGS"
|
LDFLAGS="$EXTRA_LDFLAGS"
|
||||||
|
|
||||||
make %{?_smp_mflags}
|
V=1 make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
@ -108,6 +108,8 @@ find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
|
|||||||
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
|
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
|
||||||
install -D src/init-ceph $RPM_BUILD_ROOT%{_initrddir}/ceph
|
install -D src/init-ceph $RPM_BUILD_ROOT%{_initrddir}/ceph
|
||||||
chmod 0644 $RPM_BUILD_ROOT%{_docdir}/ceph/sample.ceph.conf
|
chmod 0644 $RPM_BUILD_ROOT%{_docdir}/ceph/sample.ceph.conf
|
||||||
|
rm -rf __tmp_docs ; mkdir __tmp_docs
|
||||||
|
mv $RPM_BUILD_ROOT%{_docdir}/ceph/* __tmp_docs
|
||||||
install -m 0644 -D src/logrotate.conf $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/ceph
|
install -m 0644 -D src/logrotate.conf $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/ceph
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/ceph/tmp/
|
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/ceph/tmp/
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/log/ceph/
|
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/log/ceph/
|
||||||
@ -135,10 +137,8 @@ fi
|
|||||||
%postun libcephfs -p /sbin/ldconfig
|
%postun libcephfs -p /sbin/ldconfig
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%doc README COPYING __tmp_docs/sample*
|
||||||
%doc README COPYING
|
|
||||||
%dir %{_sysconfdir}/ceph
|
%dir %{_sysconfdir}/ceph
|
||||||
%dir %{_docdir}/ceph
|
|
||||||
%{_bindir}/ceph
|
%{_bindir}/ceph
|
||||||
%{_bindir}/cephfs
|
%{_bindir}/cephfs
|
||||||
%{_bindir}/ceph-conf
|
%{_bindir}/ceph-conf
|
||||||
@ -153,7 +153,6 @@ fi
|
|||||||
%{_bindir}/ceph-mds
|
%{_bindir}/ceph-mds
|
||||||
%{_bindir}/ceph-osd
|
%{_bindir}/ceph-osd
|
||||||
%{_bindir}/ceph-rbdnamer
|
%{_bindir}/ceph-rbdnamer
|
||||||
%{_bindir}/librados-config
|
|
||||||
%{_bindir}/rados
|
%{_bindir}/rados
|
||||||
%{_bindir}/rbd
|
%{_bindir}/rbd
|
||||||
%{_bindir}/ceph-debugpack
|
%{_bindir}/ceph-debugpack
|
||||||
@ -204,23 +203,21 @@ fi
|
|||||||
%dir %{_localstatedir}/log/ceph/
|
%dir %{_localstatedir}/log/ceph/
|
||||||
|
|
||||||
%files libs
|
%files libs
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc COPYING
|
%doc COPYING
|
||||||
%{_libdir}/librados.so.*
|
%{_libdir}/librados.so.*
|
||||||
%{_libdir}/librbd.so.*
|
%{_libdir}/librbd.so.*
|
||||||
%{_libdir}/rados-classes/libcls_rbd.so.*
|
%dir %{_libdir}/rados-classes
|
||||||
|
%{_libdir}/rados-classes/libcls_rbd.so*
|
||||||
%{_libdir}/rados-classes/libcls_rgw.so*
|
%{_libdir}/rados-classes/libcls_rgw.so*
|
||||||
%{_libdir}/rados-classes/libcls_lock*
|
%{_libdir}/rados-classes/libcls_lock*
|
||||||
%{_libdir}/rados-classes/libcls_kvs*
|
%{_libdir}/rados-classes/libcls_kvs*
|
||||||
%{_libdir}/rados-classes/libcls_refcount*
|
%{_libdir}/rados-classes/libcls_refcount*
|
||||||
|
|
||||||
%files libcephfs
|
%files libcephfs
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc COPYING
|
%doc COPYING
|
||||||
%{_libdir}/libcephfs.so.*
|
%{_libdir}/libcephfs.so.*
|
||||||
|
|
||||||
%files fuse
|
%files fuse
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc COPYING
|
%doc COPYING
|
||||||
%{_bindir}/ceph-fuse
|
%{_bindir}/ceph-fuse
|
||||||
%{_bindir}/rbd-fuse
|
%{_bindir}/rbd-fuse
|
||||||
@ -229,13 +226,15 @@ fi
|
|||||||
%{_mandir}/man8/rbd-fuse.8*
|
%{_mandir}/man8/rbd-fuse.8*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc COPYING
|
%doc COPYING
|
||||||
|
%dir %{_includedir}/cephfs
|
||||||
%{_includedir}/cephfs/libcephfs.h
|
%{_includedir}/cephfs/libcephfs.h
|
||||||
|
#%dir %{_includedir}/crush
|
||||||
#%{_includedir}/crush/crush.h
|
#%{_includedir}/crush/crush.h
|
||||||
#%{_includedir}/crush/hash.h
|
#%{_includedir}/crush/hash.h
|
||||||
#%{_includedir}/crush/mapper.h
|
#%{_includedir}/crush/mapper.h
|
||||||
#%{_includedir}/crush/types.h
|
#%{_includedir}/crush/types.h
|
||||||
|
%dir %{_includedir}/rados
|
||||||
%{_includedir}/rados/librados.h
|
%{_includedir}/rados/librados.h
|
||||||
%{_includedir}/rados/librados.hpp
|
%{_includedir}/rados/librados.hpp
|
||||||
%{_includedir}/rados/rados_types.h
|
%{_includedir}/rados/rados_types.h
|
||||||
@ -244,24 +243,37 @@ fi
|
|||||||
%{_includedir}/rados/page.h
|
%{_includedir}/rados/page.h
|
||||||
%{_includedir}/rados/crc32c.h
|
%{_includedir}/rados/crc32c.h
|
||||||
#%{_includedir}/rados/librgw.h
|
#%{_includedir}/rados/librgw.h
|
||||||
|
%dir %{_includedir}/rbd
|
||||||
%{_includedir}/rbd/librbd.h
|
%{_includedir}/rbd/librbd.h
|
||||||
%{_includedir}/rbd/librbd.hpp
|
%{_includedir}/rbd/librbd.hpp
|
||||||
%{_includedir}/rbd/features.h
|
%{_includedir}/rbd/features.h
|
||||||
%{_libdir}/libcephfs.so
|
%{_libdir}/libcephfs.so
|
||||||
%{_libdir}/librados.so
|
%{_libdir}/librados.so
|
||||||
#%{_libdir}/librgw.so
|
#%{_libdir}/librgw.so
|
||||||
%{_libdir}/librbd.so*
|
%{_libdir}/librbd.so
|
||||||
%{_libdir}/rados-classes/libcls_rbd.so
|
%{_bindir}/librados-config
|
||||||
%{_mandir}/man8/librados-config.8*
|
%{_mandir}/man8/librados-config.8*
|
||||||
|
|
||||||
|
|
||||||
%files radosgw
|
%files radosgw
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_bindir}/radosgw
|
%{_bindir}/radosgw
|
||||||
%{_bindir}/radosgw-admin
|
%{_bindir}/radosgw-admin
|
||||||
%{_sysconfdir}/bash_completion.d/radosgw-admin
|
%{_sysconfdir}/bash_completion.d/radosgw-admin
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Sep 11 2013 Michael Schwendt <mschwendt@fedoraproject.org> - 0.61.7-3
|
||||||
|
- let base package include all its documentation files via %%doc magic,
|
||||||
|
so for Fedora 20 Unversioned Docdirs no files are included accidentally
|
||||||
|
- include the sample config files again (instead of just an empty docdir
|
||||||
|
that has been added for #846735)
|
||||||
|
- don't include librbd.so.1 also in -devel package (#1003202)
|
||||||
|
- move one misplaced rados plugin from -devel into -libs package (#891993)
|
||||||
|
- include missing directories in -devel and -libs packages
|
||||||
|
- move librados-config into the -devel pkg where its manual page is, too
|
||||||
|
- add %%_isa to subpackage dependencies
|
||||||
|
- don't use %%defattr anymore
|
||||||
|
- add V=1 to make invocation for verbose build output
|
||||||
|
|
||||||
* Wed Jul 31 2013 Peter Robinson <pbrobinson@fedoraproject.org> 0.61.7-2
|
* Wed Jul 31 2013 Peter Robinson <pbrobinson@fedoraproject.org> 0.61.7-2
|
||||||
- re-enable tmalloc on arm now gperftools is fixed
|
- re-enable tmalloc on arm now gperftools is fixed
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user