Skip to content

Commit

Permalink
Merge pull request #198 from jnpkrn/build-prefer-xz
Browse files Browse the repository at this point in the history
Build: prefer XZ tarball format
  • Loading branch information
chrissie-c committed Mar 10, 2016
2 parents 41a83d1 + df5e8d6 commit bf83b96
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
14 changes: 5 additions & 9 deletions Makefile.am
Expand Up @@ -21,8 +21,6 @@

SPEC = $(PACKAGE_NAME).spec

TARFILE = $(PACKAGE_NAME)-$(VERSION).tar.gz

EXTRA_DIST = autogen.sh $(SPEC).in \
build-aux/git-version-gen \
build-aux/gitlog-to-changelog \
Expand Down Expand Up @@ -54,7 +52,7 @@ maintainer-clean-local:
$(AM_V_GEN)rm -f .version .tarball-version

clean-generic:
$(AM_V_GEN)rm -rf $(SPEC) $(TARFILE)
$(AM_V_GEN)rm -rf $(SPEC) $(DIST_ARCHIVES)

## make rpm/srpm section.

Expand Down Expand Up @@ -98,25 +96,23 @@ $(SPEC): $(SPEC).in
$(AM_V_GEN)chmod a-w $@-t
$(AM_V_GEN)mv $@-t $@

$(TARFILE):
$(MAKE) dist

RPMBUILDOPTS = --define "_sourcedir $(abs_builddir)" \
--define "_specdir $(abs_builddir)" \
--define "_builddir $(abs_builddir)" \
--define "_srcrpmdir $(abs_builddir)" \
--define "_rpmdir $(abs_builddir)"

tarball: $(TARFILE)
# generates both .tar.[gx]z (backward compatibility)
tarball: dist

srpm: clean
autoreconf -if
$(MAKE) $(SPEC) tarball
$(MAKE) $(SPEC) dist-xz
rpmbuild $(RPMBUILDOPTS) --nodeps -bs $(SPEC)

rpm: clean
autoreconf -if
$(MAKE) $(SPEC) tarball
$(MAKE) $(SPEC) dist-xz
rpmbuild $(RPMBUILDOPTS) -ba $(SPEC)

# release/versioning
Expand Down
2 changes: 1 addition & 1 deletion libqb.spec.in
Expand Up @@ -12,7 +12,7 @@ Summary: An IPC library for high performance servers
Group: System Environment/Libraries
License: LGPLv2+
URL: https://github.com/ClusterLabs/libqb
Source0: https://fedorahosted.org/releases/q/u/quarterback/%{name}-%{version}%{?numcomm:.%{numcomm}}%{?alphatag:-%{alphatag}}%{?dirty:-%{dirty}}.tar.gz
Source0: https://fedorahosted.org/releases/q/u/quarterback/%{name}-%{version}%{?numcomm:.%{numcomm}}%{?alphatag:-%{alphatag}}%{?dirty:-%{dirty}}.tar.xz

BuildRequires: autoconf automake libtool doxygen procps check-devel

Expand Down

0 comments on commit bf83b96

Please sign in to comment.