NAME=$(shell awk '/Name:/ { print $$2 }' hwdata.spec)
VERSION=$(shell awk '/Version:/ { print $$2 }' hwdata.spec)
-RELEASE=$(shell awk '/Release:/ { a=$$2; sub("%.*","",a); print a }' hwdata.spec)
+RELEASE=$(shell rpm -q --specfile --qf "%{release}" hwdata.spec)
SOURCEDIR := $(shell pwd)
prefix=$(DESTDIR)/usr
Name: hwdata
Summary: Hardware identification and configuration data
Version: 0.233
-Release: 6%{?dist}
+Release: 7%{?dist}
License: GPLv2+
Group: System Environment/Base
Source: hwdata-%{version}-%{release}.tar.bz2
%{_datadir}/%{name}/*
%changelog
-* Fri Jan 28 2011 Karsten Hopp <karsten@redhat.com> 0.233-6
+* Fri Jan 28 2011 Karsten Hopp <karsten@redhat.com> 0.233-7
- bump release
-
-* Fri Jan 28 2011 Karsten Hopp <karsten@redhat.com> 0.233-5
- update oui.txt URL
-
-* Fri Jan 28 2011 Karsten Hopp <karsten@redhat.com> 0.233-4
- fix tarball name in spec file
-
-* Fri Jan 28 2011 Karsten Hopp <karsten@redhat.com> 0.233-3
-- bump release
-
-* Fri Jan 28 2011 Karsten Hopp <karsten@redhat.com> 0.233-2
- update usb.ids, out.txt and pci.ids
* Wed Aug 25 2010 Karsten Hopp <karsten@redhat.com> 0.233-1