]> git.pld-linux.org Git - packages/dmidecode.git/blobdiff - dmidecode.spec
- remove workaround for BSD make from Makefile
[packages/dmidecode.git] / dmidecode.spec
index c57f6c8a621efcea3a402a6ce945ecb095df76ae..162fad882428fd8d7bea0f8140e54f02bcd41827 100644 (file)
@@ -8,6 +8,7 @@ Group:          Applications/System
 Source0:       http://savannah.nongnu.org/download/dmidecode/%{name}-%{version}.tar.bz2
 # Source0-md5: 3c9c4d55a40b78600f3b43bfa64616f9
 URL:           http://www.nongnu.org/dmidecode/
+BuildRequires: sed >= 4.0
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -25,10 +26,14 @@ użyteczne kawałki informacji takie jak numery seryjne i rewizja BIOSu.
 %prep
 %setup -q
 
+# GNU make no longer ignores != assignment
+sed '/PROGRAMS !=/d' -i Makefile
+
 %build
 %{__make} \
        CC="%{__cc}" \
-       CFLAGS="%{rpmcflags} -Wall -W -pedantic"
+       CFLAGS="%{rpmcppflags} %{rpmcflags} -Wall -W -pedantic" \
+       LDFLAGS="%{rpmcflags} %{rpmldflags}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
This page took 0.072766 seconds and 4 git commands to generate.