]> git.pld-linux.org Git - packages/deltarpm.git/blobdiff - deltarpm.spec
- release 6 (by relup.sh)
[packages/deltarpm.git] / deltarpm.spec
index 09b24279b7fb2a0d0c3813e565eb533d9bbcf251..3d214c9aa0bf065cbc0b6372b33e694b38a1ef4a 100644 (file)
@@ -1,12 +1,13 @@
 #
 # Conditional build:
 %bcond_without python3 # CPython3 module
+%bcond_with    rpm5    # build with rpm5
 #
 Summary:       Create deltas between rpms
 Summary(pl.UTF-8):     Generowanie różnic między pakietami rpm
 Name:          deltarpm
 Version:       3.6.1
-Release:       3
+Release:       6
 License:       BSD
 Group:         Base
 #Source0Download: https://github.com/rpm-software-management/deltarpm/releases
@@ -96,7 +97,7 @@ Ten pakiet zawiera wiązania Pythona 3 do deltarpm.
 %setup -q
 %patch0 -p1
 %patch1 -p1
-%patch2 -p1
+%{?with_rpm5:%patch2 -p1}
 %patch3 -p1
 
 %if %{without python3}
@@ -106,7 +107,7 @@ Ten pakiet zawiera wiązania Pythona 3 do deltarpm.
 %build
 %{__make} \
        CC="%{__cc}" \
-       CFLAGS="%{rpmcflags} -I/usr/include/rpm" \
+       CFLAGS="%{rpmcflags} -I/usr/include/rpm -D_GNU_SOURCE" \
        bindir=%{_bindir} \
        libdir=%{_libdir} \
        mandir=%{_mandir} \
This page took 0.037552 seconds and 4 git commands to generate.