]> git.pld-linux.org Git - packages/rpm-build-macros.git/commitdiff
rpm4 compat patch for _noautoreq_(perl|pear) on ac
authorElan Ruusamäe <glen@delfi.ee>
Fri, 24 May 2013 08:30:31 +0000 (11:30 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Fri, 24 May 2013 08:30:31 +0000 (11:30 +0300)
rpm-build-macros.spec
rpm4.patch [new file with mode: 0644]

index f6978df37033f7dabe0436324e4d2f6c2e5819a3..3aaec87dc39f941d64c66e3ce9f2d91cafb76a2b 100644 (file)
@@ -12,6 +12,7 @@ Source1:      service_generator.sh
 Source3:       find-lang.sh
 Source4:       dokuwiki-find-lang.sh
 Patch0:                disable-systemd.patch
+Patch1:                rpm4.patch
 #Patchx: %{name}-pydebuginfo.patch
 BuildRequires: rpm >= 4.4.9-56
 BuildRequires: sed >= 4.0
@@ -53,6 +54,7 @@ cp -p %{SOURCE1} .
 %if "%{pld_release}" == "ac"
 %{__sed} -i -e '/libtoolize --copy --force --install/s/ --install//' rpm.macros
 %patch0 -p1
+%patch1 -p1
 %endif
 
 %build
diff --git a/rpm4.patch b/rpm4.patch
new file mode 100644 (file)
index 0000000..6959af5
--- /dev/null
@@ -0,0 +1,11 @@
+--- ./rpm.macros       2013-05-24 11:28:51.286668104 +0300
++++ ./rpm.macros       2013-05-24 11:27:45.091068572 +0300
+@@ -868,7 +857,7 @@
+ # BuildRequires:      rpmbuild(macros) >= 1.654
+ # %define _noautoreq_pear Excluded.php PEAR/Something.php
+ # %define _noautoreq_perl Apache::.*
+-%__noauto_regexp_helper(p:) %(echo "%*" | awk 'BEGIN{RS=" "}{printf("%{-p*}\\\\\\(%%s\\\\\\) ", $1)}')
++%__noauto_regexp_helper(p:) %(echo "%*" | awk 'BEGIN{RS=" "}{printf("%{-p*}\\\\(%%s\\\\) ", $1)}')
+ #%_noautocompressdoc  %{nil}
+ #
This page took 0.046692 seconds and 4 git commands to generate.