Create .xz instead of .gz for source releases

This commit is contained in:
David Sansome 2015-12-13 15:52:30 +11:00
parent d50cfd5293
commit 978d849164
4 changed files with 10 additions and 9 deletions

View File

@ -6,7 +6,7 @@ set(RPM_ARCH x86_64 CACHE STRING "Architecture of the rpm file")
add_custom_target(rpm
COMMAND ${CMAKE_SOURCE_DIR}/dist/maketarball.sh
COMMAND ${CMAKE_COMMAND} -E copy clementine-${CLEMENTINE_VERSION_SPARKLE}.tar.gz ${RPMBUILD_DIR}/SOURCES/
COMMAND ${CMAKE_COMMAND} -E copy clementine-${CLEMENTINE_VERSION_SPARKLE}.tar.xz ${RPMBUILD_DIR}/SOURCES/
COMMAND rpmbuild -bs ${CMAKE_SOURCE_DIR}/dist/clementine.spec
COMMAND ${MOCK_COMMAND}
--verbose

View File

@ -6,7 +6,7 @@ Summary: A music player and library organiser
Group: Applications/Multimedia
License: GPLv3
URL: http://www.clementine-player.org/
Source0: %{name}-@CLEMENTINE_VERSION_SPARKLE@.tar.gz
Source0: %{name}-@CLEMENTINE_VERSION_SPARKLE@.tar.xz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: desktop-file-utils liblastfm-devel taglib-devel gettext

View File

@ -7,16 +7,17 @@ root=$(cd "${0%/*}/.." && echo $PWD/${0##*/})
root=`dirname "$root"`
rootnoslash=`echo $root | sed "s/^\///"`
echo "Creating $name-$version.tar.gz..."
echo "Creating $name-$version.tar.xz..."
tar -czf $name-$version.tar.gz "$root" \
tar -cJf $name-$version.tar.xz "$root" \
--transform "s,^$rootnoslash,$name-$version," \
--exclude-vcs \
--exclude "$root/bin/*" \
--exclude "$root/debian" \
--exclude "$root/dist/*.tar.gz" \
--exclude "$root/dist/*.tar.xz" \
--exclude "$root/CMakeLists.txt.user"
echo "Also creating ${name}_${version}~${deb_dist}.orig.tar.gz..."
cp "$name-$version.tar.gz" "${name}_${version}~${deb_dist}.orig.tar.gz"
echo "Also creating ${name}_${version}~${deb_dist}.orig.tar.xz..."
cp "$name-$version.tar.xz" "${name}_${version}~${deb_dist}.orig.tar.xz"

6
dist/uploadtoppa.sh vendored
View File

@ -16,7 +16,7 @@ BASE=`pwd`
DIRECTORY=clementine
# Cleanup any old stuff
rm -rfv $BASE/$DIRECTORY $BASE/*.diff.gz $BASE/*.tar.gz $BASE/*.dsc $BASE/*_source.changes
rm -rfv $BASE/$DIRECTORY $BASE/*.diff.*z $BASE/*.tar.*z $BASE/*.dsc $BASE/*_source.changes
# Checkout
git clone $REPO $DIRECTORY
@ -32,8 +32,8 @@ rm -rfv $BASE/$DIRECTORY/bin/*
# Create the tarball
cd $BASE/$DIRECTORY/dist
./maketarball.sh
mv -v $BASE/$DIRECTORY/dist/*.orig.tar.gz $BASE/
rm -v $BASE/$DIRECTORY/dist/*.tar.gz
mv -v $BASE/$DIRECTORY/dist/*.orig.tar.xz $BASE/
rm -v $BASE/$DIRECTORY/dist/*.tar.*z
rm -vrf $BASE/$DIRECTORY/.git
# Build the deb