From 85ec982e35ed1d70bf44cf94de382dd68197f8d5 Mon Sep 17 00:00:00 2001 From: Karsten Hopp Date: Fri, 28 Jan 2011 17:59:57 +0100 Subject: [PATCH] let rpm figure out the release --- Makefile | 2 +- hwdata.spec | 13 ++----------- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/Makefile b/Makefile index 0374c55..16e6b9f 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ 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 diff --git a/hwdata.spec b/hwdata.spec index e7b7aba..81926bc 100644 --- a/hwdata.spec +++ b/hwdata.spec @@ -1,7 +1,7 @@ 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 @@ -37,19 +37,10 @@ rm -rf $RPM_BUILD_ROOT %{_datadir}/%{name}/* %changelog -* Fri Jan 28 2011 Karsten Hopp 0.233-6 +* Fri Jan 28 2011 Karsten Hopp 0.233-7 - bump release - -* Fri Jan 28 2011 Karsten Hopp 0.233-5 - update oui.txt URL - -* Fri Jan 28 2011 Karsten Hopp 0.233-4 - fix tarball name in spec file - -* Fri Jan 28 2011 Karsten Hopp 0.233-3 -- bump release - -* Fri Jan 28 2011 Karsten Hopp 0.233-2 - update usb.ids, out.txt and pci.ids * Wed Aug 25 2010 Karsten Hopp 0.233-1 -- 2.25.1