Ensure to cover the Fedora version too.

OBS-URL: https://build.opensuse.org/package/show/network:samba:STABLE/cifs-utils?expand=0&rev=76
This commit is contained in:
Lars Müller 2013-01-16 16:56:32 +00:00 committed by Git OBS Bridge
parent 1914bacce7
commit 5d7167f379

View File

@ -94,7 +94,7 @@ mkdir -p \
${RPM_BUILD_ROOT}/%{_sysconfdir}/init.d ${RPM_BUILD_ROOT}/%{_sysconfdir}/init.d
%{__make} install \ %{__make} install \
DESTDIR=${RPM_BUILD_ROOT} DESTDIR=${RPM_BUILD_ROOT}
%if 0%{?centos_version} > 599 || 0%{?mandriva_version} > 201100 || 0%{?rhel_version} > 599 || 0%{?suse_version} > 1020 %if 0%{?centos_version} > 599 || 0%{?fedora_version} > 14 || 0%{?mandriva_version} > 201100 || 0%{?rhel_version} > 599 || 0%{?suse_version} > 1020
mkdir -p %{buildroot}%{_sysconfdir}/%{name} mkdir -p %{buildroot}%{_sysconfdir}/%{name}
ln -s %{_libdir}/%{name}/idmapwb.so %{buildroot}%{_sysconfdir}/%{name}/idmap-plugin ln -s %{_libdir}/%{name}/idmapwb.so %{buildroot}%{_sysconfdir}/%{name}/idmap-plugin
%endif %endif
@ -141,7 +141,7 @@ exit 0
%files %files
%defattr(-,root,root) %defattr(-,root,root)
/sbin/mount.cifs /sbin/mount.cifs
%if 0%{?centos_version} > 599 || 0%{?mandriva_version} > 201100 || 0%{?rhel_version} > 599 || 0%{?suse_version} > 1020 %if 0%{?centos_version} > 599 || 0%{?fedora_version} > 14 || 0%{?mandriva_version} > 201100 || 0%{?rhel_version} > 599 || 0%{?suse_version} > 1020
%{_bindir}/getcifsacl %{_bindir}/getcifsacl
%{_bindir}/setcifsacl %{_bindir}/setcifsacl
%{_sbindir}/cifs.idmap %{_sbindir}/cifs.idmap
@ -149,7 +149,7 @@ exit 0
%doc %{_mandir}/man1/setcifsacl.1.* %doc %{_mandir}/man1/setcifsacl.1.*
%doc %{_mandir}/man8/cifs.idmap.8.* %doc %{_mandir}/man8/cifs.idmap.8.*
%endif %endif
%if 0%{?centos_version} > 499 || 0%{?mandriva_version} > 201100 || 0%{?rhel_version} > 499 || 0%{?suse_version} > 1020 %if 0%{?centos_version} > 499 || 0%{?fedora_version} > 14 || 0%{?mandriva_version} > 201100 || 0%{?rhel_version} > 499 || 0%{?suse_version} > 1020
%{_bindir}/cifscreds %{_bindir}/cifscreds
%{_sbindir}/cifs.upcall %{_sbindir}/cifs.upcall
%doc %{_mandir}/man1/cifscreds.1.* %doc %{_mandir}/man1/cifscreds.1.*
@ -165,7 +165,7 @@ exit 0
%endif %endif
%config(noreplace) %{_sysconfdir}/request-key.d/cifs.idmap.conf %config(noreplace) %{_sysconfdir}/request-key.d/cifs.idmap.conf
%config(noreplace) %{_sysconfdir}/request-key.d/cifs.spnego.conf %config(noreplace) %{_sysconfdir}/request-key.d/cifs.spnego.conf
%if 0%{?centos_version} > 599 || 0%{?mandriva_version} > 201100 || 0%{?rhel_version} > 599 || 0%{?suse_version} > 1020 %if 0%{?centos_version} > 599 || 0%{?fedora_version} > 14 || 0%{?mandriva_version} > 201100 || 0%{?rhel_version} > 599 || 0%{?suse_version} > 1020
%dir %{_libdir}/cifs-utils %dir %{_libdir}/cifs-utils
%dir %{_sysconfdir}/cifs-utils %dir %{_sysconfdir}/cifs-utils
%config(noreplace) %{_sysconfdir}/cifs-utils/idmap-plugin %config(noreplace) %{_sysconfdir}/cifs-utils/idmap-plugin