Repackage tarball
This commit is contained in:
parent
30fccb6be2
commit
239c1f3bc2
14
create-tarball.sh
Executable file
14
create-tarball.sh
Executable file
@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -e -x
|
||||||
|
test $# -eq 1
|
||||||
|
test ! -d sisu-guice
|
||||||
|
git clone git://github.com/sonatype/sisu-guice.git
|
||||||
|
cd ./sisu-guice
|
||||||
|
git checkout sisu-guice-${1}
|
||||||
|
git branch unbundled-guice-${1}
|
||||||
|
git checkout unbundled-guice-${1}
|
||||||
|
rm -rf $(ls . | grep -E -v 'core|extensions|pom|COPYING')
|
||||||
|
git commit -a -m "Remove unneeded stuff"
|
||||||
|
git tag unbundled-${1}
|
||||||
|
git archive --format=tar --prefix=google-guice-${1}/ unbundled-${1} \
|
||||||
|
| xz >../google-guice-${1}.tar.xz
|
@ -3,16 +3,16 @@
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%global short_name guice
|
%global short_name guice
|
||||||
%global tag bd0d620
|
|
||||||
|
|
||||||
Name: google-%{short_name}
|
Name: google-%{short_name}
|
||||||
Version: 3.1.2
|
Version: 3.1.2
|
||||||
Release: 6%{?dist}
|
Release: 7%{?dist}
|
||||||
Summary: Lightweight dependency injection framework for Java 5 and above
|
Summary: Lightweight dependency injection framework for Java 5 and above
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
URL: https://github.com/sonatype/sisu-%{short_name}
|
URL: https://github.com/sonatype/sisu-%{short_name}
|
||||||
Source: https://github.com/sonatype/sisu-%{short_name}/tarball/sisu-%{short_name}-%{version}#/%{name}-%{version}.tar.gz
|
# ./create-tarball.sh %{version}
|
||||||
|
Source: %{name}-%{version}.tar.xz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
BuildRequires: java-devel
|
BuildRequires: java-devel
|
||||||
@ -202,8 +202,7 @@ This package provides %{summary}.
|
|||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n sonatype-sisu-%{short_name}-%{tag}
|
%setup -q
|
||||||
find -name '*.jar' -delete
|
|
||||||
|
|
||||||
# We don't have struts2 in Fedora yet.
|
# We don't have struts2 in Fedora yet.
|
||||||
%pom_disable_module struts2 extensions
|
%pom_disable_module struts2 extensions
|
||||||
@ -309,6 +308,9 @@ install -p -m 644 extensions/throwingproviders/pom.xml %{buildroot}%{_mavenpomdi
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Nov 16 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.1.2-7
|
||||||
|
- Repackage tarball
|
||||||
|
|
||||||
* Fri Nov 9 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.1.2-6
|
* Fri Nov 9 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.1.2-6
|
||||||
- Don't try to build extension modules unless they are needed
|
- Don't try to build extension modules unless they are needed
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user