summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6ddf75a)
raw | patch | inline | side by side (parent: 6ddf75a)
author | Junio C Hamano <gitster@pobox.com> | |
Sun, 31 Jan 2010 19:11:16 +0000 (11:11 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 31 Jan 2010 19:33:44 +0000 (11:33 -0800) |
According to
https://www.redhat.com/archives/fedora-devel-list/2010-January/msg00093.html
scope of %define lasts until the end brace; earlier RPM up to Fedora 12
didn't necessarily honor the scope, but later versions corrected the bug.
Problem and solution both pointed out by Todd Zullinger.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
https://www.redhat.com/archives/fedora-devel-list/2010-January/msg00093.html
scope of %define lasts until the end brace; earlier RPM up to Fedora 12
didn't necessarily honor the scope, but later versions corrected the bug.
Problem and solution both pointed out by Todd Zullinger.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git.spec.in | patch | blob | history |
diff --git a/git.spec.in b/git.spec.in
index 0a031088dab3164e8f7ed412e6ae2e8360eb2717..ee74a5eed7758f1267441d85619969a121fb3cec 100644 (file)
--- a/git.spec.in
+++ b/git.spec.in
Perl interface to Git
%define path_settings ETC_GITCONFIG=/etc/gitconfig prefix=%{_prefix} mandir=%{_mandir} htmldir=%{_docdir}/%{name}-%{version}
-%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%prep
%setup -q
# No files for you!
%changelog
+* Sun Jan 31 2010 Junio C Hamano <gitster@pobox.com>
+- Do not use %define inside %{!?...} construct.
+
* Sat Jan 30 2010 Junio C Hamano <gitster@pobox.com>
- We don't ship Python bits until a real foreign scm interface comes.