X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre.spec.in;h=322c0fa881692b90a2661a0953b4b766583e63ad;hb=0d11a314787bc795797a016262e9bcfe86e2193e;hp=d3a5dd67b0847067f2527ff971d3c0764675d0b5;hpb=ab3185eb2b54ed2f616022956dca9bd5a849eb80;p=fs%2Flustre-release.git diff --git a/lustre.spec.in b/lustre.spec.in index d3a5dd6..322c0fa 100644 --- a/lustre.spec.in +++ b/lustre.spec.in @@ -9,12 +9,21 @@ %bcond_without lustre_iokit %bcond_without lustre_modules %bcond_with snmp -%bcond_without gss_keyring +%bcond_with gss +%bcond_with gss_keyring %bcond_without manpages %bcond_without shared %bcond_without static %bcond_with systemd +# By default both gss and gss keyring are disabled. +# gss keyring requires the gss core. If the builder +# request gss_keyring we must enable gss core even if +# the builder attempts to disable gss. +%if %{with gss_keyring} + %define with_gss +%endif + %if %{without servers} # --without servers overrides --with {ldiskfs|zfs} # so undefine the internal variables set by bcond_* @@ -81,12 +90,14 @@ %global modules_fs_path /lib/modules/%{kversion}/%{kmoddir} %if %{_vendor}=="redhat" || %{_vendor}=="fedora" + %global requires_yaml_name libyaml %global requires_kmod_name kmod-%{lustre_name} %if %{with lustre_tests} %global requires_kmod_tests_name kmod-%{lustre_name}-tests %endif %global requires_kmod_version %{version} %else #for Suse + %global requires_yaml_name libyaml-0-2 %global requires_kmod_name %{lustre_name}-kmp %if %{with lustre_tests} %global requires_kmod_tests_name %{lustre_name}-tests-kmp @@ -130,9 +141,10 @@ Source4: kmp-lustre-osd-ldiskfs.files Source5: kmp-lustre-osd-zfs.preamble Source6: kmp-lustre-osd-zfs.files Source7: kmp-lustre-tests.files -URL: https://wiki.hpdd.intel.com/ +URL: https://wiki.whamcloud.com/ BuildRoot: %{_tmppath}/lustre-%{version}-root -Requires: %{requires_kmod_name} = %{requires_kmod_version} libyaml zlib +Requires: %{requires_kmod_name} = %{requires_kmod_version} zlib +Requires: %{requires_yaml_name} BuildRequires: libtool libyaml-devel zlib-devel %if %{with servers} Requires: lustre-osd @@ -310,6 +322,7 @@ fi %{!?with_servers:--disable-server} \ %{!?with_zfs:--without-zfs} \ %{!?with_snmp:--disable-snmp} \ + %{!?with_gss:--disable-gss} \ %{!?with_gss_keyring:--disable-gss-keyring} \ %{!?with_manpages:--disable-manpages} \ %{!?with_systemd:--with-systemdsystemunitdir=no} \ @@ -371,6 +384,7 @@ echo '%{_sysconfdir}/sysconfig/lustre' >>lustre.files %if %{with gss_keyring} echo '%{_sysconfdir}/init.d/lsvcgss' >>lustre.files echo '%{_sysconfdir}/sysconfig/lsvcgss' >>lustre.files +echo '%config(noreplace) %{_sysconfdir}/request-key.d/lgssc.conf' >>lustre.files %endif %endif @@ -379,16 +393,6 @@ echo '%{_sysconfdir}/init.d/lnet' >>lustre.files %endif %endif -CONFIGURE_ARGS="%{?configure_args}" -if [ -z "$(echo $CONFIGURE_ARGS | grep "\-\-disable\-gss\-keyring")" ]; then - echo '%config(noreplace) %{_sysconfdir}/request-key.d/lgssc.conf' >>lustre.files -fi - -%if %{with servers} -mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/ocf/resource.d/lustre/ -install -m 0755 contrib/scripts/pacemaker/* $RPM_BUILD_ROOT%{_prefix}/lib/ocf/resource.d/lustre/ -%endif - # fc18 needs 'x' permission for library files find $RPM_BUILD_ROOT -name \*.so -type f -exec chmod +x {} \; @@ -472,6 +476,9 @@ echo '%{_sbindir}/wiretest' >>lustre-tests.files %{_includedir}/linux/lustre %endif %{_sysconfdir}/udev/rules.d/99-lustre.rules +%if %{with servers} +%{_sysconfdir}/udev/rules.d/99-lustre-server.rules +%endif %if %{with zfs} %config(noreplace) %{_sysconfdir}/ldev.conf %endif