X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre.spec.in;h=cbf123e877954b4204221c4353f83ff89803a51c;hp=312db2d06d27be2289a2fdf2b4ccd8b3329f07e7;hb=75f07b2fa054b69d1c20eef8dddb831af41fd7a5;hpb=cd4525f2c71e7bd186a42969d059ba24e5ef01c7 diff --git a/lustre.spec.in b/lustre.spec.in index 312db2d..cbf123e 100644 --- a/lustre.spec.in +++ b/lustre.spec.in @@ -10,6 +10,8 @@ %bcond_without lustre_modules %bcond_with lnet_dlc %bcond_without manpages +%bcond_without shared +%bcond_without static %if %{without servers} # --without servers overrides --with {ldiskfs|zfs} @@ -35,7 +37,7 @@ %{!?myrelease: %global myrelease %(if [ -n "%downstream_release" ]; then echo -n "%{downstream_release}_"; fi; echo %kversion | tr '-' '_')} # for those uses that don't want the -smp/-bigsmp (or the .arch) on the end # of %kversion - %define krequires %(echo %{kversion} | sed -e 's/\.x86_64$//' -e 's/\.i[3456]86$//' -e 's/-smp$//' -e 's/-bigsmp$//' -e 's/[-.]ppc64$//' -e 's/-default$//') + %define krequires %(echo %{kversion} | sed -e 's/\.x86_64$//' -e 's/\.i[3456]86$//' -e 's/-smp$//' -e 's/-bigsmp$//' -e 's/[-.]ppc64$//' -e 's/\.aarch64$//' -e 's/-default$//') %endif # always append the buildid, even when the caller defines %release @@ -113,6 +115,7 @@ BuildRequires: python-docutils %if %{with servers} Requires: lustre-osd Requires: lustre-osd-mount +Provides: lustre-client = %{version}-%{fullrelease} %endif %if %{defined cross_requires} Requires: %{cross_requires} @@ -160,7 +163,7 @@ Summary: osd-ldiskfs contains both ldiskfs and its osd interface in Lustre. Requires: lustre-modules = %{version} Requires: module-init-tools >= 3.9 Requires: ldiskfsprogs >= 1.42.7.wc1 -Requires: lustre-osd-ldiskfs-mount +Requires: lustre-osd-ldiskfs-mount = %{version} Provides: lustre-osd Obsoletes: lustre-ldiskfs Group: Development/Kernel @@ -188,7 +191,7 @@ LDISKFS hooks for mount/mkfs into a dynamic library. %package osd-zfs Summary: osd-zfs is the mandatory glue for ZFS support in Lustre. Requires: lustre-modules = %{version}, zfs-kmod -Requires: lustre-osd-zfs-mount +Requires: lustre-osd-zfs-mount = %{version} Provides: lustre-osd Group: Development/Kernel @@ -337,6 +340,8 @@ fi %{?with_lustre_tests:--enable-tests}%{!?with_lustre_tests:--disable-tests} \ %{?with_lustre_utils:--enable-utils}%{!?with_lustre_utils:--disable-utils} \ %{?with_lustre_modules:--enable-modules}%{!?with_lustre_modules:--disable-modules} \ + %{!?with_shared:--disable-shared} \ + %{!?with_static:--disable-static} \ %{!?with_lustre_iokit:--disable-iokit} \ %{!?with_ldiskfs:--disable-ldiskfs} \ %{!?with_servers:--disable-server} \ @@ -384,8 +389,14 @@ chmod -R go-w lustre-source/lustre-%{version} find $RPM_BUILD_ROOT -name \*.so -type f -exec chmod +x {} \; %if %{with lnet_dlc} +rm -f $RPM_BUILD_ROOT%{_libdir}/liblnetconfig.la +%if %{with static} echo '%attr(-, root, root) %{_libdir}/liblnetconfig.a' >>lustre.files +%endif +%if %{with shared} echo '%attr(-, root, root) %{_libdir}/liblnetconfig.so' >>lustre.files +echo '%attr(-, root, root) %{_libdir}/liblnetconfig.so.*' >>lustre.files +%endif %endif %if %{with ldiskfs} @@ -480,6 +491,7 @@ find $RPM_BUILD_ROOT%{?rootdir}/lib/modules/%{kversion}/%{kmoddir} \ %{_datadir}/lustre %{_sysconfdir}/udev/rules.d/99-lustre.rules %config(noreplace) %{_sysconfdir}/ldev.conf +%config(noreplace) %{_sysconfdir}/modprobe.d/ko2iblnd.conf %if %{with lustre_modules} %files modules