147 lines
4.7 KiB
RPMSpec
147 lines
4.7 KiB
RPMSpec
|
|
%global group_id org.testng
|
|
|
|
Name: testng
|
|
Version: 6.8.8
|
|
Release: 2%{?dist}
|
|
Summary: Java-based testing framework
|
|
# org/testng/remote/strprotocol/AbstractRemoteTestRunnerClient.java is CPL
|
|
License: ASL 2.0 and CPL
|
|
URL: http://testng.org/
|
|
Source0: https://github.com/cbeust/testng/archive/%{name}-%{version}.tar.gz
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: java-devel
|
|
|
|
BuildRequires: mvn(com.beust:jcommander) >= 1.27
|
|
BuildRequires: mvn(com.google.guava:guava)
|
|
BuildRequires: mvn(com.google.inject:guice)
|
|
BuildRequires: mvn(junit:junit)
|
|
BuildRequires: mvn(org.apache.ant:ant)
|
|
BuildRequires: mvn(org.beanshell:bsh)
|
|
BuildRequires: mvn(org.sonatype.oss:oss-parent)
|
|
BuildRequires: mvn(org.yaml:snakeyaml)
|
|
|
|
BuildRequires: maven-local
|
|
BuildRequires: maven-plugin-bundle
|
|
|
|
%description
|
|
TestNG is a testing framework inspired from JUnit and NUnit but introducing
|
|
some new functionality, including flexible test configuration, and
|
|
distributed test running. It is designed to cover unit tests as well as
|
|
functional, end-to-end, integration, etc.
|
|
|
|
%package javadoc
|
|
Summary: API documentation for %{name}
|
|
|
|
%description javadoc
|
|
This package contains the API documentation for %{name}.
|
|
|
|
%prep
|
|
%setup -q -n %{name}-%{name}-%{version}
|
|
|
|
# build fix for new guice
|
|
%pom_add_dep com.google.guava:guava::provided
|
|
sed -i "s|com.google.inject.internal|com.google.common.collect|" \
|
|
src/main/java/org/testng/xml/XmlDependencies.java \
|
|
src/main/java/org/testng/xml/XmlGroups.java \
|
|
src/main/java/org/testng/xml/dom/TestNGTagFactory.java \
|
|
src/test/java/test/dependent/InstanceSkipSampleTest.java \
|
|
src/test/java/test/mustache/MustacheTest.java \
|
|
src/test/java/test/thread/B.java
|
|
|
|
%pom_remove_plugin :maven-gpg-plugin
|
|
%pom_remove_plugin :maven-source-plugin
|
|
|
|
# remove bundled stuff
|
|
rm -rf spring
|
|
rm -rf 3rdparty
|
|
rm -rf lib-supplied
|
|
rm -rf gigaspaces
|
|
rm -f *.jar
|
|
|
|
# convert to UTF-8
|
|
native2ascii -encoding UTF-8 src/main/java/org/testng/internal/Version.java \
|
|
src/main/java/org/testng/internal/Version.java
|
|
|
|
iconv --from-code=ISO-8859-2 --to-code=UTF-8 ANNOUNCEMENT.txt > ANNOUNCEMENT.txt.utf8
|
|
mv -f ANNOUNCEMENT.txt.utf8 ANNOUNCEMENT.txt
|
|
|
|
%mvn_file : %{name}
|
|
# jdk15 classifier is used by some other packages
|
|
%mvn_alias : :::jdk15:
|
|
|
|
%build
|
|
%mvn_build -- -Dmaven.local.debug=true
|
|
|
|
%install
|
|
%mvn_install
|
|
|
|
%files -f .mfiles
|
|
%doc LICENSE.txt ANNOUNCEMENT.txt CHANGES.txt README
|
|
|
|
%files javadoc -f .mfiles-javadoc
|
|
%doc LICENSE.txt
|
|
|
|
%changelog
|
|
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.8.8-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
* Wed Feb 26 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 6.8.8-1
|
|
- Update to upstream version 6.8.8
|
|
|
|
* Thu Sep 12 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 6.8.7-1
|
|
- Update to upstream version 6.8.7
|
|
- Provide additional jdk15 classifier
|
|
|
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.8.5-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
* Tue May 14 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 6.8.5-1
|
|
- Update to upstream version 6.8.5
|
|
|
|
* Sun Feb 10 2013 Mat Booth <fedora@matbooth.co.uk> - 6.8-1
|
|
- Update to latest upstream release, rhbz #888233
|
|
|
|
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 6.0.1-6
|
|
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
|
|
- Replace maven BuildRequires with maven-local
|
|
|
|
* Thu Nov 08 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 6.0.1-5
|
|
- Part of testng is CPL, add it to license tag
|
|
|
|
* Thu Jul 26 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 6.0.1-4
|
|
- Spec file cleanups and add_maven_depmap macro use
|
|
- Drop no longer needed depmap
|
|
|
|
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.0.1-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.0.1-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
* Thu May 12 2011 Jaromir Capik <jcapik@redhat.com> - 6.0.1-1
|
|
- Update to 6.0.1
|
|
|
|
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.11-4
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
* Mon Jul 19 2010 Lubomir Rintel <lkundrak@v3.sk> - 5.11-3
|
|
- Drop backport util concurrent dependency, we don't build jdk14 jar
|
|
|
|
* Mon Dec 21 2009 Lubomir Rintel <lkundrak@v3.sk> - 5.11-2
|
|
- Add POM
|
|
|
|
* Sun Dec 20 2009 Lubomir Rintel <lkundrak@v3.sk> - 5.11-1
|
|
- Bump to 5.11
|
|
- Add maven depmap fragments
|
|
- Fix line encoding of README
|
|
|
|
* Wed Dec 09 2009 Lubomir Rintel <lkundrak@v3.sk> - 5.10-2
|
|
- Add javadoc
|
|
- Don't ship jdk14 jar
|
|
|
|
* Fri Nov 27 2009 Lubomir Rintel <lkundrak@v3.sk> - 5.10-1
|
|
- Initial packaging
|