]> git.pld-linux.org Git - packages/rpm-build-macros.git/blobdiff - rpm-build-macros.spec
- explictly close files opened in lua because implict closing happens too late this...
[packages/rpm-build-macros.git] / rpm-build-macros.spec
index 881a64587ddf251a3584a59cf43167a053c4a5ad..5faf7228f169b94d5f2cc21642dd1552187f5b1c 100644 (file)
@@ -1,4 +1,11 @@
-%define                rpm_macros_rev  1.659
+#
+# Conditional build:
+%bcond_with    rpm4    # prepare macros for PLD rpm 4.5 instead of rpm5
+#
+%if "%{pld_release}" == "ac"
+%define        with_rpm4       1
+%endif
+%define                rpm_macros_rev  1.667
 %define                find_lang_rev   1.36
 Summary:       PLD Linux RPM build macros
 Summary(pl.UTF-8):     Makra do budowania pakietów RPM dla Linuksa PLD
@@ -12,6 +19,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
@@ -54,6 +62,7 @@ cp -p %{SOURCE1} .
 %{__sed} -i -e '/libtoolize --copy --force --install/s/ --install//' rpm.macros
 %patch0 -p1
 %endif
+%{?with_rpm4:%patch1 -p1}
 
 %build
 %{__sed} -i -e 's,{Revision},%{rpm_macros_rev},' rpm.macros
This page took 0.028837 seconds and 4 git commands to generate.