summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Straz <nstraz@redhat.com>2009-04-20 12:48:06 -0400
committerNathan Straz <nstraz@redhat.com>2009-04-20 12:48:06 -0400
commit24ac57463bae0ed32033e20c7e47c2078f1a68c8 (patch)
tree7bd36e20e86aed6d49b51403ded87b288de87421
parenta37dda7297ac4d3c099d279551ae46cd1e8c5e27 (diff)
downloadgxpp-24ac57463bae0ed32033e20c7e47c2078f1a68c8.tar.gz
gxpp-24ac57463bae0ed32033e20c7e47c2078f1a68c8.tar.xz
gxpp-24ac57463bae0ed32033e20c7e47c2078f1a68c8.zip
Update spec to build from proper tarball
-rw-r--r--Makefile2
-rw-r--r--gxpp.spec6
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