Build from clean tarball
This commit is contained in:
parent
3d629dcc55
commit
2c37ebaed4
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
|||||||
junit3.8.2.zip
|
junit3.8.2.zip
|
||||||
/junit-4.10.tar.xz
|
/junit-4.10.tar.xz
|
||||||
/r4.11.tar.gz
|
/r4.11.tar.gz
|
||||||
|
/junit-4.11-clean.tar.gz
|
||||||
|
22
clean-tarball.sh
Executable file
22
clean-tarball.sh
Executable file
@ -0,0 +1,22 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ $# -ne 1 ]; then
|
||||||
|
echo "Usage: ./clean-tarball VERSION"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
VERSION=${1}
|
||||||
|
NAME="junit"
|
||||||
|
|
||||||
|
wget https://github.com/${NAME}-team/${NAME}/archive/r${VERSION}.tar.gz
|
||||||
|
tar xvf r${VERSION}.tar.gz
|
||||||
|
|
||||||
|
(
|
||||||
|
cd ${NAME}-r${VERSION}
|
||||||
|
find . -name "*.jar" -delete
|
||||||
|
find . -name "*.class" -delete
|
||||||
|
)
|
||||||
|
|
||||||
|
tar czvf ${NAME}-${VERSION}-clean.tar.gz ${NAME}-r${VERSION}
|
||||||
|
rm -Rf ${NAME}-${VERSION}.tar.gz
|
||||||
|
|
@ -30,7 +30,7 @@
|
|||||||
|
|
||||||
Name: junit
|
Name: junit
|
||||||
Version: 4.11
|
Version: 4.11
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
Epoch: 0
|
Epoch: 0
|
||||||
Summary: Java regression test package
|
Summary: Java regression test package
|
||||||
License: CPL
|
License: CPL
|
||||||
@ -38,7 +38,8 @@ URL: http://www.junit.org/
|
|||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
Source0: https://github.com/%{name}-team/%{name}/archive/r%{version}.tar.gz
|
# ./clean-tarball.sh %{version}
|
||||||
|
Source0: %{name}-%{version}-clean.tar.gz
|
||||||
Source2: junit-OSGi-MANIFEST.MF
|
Source2: junit-OSGi-MANIFEST.MF
|
||||||
# Removing hamcrest source jar references (not available and/or necessary)
|
# Removing hamcrest source jar references (not available and/or necessary)
|
||||||
Patch0: %{name}-no-hamcrest-src.patch
|
Patch0: %{name}-no-hamcrest-src.patch
|
||||||
@ -95,7 +96,6 @@ Demonstrations and samples for %{name}.
|
|||||||
%setup -q -n %{name}-r%{version}
|
%setup -q -n %{name}-r%{version}
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
cp build/maven/junit-pom-template.xml pom.xml
|
cp build/maven/junit-pom-template.xml pom.xml
|
||||||
find -iname '*.class' -o -iname '*.jar' -delete
|
|
||||||
ln -s $(build-classpath hamcrest/core) lib/hamcrest-core-1.3.jar
|
ln -s $(build-classpath hamcrest/core) lib/hamcrest-core-1.3.jar
|
||||||
|
|
||||||
%build
|
%build
|
||||||
@ -149,6 +149,9 @@ cp -pr %{name}%{version}-SNAPSHOT/%{name}/* %{buildroot}%{_datadir}/%{name}/demo
|
|||||||
%doc junit%{version}-SNAPSHOT/doc/*
|
%doc junit%{version}-SNAPSHOT/doc/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jun 21 2013 Michal Srb <msrb@redhat.com> - 0:4.11-3
|
||||||
|
- Build from clean tarball
|
||||||
|
|
||||||
* Mon May 06 2013 Tomas Radej <tradej@redhat.com> - 0:4.11-2
|
* Mon May 06 2013 Tomas Radej <tradej@redhat.com> - 0:4.11-2
|
||||||
- Removed uneeded dependencies
|
- Removed uneeded dependencies
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user