[takari-archiver] Remove bundled JARs
Mikolaj Izdebski
mizdebsk at fedoraproject.org
Thu Mar 12 13:15:26 UTC 2015
commit 68e3daee0048436596f09c1b635e199d42e772f4
Author: Mikolaj Izdebski <mizdebsk at redhat.com>
Date: Thu Mar 12 11:34:22 2015 +0100
Remove bundled JARs
create-tarball.sh | 15 +++++++++++++++
takari-archiver.spec | 14 ++++++++------
2 files changed, 23 insertions(+), 6 deletions(-)
---
diff --git a/create-tarball.sh b/create-tarball.sh
new file mode 100755
index 0000000..42670ec
--- /dev/null
+++ b/create-tarball.sh
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+VERSION=`grep Version: *spec | sed -e 's/Version:\s*\(.*\)/\1/'`
+echo $VERSION
+
+NAME="takari-archiver"
+
+rm -rf ${NAME}-${VERSION}.tar.gz ${NAME}-${NAME}-${VERSION} ${NAME}-${VERSION}
+wget https://github.com/takari/${NAME}/archive/${NAME}-${VERSION}.tar.gz
+tar xf ${NAME}-${VERSION}.tar.gz
+rm -f ${NAME}-${VERSION}.tar.gz
+mv ${NAME}-${NAME}-${VERSION} ${NAME}-${VERSION}
+rm -rf ${NAME}-${VERSION}/src/test/
+wget -O ${NAME}-${VERSION}/epl-v10.html http://www.eclipse.org/legal/epl-v10.html
+tar caf ${NAME}-${VERSION}-clean.tar.xz ${NAME}-${VERSION}
diff --git a/takari-archiver.spec b/takari-archiver.spec
index 4687d6b..37dd0e6 100644
--- a/takari-archiver.spec
+++ b/takari-archiver.spec
@@ -2,14 +2,15 @@
Name: takari-archiver
Version: 0.1.8
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Takari Archiver
License: EPL
URL: http://takari.io
BuildArch: noarch
-Source0: https://github.com/takari/%{name}/archive/%{name}-%{version}.tar.gz
-Source1: http://www.eclipse.org/legal/epl-v10.html
+# Clean tarball generated by running ./create-tarball.sh
+Source0: %{name}-%{version}-clean.tar.xz
+Source1: create-tarball.sh
BuildRequires: maven-local
BuildRequires: mvn(com.google.guava:guava)
@@ -35,9 +36,7 @@ This package provides %{summary}.
%prep
-%setup -q -n %{name}-%{name}-%{version}
-
-cp -a %{SOURCE1} .
+%setup -q
%if %{with bootstrap}
%pom_remove_parent
@@ -65,5 +64,8 @@ cp -a %{SOURCE1} .
%changelog
+* Thu Mar 12 2015 Mikolaj Izdebski <mizdebsk at redhat.com> - 0.1.8-2
+- Remove bundled JARs
+
* Fri Mar 06 2015 Michael Simacek <msimacek at redhat.com> - 0.1.8-1
- Initial packaging
More information about the scm-commits
mailing list