Blame SPECS/testng.spec

f3169e
%{?scl:%scl_package testng}
f3169e
%{!?scl:%global pkg_name %{name}}
f3169e
f3169e
%bcond_without groovy
f3169e
f3169e
Name:           %{?scl_prefix}testng
f3169e
Version:        6.9.12
f3169e
Release:        5.2%{?dist}
f3169e
Summary:        Java-based testing framework
f3169e
License:        ASL 2.0
f3169e
URL:            http://testng.org/
f3169e
Source0:        https://github.com/cbeust/testng/archive/%{version}.tar.gz
f3169e
Patch0:         0001-Avoid-accidental-javascript-in-javadoc.patch
f3169e
f3169e
BuildArch:      noarch
f3169e
f3169e
BuildRequires:  %{?scl_prefix}maven-local
f3169e
BuildRequires:  %{?scl_prefix}mvn(com.beust:jcommander)
f3169e
BuildRequires:  %{?scl_prefix}mvn(com.google.inject:guice::no_aop:)
f3169e
BuildRequires:  %{?scl_prefix}mvn(junit:junit)
f3169e
BuildRequires:  %{?scl_prefix}mvn(org.apache.ant:ant)
f3169e
BuildRequires:  %{?scl_prefix}mvn(org.apache.felix:maven-bundle-plugin)
f3169e
BuildRequires:  %{?scl_prefix}mvn(org.beanshell:bsh)
f3169e
BuildRequires:  %{?scl_prefix}mvn(org.codehaus.mojo:build-helper-maven-plugin)
f3169e
BuildRequires:  %{?scl_prefix}mvn(org.sonatype.oss:oss-parent:pom:)
f3169e
BuildRequires:  %{?scl_prefix}mvn(org.yaml:snakeyaml)
f3169e
%if %{with groovy}
f3169e
BuildRequires:  %{?scl_prefix}mvn(org.assertj:assertj-core)
f3169e
BuildRequires:  mvn(org.codehaus.gmavenplus:gmavenplus-plugin)
f3169e
BuildRequires:  mvn(org.codehaus.groovy:groovy-all)
f3169e
BuildRequires:  mvn(org.spockframework:spock-core)
f3169e
%endif
f3169e
f3169e
%description
f3169e
TestNG is a testing framework inspired from JUnit and NUnit but introducing
f3169e
some new functionality, including flexible test configuration, and
f3169e
distributed test running.  It is designed to cover unit tests as well as
f3169e
functional, end-to-end, integration, etc.
f3169e
f3169e
%package javadoc
f3169e
Summary:        API documentation for %{pkg_name}
f3169e
f3169e
%description javadoc
f3169e
This package contains the API documentation for %{pkg_name}.
f3169e
f3169e
%prep
f3169e
%setup -q -n %{pkg_name}-%{version}
f3169e
f3169e
%patch0 -p1
f3169e
f3169e
# remove any bundled libs, but not test resources
f3169e
find ! -path "*/test/*" -name *.jar -print -delete
f3169e
find -name *.class -delete
f3169e
f3169e
# these are unnecessary
f3169e
%pom_remove_plugin :maven-gpg-plugin
f3169e
%pom_remove_plugin :maven-source-plugin
f3169e
%pom_remove_plugin :maven-javadoc-plugin
f3169e
f3169e
# missing test deps
f3169e
%if %{with groovy}
f3169e
%pom_add_plugin "org.codehaus.gmavenplus:gmavenplus-plugin" pom.xml \
f3169e
  "<executions><execution><goals><goal>addTestSources</goal><goal>testGenerateStubs</goal><goal>testCompile</goal><goal>removeTestStubs</goal></goals></execution></executions>"
f3169e
%pom_add_dep "org.spockframework:spock-core::test"
f3169e
%pom_add_dep "org.codehaus.groovy:groovy-all::test"
f3169e
%endif
f3169e
f3169e
# avoid SNAPSHOT in version number
f3169e
sed -i -e '/<version>/s/-SNAPSHOT//' pom.xml
f3169e
f3169e
# plugins not in Fedora
f3169e
%pom_remove_plugin com.coderplus.maven.plugins:copy-rename-maven-plugin
f3169e
sed -i -e 's/VersionTemplateJava/Version.java/' pom.xml
f3169e
mv ./src/main/resources/org/testng/internal/VersionTemplateJava ./src/main/resources/org/testng/internal/Version.java
f3169e
f3169e
cp -p ./src/main/java/*.dtd.html ./src/main/resources/.
f3169e
f3169e
f3169e
%mvn_file : %{pkg_name}
f3169e
# jdk15 classifier is used by some other packages
f3169e
%mvn_alias : :::jdk15:
f3169e
f3169e
%build
f3169e
%if %{with groovy}
f3169e
%mvn_build -- -Dmaven.local.debug=true
f3169e
%else
f3169e
%mvn_build -f -- -Dmaven.local.debug=true
f3169e
%endif
f3169e
f3169e
%install
f3169e
%mvn_install
f3169e
f3169e
%files -f .mfiles
f3169e
%doc CHANGES.txt README.md
f3169e
%license LICENSE.txt
f3169e
f3169e
%files javadoc -f .mfiles-javadoc
f3169e
%license LICENSE.txt
f3169e
f3169e
%changelog
f3169e
* Thu Jun 22 2017 Michael Simacek <msimacek@redhat.com> - 6.9.12-5.2
f3169e
- Mass rebuild 2017-06-22
f3169e
f3169e
* Wed Jun 21 2017 Java Maintainers <java-maint@redhat.com> - 6.9.12-5.1
f3169e
- Automated package import and SCL-ization
f3169e
f3169e
* Wed May 31 2017 Michael Simacek <msimacek@redhat.com> - 6.9.12-5
f3169e
- Avoid accidental javascript in comment
f3169e
f3169e
* Fri Feb 17 2017 Mat Booth <mat.booth@redhat.com> - 6.9.12-4
f3169e
- License correction
f3169e
f3169e
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 6.9.12-3
f3169e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
f3169e
f3169e
* Wed Feb  1 2017 Mikolaj Izdebski <mizdebsk@redhat.com> - 6.9.12-2
f3169e
- Introduce build-conditional to allow building without groovy
f3169e
f3169e
* Tue Nov 01 2016 Mat Booth <mat.booth@redhat.com> - 6.9.12-1
f3169e
- Update to upstream version 6.9.12
f3169e
- Avoid 'SNAPSHOT' in pom version to fix tests in testng-remote package
f3169e
f3169e
* Wed Apr 20 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 6.9.11-1
f3169e
- Update to upstream version 6.9.11
f3169e
f3169e
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 6.9.10-2
f3169e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
f3169e
f3169e
* Fri Jan 08 2016 gil cattaneo <puntogil@libero.it> 6.9.10-1
f3169e
- Update to 6.9.10
f3169e
f3169e
* Tue Oct 27 2015 gil cattaneo <puntogil@libero.it> 6.9.9-1
f3169e
- Update to 6.9.9
f3169e
f3169e
* Tue Oct 13 2015 gil cattaneo <puntogil@libero.it> 6.9.8-1
f3169e
- Update to 6.9.8
f3169e
f3169e
* Mon Sep 07 2015 Mat Booth <mat.booth@redhat.com> - 6.9.5-1
f3169e
- Update to 6.9.5
f3169e
f3169e
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.8.21-2
f3169e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
f3169e
f3169e
* Tue Jan 20 2015 gil cattaneo <puntogil@libero.it> 6.8.21-1
f3169e
- Update to 6.8.21
f3169e
- introduce license macro
f3169e
f3169e
* Tue Jan 20 2015 gil cattaneo <puntogil@libero.it> 6.8.17-1
f3169e
- Update to 6.8.17
f3169e
f3169e
* Wed Jan 14 2015 gil cattaneo <puntogil@libero.it> 6.8.14-1
f3169e
- Update to 6.8.14
f3169e
f3169e
* Mon Aug  4 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 6.8.8-3
f3169e
- Fix build-requires on sonatype-oss-parent
f3169e
f3169e
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.8.8-2
f3169e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
f3169e
f3169e
* Wed Feb 26 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 6.8.8-1
f3169e
- Update to upstream version 6.8.8
f3169e
f3169e
* Thu Sep 12 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 6.8.7-1
f3169e
- Update to upstream version 6.8.7
f3169e
- Provide additional jdk15 classifier
f3169e
f3169e
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.8.5-2
f3169e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
f3169e
f3169e
* Tue May 14 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 6.8.5-1
f3169e
- Update to upstream version 6.8.5
f3169e
f3169e
* Sun Feb 10 2013 Mat Booth <fedora@matbooth.co.uk> - 6.8-1
f3169e
- Update to latest upstream release, rhbz #888233
f3169e
f3169e
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 6.0.1-6
f3169e
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
f3169e
- Replace maven BuildRequires with maven-local
f3169e
f3169e
* Thu Nov 08 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 6.0.1-5
f3169e
- Part of testng is CPL, add it to license tag
f3169e
f3169e
* Thu Jul 26 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 6.0.1-4
f3169e
- Spec file cleanups and add_maven_depmap macro use
f3169e
- Drop no longer needed depmap
f3169e
f3169e
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.0.1-3
f3169e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
f3169e
f3169e
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.0.1-2
f3169e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
f3169e
f3169e
* Thu May 12 2011 Jaromir Capik <jcapik@redhat.com> - 6.0.1-1
f3169e
- Update to 6.0.1
f3169e
f3169e
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.11-4
f3169e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
f3169e
f3169e
* Mon Jul 19 2010 Lubomir Rintel <lkundrak@v3.sk> - 5.11-3
f3169e
- Drop backport util concurrent dependency, we don't build jdk14 jar
f3169e
f3169e
* Mon Dec 21 2009 Lubomir Rintel <lkundrak@v3.sk> - 5.11-2
f3169e
- Add POM
f3169e
f3169e
* Sun Dec 20 2009 Lubomir Rintel <lkundrak@v3.sk> - 5.11-1
f3169e
- Bump to 5.11
f3169e
- Add maven depmap fragments
f3169e
- Fix line encoding of README
f3169e
f3169e
* Wed Dec 09 2009 Lubomir Rintel <lkundrak@v3.sk> - 5.10-2
f3169e
- Add javadoc
f3169e
- Don't ship jdk14 jar
f3169e
f3169e
* Fri Nov 27 2009 Lubomir Rintel <lkundrak@v3.sk> - 5.10-1
f3169e
- Initial packaging