ff5d907
%bcond_with    groovy
d672474
%bcond_without snakeyaml
95bdc13
07eedeb
Name:           testng
4cf4fc7
Version:        6.14.3
0b10f90
Release:        11%{?dist}
07eedeb
Summary:        Java-based testing framework
1bc5a1e
License:        ASL 2.0
07eedeb
URL:            http://testng.org/
bf1d3be
# ./generate-tarball.sh
bf1d3be
Source0:        %{name}-%{version}.tar.gz
a1ada49
a1ada49
# Allows building with maven instead of gradle
a1ada49
Source1:        pom.xml
a1ada49
bf1d3be
# Remove bundled binaries to make sure we don't ship anything forbidden
bf1d3be
Source2:        generate-tarball.sh
bf1d3be
2f8a7de
Patch0:         0001-Avoid-accidental-javascript-in-javadoc.patch
bf1d3be
Patch1:         0002-Replace-bundled-jquery-with-CDN-link.patch
Jaromir Capik a1ad305
07eedeb
BuildArch:      noarch
Jaromir Capik a1ad305
93bf19d
BuildRequires:  maven-local
93bf19d
BuildRequires:  mvn(com.beust:jcommander)
a1ada49
BuildRequires:  mvn(com.google.inject:guice)
2fd71df
BuildRequires:  mvn(com.google.code.findbugs:jsr305)
93bf19d
BuildRequires:  mvn(junit:junit)
93bf19d
BuildRequires:  mvn(org.apache.ant:ant)
a1ada49
BuildRequires:  mvn(org.apache-extras.beanshell:bsh)
93bf19d
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
95bdc13
%if %{with groovy}
2fd71df
BuildRequires:  mvn(org.assertj:assertj-core) >= 3.8.0
95bdc13
BuildRequires:  mvn(org.codehaus.gmavenplus:gmavenplus-plugin)
95bdc13
BuildRequires:  mvn(org.codehaus.groovy:groovy-all)
95bdc13
BuildRequires:  mvn(org.spockframework:spock-core)
95bdc13
%endif
d672474
%if %{with snakeyaml}
d672474
BuildRequires:  mvn(org.yaml:snakeyaml)
d672474
%endif
5f0a9bc
5f0a9bc
%description
5f0a9bc
TestNG is a testing framework inspired from JUnit and NUnit but introducing
5f0a9bc
some new functionality, including flexible test configuration, and
5f0a9bc
distributed test running.  It is designed to cover unit tests as well as
5f0a9bc
functional, end-to-end, integration, etc.
5f0a9bc
5f0a9bc
%package javadoc
07eedeb
Summary:        API documentation for %{name}
5f0a9bc
5f0a9bc
%description javadoc
Jaromir Capik a1ad305
This package contains the API documentation for %{name}.
5f0a9bc
5f0a9bc
%prep
bf1d3be
%setup -q
5f0a9bc
2f8a7de
%patch0 -p1
bf1d3be
%patch1 -p1
2f8a7de
a1ada49
cp %{SOURCE1} .
a1ada49
e0085f7
# remove any bundled libs, but not test resources
e0085f7
find ! -path "*/test/*" -name *.jar -print -delete
93bf19d
find -name *.class -delete
5f0a9bc
93bf19d
# these are unnecessary
2f0452e
%pom_remove_plugin :maven-gpg-plugin
2f0452e
%pom_remove_plugin :maven-source-plugin
93bf19d
%pom_remove_plugin :maven-javadoc-plugin
5f0a9bc
d672474
%if %{without snakeyaml}
d672474
%pom_remove_dep org.yaml:snakeyaml
d672474
rm src/main/java/org/testng/internal/Yaml*.java
d672474
rm src/main/java/org/testng/Converter.java
d672474
%endif
d672474
a9f892b
# missing test deps
95bdc13
%if %{with groovy}
a9f892b
%pom_add_plugin "org.codehaus.gmavenplus:gmavenplus-plugin" pom.xml \
a9f892b
  "<executions><execution><goals><goal>addTestSources</goal><goal>testGenerateStubs</goal><goal>testCompile</goal><goal>removeTestStubs</goal></goals></execution></executions>"
a1ada49
%pom_add_dep "org.assertj:assertj-core::test"
a9f892b
%pom_add_dep "org.spockframework:spock-core::test"
a9f892b
%pom_add_dep "org.codehaus.groovy:groovy-all::test"
a9f892b
b9067e2
# java.lang.NoClassDefFoundError: net/sf/cglib/proxy/CallbackFilter when executing tests
b9067e2
%pom_add_dep "net.sf.cglib:cglib::test"
a1ada49
%endif
a9f892b
a1ada49
sed -i -e 's/DEV-SNAPSHOT/%{version}/' src/main/java/org/testng/internal/Version.java
5f0a9bc
2c82f60
cp -p ./src/main/java/*.dtd.html ./src/main/resources/.
2c82f60
2f0452e
%mvn_file : %{name}
Stanislav Ochotnicky e6afc43
# jdk15 classifier is used by some other packages
Stanislav Ochotnicky e6afc43
%mvn_alias : :::jdk15:
Stanislav Ochotnicky e6afc43
Stanislav Ochotnicky e6afc43
%build
d672474
%if %{with groovy} && %{with snakeyaml}
b9067e2
# A couple of parallelisation tests are *sometimes* failing, so let's ignore failures
b9067e2
# because they do complete successfully most of the time
b9067e2
%mvn_build -- -Dmaven.test.failure.ignore=true
95bdc13
%else
d672474
%mvn_build -f
95bdc13
%endif
5f0a9bc
2f0452e
%install
2f0452e
%mvn_install
5f0a9bc
2f0452e
%files -f .mfiles
93bf19d
%doc CHANGES.txt README.md
7e935e4
%license LICENSE.txt
Jaromir Capik a1ad305
2f0452e
%files javadoc -f .mfiles-javadoc
7e935e4
%license LICENSE.txt
5f0a9bc
5f0a9bc
%changelog
0b10f90
* Wed Feb 19 2020 Fabio Valentini <decathorpe@gmail.com> - 6.14.3-11
0b10f90
- Drop unnecessary dependency on parent POM.
0b10f90
ecbb737
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 6.14.3-10
ecbb737
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
ecbb737
3c38874
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 6.14.3-9
3c38874
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
3c38874
ff5d907
* Tue Jul 23 2019 Fabio Valentini <decathorpe@gmail.com> - 6.14.3-8
ff5d907
- Disable groovy support by default.
ff5d907
5cac8ae
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 6.14.3-7
5cac8ae
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
5cac8ae
b9067e2
* Thu Dec 13 2018 Mat Booth <mat.booth@redhat.com> - 6.14.3-6
b9067e2
- Fix test suite execution
b9067e2
bf1d3be
* Wed Jul 18 2018 Michael Simacek <msimacek@redhat.com> - 6.14.3-5
bf1d3be
- Clean tarball from binaries
bf1d3be
- Replace bundled jquery with CDN link
bf1d3be
d672474
* Tue Jul 17 2018 Mikolaj Izdebski <mizdebsk@redhat.com> - 6.14.3-4
d672474
- Allow conditionally building without snakeyaml
d672474
934a405
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6.14.3-3
934a405
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
934a405
9ea33b5
* Tue Mar 20 2018 Alexander Kurtakov <akurtako@redhat.com> 6.14.3-2
9ea33b5
- Bump maven pom version.
9ea33b5
4cf4fc7
* Tue Mar 20 2018 Alexander Kurtakov <akurtako@redhat.com> 6.14.3-1
4cf4fc7
- Update to upstream 6.14.3.
4cf4fc7
efd7977
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6.12-3
efd7977
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
efd7977
98433eb
* Wed Aug 23 2017 Mat Booth <mat.booth@redhat.com> - 6.12-2
98433eb
- Allow OSGi metadata to export all packages including internal ones
98433eb
2fd71df
* Fri Jul 28 2017 Mat Booth <mat.booth@redhat.com> - 6.12-1
2fd71df
- Update to latest release of testng
2fd71df
- Fixes classloading from ant rhbz#1475842
2fd71df
260b75a
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 6.11-2
260b75a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
260b75a
a1ada49
* Tue Jul 04 2017 Mat Booth <mat.booth@redhat.com> - 6.11-1
a1ada49
- Update to latest upstream release
a1ada49
- Continue building with maven for now, instead of moving to gradle due to
a1ada49
  rhbz#1467724
a1ada49
2f8a7de
* Wed May 31 2017 Michael Simacek <msimacek@redhat.com> - 6.9.12-5
2f8a7de
- Avoid accidental javascript in comment
2f8a7de
1bc5a1e
* Fri Feb 17 2017 Mat Booth <mat.booth@redhat.com> - 6.9.12-4
1bc5a1e
- License correction
1bc5a1e
5e7e764
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 6.9.12-3
5e7e764
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
5e7e764
95bdc13
* Wed Feb  1 2017 Mikolaj Izdebski <mizdebsk@redhat.com> - 6.9.12-2
95bdc13
- Introduce build-conditional to allow building without groovy
95bdc13
a9f892b
* Tue Nov 01 2016 Mat Booth <mat.booth@redhat.com> - 6.9.12-1
a9f892b
- Update to upstream version 6.9.12
a9f892b
- Avoid 'SNAPSHOT' in pom version to fix tests in testng-remote package
a9f892b
07151c9
* Wed Apr 20 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 6.9.11-1
07151c9
- Update to upstream version 6.9.11
07151c9
35ca6cd
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 6.9.10-2
35ca6cd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
35ca6cd
e0085f7
* Fri Jan 08 2016 gil cattaneo <puntogil@libero.it> 6.9.10-1
e0085f7
- Update to 6.9.10
e0085f7
2c82f60
* Tue Oct 27 2015 gil cattaneo <puntogil@libero.it> 6.9.9-1
2c82f60
- Update to 6.9.9
2c82f60
07eedeb
* Tue Oct 13 2015 gil cattaneo <puntogil@libero.it> 6.9.8-1
07eedeb
- Update to 6.9.8
07eedeb
93bf19d
* Mon Sep 07 2015 Mat Booth <mat.booth@redhat.com> - 6.9.5-1
93bf19d
- Update to 6.9.5
93bf19d
09aace1
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.8.21-2
09aace1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
09aace1
7e935e4
* Tue Jan 20 2015 gil cattaneo <puntogil@libero.it> 6.8.21-1
7e935e4
- Update to 6.8.21
7e935e4
- introduce license macro
7e935e4
b00f049
* Tue Jan 20 2015 gil cattaneo <puntogil@libero.it> 6.8.17-1
b00f049
- Update to 6.8.17
b00f049
24012d3
* Wed Jan 14 2015 gil cattaneo <puntogil@libero.it> 6.8.14-1
24012d3
- Update to 6.8.14
24012d3
b82a4af
* Mon Aug  4 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 6.8.8-3
b82a4af
- Fix build-requires on sonatype-oss-parent
b82a4af
d00483a
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.8.8-2
d00483a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
d00483a
a999d4f
* Wed Feb 26 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 6.8.8-1
a999d4f
- Update to upstream version 6.8.8
a999d4f
Stanislav Ochotnicky e6afc43
* Thu Sep 12 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 6.8.7-1
Stanislav Ochotnicky e6afc43
- Update to upstream version 6.8.7
Stanislav Ochotnicky e6afc43
- Provide additional jdk15 classifier
Stanislav Ochotnicky e6afc43
3816ced
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.8.5-2
3816ced
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
3816ced
edffce3
* Tue May 14 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 6.8.5-1
edffce3
- Update to upstream version 6.8.5
edffce3
Mat Booth 7ac0586
* Sun Feb 10 2013 Mat Booth <fedora@matbooth.co.uk> - 6.8-1
Mat Booth 7ac0586
- Update to latest upstream release, rhbz #888233
Mat Booth 7ac0586
Stanislav Ochotnicky 9be560a
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 6.0.1-6
Stanislav Ochotnicky 9be560a
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
Stanislav Ochotnicky 9be560a
- Replace maven BuildRequires with maven-local
Stanislav Ochotnicky 9be560a
Stanislav Ochotnicky 053a3e4
* Thu Nov 08 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 6.0.1-5
Stanislav Ochotnicky 053a3e4
- Part of testng is CPL, add it to license tag
Stanislav Ochotnicky 053a3e4
Stanislav Ochotnicky 51250f6
* Thu Jul 26 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 6.0.1-4
Stanislav Ochotnicky 51250f6
- Spec file cleanups and add_maven_depmap macro use
Stanislav Ochotnicky 51250f6
- Drop no longer needed depmap
Stanislav Ochotnicky 51250f6
12ffcad
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.0.1-3
12ffcad
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
12ffcad
54cd4b2
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.0.1-2
54cd4b2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
54cd4b2
Jaromir Capik a1ad305
* Thu May 12 2011 Jaromir Capik <jcapik@redhat.com> - 6.0.1-1
Jaromir Capik a1ad305
- Update to 6.0.1
Jaromir Capik a1ad305
9649bd1
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.11-4
9649bd1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
9649bd1
b471652
* Mon Jul 19 2010 Lubomir Rintel <lkundrak@v3.sk> - 5.11-3
b471652
- Drop backport util concurrent dependency, we don't build jdk14 jar
b471652
5f0a9bc
* Mon Dec 21 2009 Lubomir Rintel <lkundrak@v3.sk> - 5.11-2
5f0a9bc
- Add POM
5f0a9bc
5f0a9bc
* Sun Dec 20 2009 Lubomir Rintel <lkundrak@v3.sk> - 5.11-1
5f0a9bc
- Bump to 5.11
5f0a9bc
- Add maven depmap fragments
5f0a9bc
- Fix line encoding of README
5f0a9bc
5f0a9bc
* Wed Dec 09 2009 Lubomir Rintel <lkundrak@v3.sk> - 5.10-2
5f0a9bc
- Add javadoc
5f0a9bc
- Don't ship jdk14 jar
5f0a9bc
5f0a9bc
* Fri Nov 27 2009 Lubomir Rintel <lkundrak@v3.sk> - 5.10-1
5f0a9bc
- Initial packaging