this change removes *.a from -dev or -devel packages.
* configure.ac:
- use LT_INIT instead of AM_PROG_LIBTOOL. the later is deprecated.
- disable static lib:
.a static libraries not not useful, it's tricky to generate both
static libraries and shared libraries in cmake.
see http://www.spinics.net/lists/ceph-devel/msg30637.html
* ceph.spec.in: fedora packaging policy forbids this
see
https://fedoraproject.org/wiki/Packaging:Guidelines#Packaging_Static_Libraries
* debian/*-dev.install: debian does not requires this
see
https://www.debian.org/doc/debian-policy/ch-sharedlibs.html#s-sharedlibs-static
Signed-off-by: Kefu Chai <kchai@redhat.com>
* The `osd crush location` config option is no longer supported. Please
update your ceph.conf to use the `crush location` option instead.
+
+* The static libraries are not included by the debian development packages
+ (lib*-dev) any more. As it is not required per debian packaging policy.
+ And their shared versions are packaged as before.
+
+* The libtool pseudo-libraries (.la files) are not included by the debian
+ development packages (lib*-dev) any more. As it is unneeded, and per
+ https://wiki.debian.org/ReleaseGoals/LAFileRemoval and
+ https://www.debian.org/doc/manuals/maint-guide/advanced.en.html,
+ we should remove them.
\ No newline at end of file
%install
make DESTDIR=%{buildroot} install
find %{buildroot} -type f -name "*.la" -exec rm -f {} ';'
-find %{buildroot} -type f -name "*.a" -exec rm -f {} ';'
install -D src/etc-rbdmap %{buildroot}%{_sysconfdir}/ceph/rbdmap
%if 0%{?fedora} || 0%{?rhel}
install -m 0644 -D etc/sysconfig/ceph %{buildroot}%{_sysconfdir}/sysconfig/ceph
# Automake
AM_PROG_CC_C_O
-AM_PROG_LIBTOOL
+LT_INIT([disable-static])
AM_PROG_AS
usr/include/cephfs/libcephfs.h
-usr/lib/libcephfs.a
usr/lib/libcephfs.so
usr/include/rados/rados_types.h
usr/include/rados/rados_types.hpp
usr/include/rados/memory.h
-usr/lib/librados.a
usr/lib/librados.so
usr/share/man/man8/librados-config.8
usr/include/radosstriper/libradosstriper.h
usr/include/radosstriper/libradosstriper.hpp
-usr/lib/libradosstriper.a
usr/lib/libradosstriper.so
usr/include/rbd/features.h
usr/include/rbd/librbd.h
usr/include/rbd/librbd.hpp
-usr/lib/librbd.a
usr/lib/librbd.so
usr/include/rados/librgw.h
usr/include/rados/rgw_file.h
-usr/lib/librgw.a
usr/lib/librgw.so