File requires-ge-macro.diff of Package rpm
xxxxxxxxxx
1
--- ./macros.in.orig 2011-05-11 15:36:05.000000000 +0000
2
+++ ./macros.in 2011-05-11 15:38:44.000000000 +0000
3
4
# %{perl_sitearch}/Image
5
# %dir %{perl_sitearch}/auto/Image
6
#
7
-%requires_eq() %(LC_ALL="C" echo '%*' | xargs -r rpm -q --qf 'Requires: %%{name} = %%{epoch}:%%{version}\\n' | sed -e 's/ (none):/ /' -e 's/ 0:/ /' | grep -v "is not")
8
+%requires_eq() %(echo '%*' | LC_ALL=C xargs -r rpm -q --qf 'Requires: %%{name} = %%{epoch}:%%{version}\\n' | sed -e 's/ (none):/ /' -e 's/ 0:/ /' | grep -v "is not")
9
+%requires_ge() %(echo '%*' | LC_ALL=C xargs -r rpm -q --qf 'Requires: %%{name} >= %%{epoch}:%%{version}\\n' | sed -e 's/ (none):/ /' -e 's/ 0:/ /' | grep -v "is not")
10
%perl_sitearch %(eval "`%{__perl} -V:installsitearch`"; echo $installsitearch)
11
%perl_sitelib %(eval "`%{__perl} -V:installsitelib`"; echo $installsitelib)
12
%perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch)
13