From 24ac57463bae0ed32033e20c7e47c2078f1a68c8 Mon Sep 17 00:00:00 2001 From: Nathan Straz Date: Mon, 20 Apr 2009 12:48:06 -0400 Subject: Update spec to build from proper tarball --- Makefile | 2 +- gxpp.spec | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 9c9bd14..901d795 100644 --- a/Makefile +++ b/Makefile @@ -33,7 +33,7 @@ tarball := gxpp-$(VERSION).tar.bz2 $(tarball): $(tarfiles) -$(RM) $@ - tar cjf $@ $^ + git archive --format=tar --prefix=gxpp-$(VERSION)/ HEAD^{tree} | bzip2 -9 > $@ tarball: $(tarball) diff --git a/gxpp.spec b/gxpp.spec index 70ca078..3bda1f5 100644 --- a/gxpp.spec +++ b/gxpp.spec @@ -1,11 +1,11 @@ Name: gxpp Version: 1.0 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Simple XPath command line tools Group: QA License: GPL -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Buildroot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) Source0: gxpp-%{version}.tar.bz2 BuildRequires: libxml2-devel @@ -15,7 +15,7 @@ This is a set of simple but powerful tools to query and manipulate XML files using XPath expressions. %prep -%setup -q -c +%setup -q %build -- cgit