Commit f6a741f4 authored by Jonathan Perkin's avatar Jonathan Perkin

fix fileexists()

parent 4127d1a5
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
%define undefined() %{expand:%%{?%{1}:0}%%{!?%{1}:1}} %define undefined() %{expand:%%{?%{1}:0}%%{!?%{1}:1}}
%endif %endif
%define fileexists() %([-f "%{1}"] && echo 1 || echo 0) %define fileexists() %([ -e "%{1}" ] && echo 1 || echo 0)
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
# RPM build tools now automatically detect Perl module dependencies. This # RPM build tools now automatically detect Perl module dependencies. This
...@@ -671,7 +671,7 @@ fi ...@@ -671,7 +671,7 @@ fi
%doc %attr(644, root, root) %{_infodir}/mysql.info* %doc %attr(644, root, root) %{_infodir}/mysql.info*
%if %fileexists(%{_mandir}/man1/innochecksum.1*) %if %{fileexists %{_mandir}/man1/innochecksum.1*}
%doc %attr(644, root, man) %{_mandir}/man1/innochecksum.1* %doc %attr(644, root, man) %{_mandir}/man1/innochecksum.1*
%endif %endif
%doc %attr(644, root, man) %{_mandir}/man1/my_print_defaults.1* %doc %attr(644, root, man) %{_mandir}/man1/my_print_defaults.1*
...@@ -703,7 +703,7 @@ fi ...@@ -703,7 +703,7 @@ fi
%ghost %config(noreplace,missingok) %{_sysconfdir}/my.cnf %ghost %config(noreplace,missingok) %{_sysconfdir}/my.cnf
%if %fileexists(%{_bindir}/innochecksum) %if %{fileexists %{_bindir}/innochecksum}
%attr(755, root, root) %{_bindir}/innochecksum %attr(755, root, root) %{_bindir}/innochecksum
%endif %endif
%attr(755, root, root) %{_bindir}/my_print_defaults %attr(755, root, root) %{_bindir}/my_print_defaults
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment