NAME=hwdata
VERSION=$(shell awk '/Version:/ { print $$2 }' hwdata.spec)
-RELEASE=$(shell rpm -q --define 'dist %{nil}' --specfile --qf "%{release}" hwdata.spec)
+RELEASE=$(shell rpm -q --define 'dist %{nil}' --specfile --qf "%{release}\n" hwdata.spec | head -n 1)
ifeq ($(shell git rev-parse --abbrev-ref HEAD | sed -n 's/^\([^0-9-]\+\).*/\L\1/p'), rhel)
# add revision to tag name for rhel branches
TAGNAME := $(NAME)-$(VERSION)-$(RELEASE)
--- /dev/null
+Index: hwdata/blacklist.conf
+===================================================================
+--- hwdata.orig/blacklist.conf
++++ hwdata/blacklist.conf
+@@ -43,3 +43,4 @@ blacklist chsc_sch
+
+ # crypto algorithms
+ blacklist sha1-mb
++blacklist nx_crypto
-%global uprelease 7.6
+%global uprelease 7.7
Name: hwdata
Summary: Hardware identification and configuration data
Group: System Environment/Base
Source0: https://fedorahosted.org/releases/h/w/%{name}/%{name}-%{version}-%{uprelease}.tar.bz2
URL: http://git.fedorahosted.org/git/hwdata.git
-BuildArch: noarch
BuildRequires : perl
%prep
%setup -q -n %{name}-%{version}-%{uprelease}
+%ifarch ppc ppc64
+patch -b -B nx_crypto -p1 < blacklist-nx_crypto.patch
+%endif
%configure
%build
%{_datadir}/%{name}/*
%changelog
+* Tue Apr 14 2015 Michal Minar <miminar@redhat.com> 0.252-7.7
+- Blacklisted module nx_crypto on PowerPCs.
+- Resolves: rhbz#1211389
+
* Fri Apr 10 2015 Michal Minar <miminar@redhat.com> 0.252-7.6
- Blacklisted experimental module sha1-mb.
- Resolves: rhbz#1208120