35c0712
Name:           opentest4j
0adb5a2
Version:        1.2.0
e46fc2e
Release:        2%{?dist}
35c0712
Summary:        Open Test Alliance for the JVM
35c0712
License:        ASL 2.0
35c0712
URL:            https://github.com/ota4j-team/opentest4j
35c0712
BuildArch:      noarch
35c0712
35c0712
Source0:        https://github.com/ota4j-team/opentest4j/archive/r%{version}.tar.gz
35c0712
35c0712
Source100:      https://repo1.maven.org/maven2/org/opentest4j/opentest4j/%{version}/opentest4j-%{version}.pom
35c0712
35c0712
BuildRequires:  maven-local
35c0712
BuildRequires:  mvn(junit:junit)
35c0712
35c0712
%description
35c0712
Open Test Alliance for the JVM is a minimal common foundation for
35c0712
testing libraries on the JVM.  The primary goal of the project is to
35c0712
enable testing frameworks like JUnit, TestNG, Spock, etc. and
35c0712
third-party assertion libraries like Hamcrest, AssertJ, etc. to use a
35c0712
common set of exceptions that IDEs and build tools can support in a
35c0712
consistent manner across all testing scenarios -- for example, for
35c0712
consistent handling of failed assertions and failed assumptions as
35c0712
well as visualization of test execution in IDEs and reports.
35c0712
35c0712
%package javadoc
35c0712
Summary:        Javadoc for %{name}
35c0712
35c0712
%description javadoc
35c0712
API documentation for %{name}.
35c0712
35c0712
%prep
35c0712
%setup -q -n opentest4j-r%{version}
b8b22cf
find -name \*.jar -delete
35c0712
cp -p %{SOURCE100} pom.xml
35c0712
0adb5a2
%pom_add_dep junit:junit::test
35c0712
35c0712
%pom_xpath_inject pom:project "
35c0712
  <build>
35c0712
    <pluginManagement>
35c0712
      <plugins>
ccb21cd
        <plugin>
35c0712
          <artifactId>maven-jar-plugin</artifactId>
35c0712
          <configuration>
35c0712
            <archive>
35c0712
              <manifestEntries>
3a8aa5e
                <Automatic-Module-Name>org.opentest4j</Automatic-Module-Name>
3a8aa5e
                <Implementation-Title>opentest4j</Implementation-Title>
3a8aa5e
                <Implementation-Vendor>opentest4j.org</Implementation-Vendor>
3a8aa5e
                <Implementation-Version>%{version}</Implementation-Version>
3a8aa5e
                <Specification-Title>opentest4j</Specification-Title>
3a8aa5e
                <Specification-Vendor>opentest4j.org</Specification-Vendor>
3a8aa5e
                <Specification-Version>%{version}</Specification-Version>
3a8aa5e
                
35c0712
                <Bundle-ManifestVersion>2</Bundle-ManifestVersion>
35c0712
                <Bundle-SymbolicName>org.opentest4j</Bundle-SymbolicName>
35c0712
                <Bundle-Version>%{version}</Bundle-Version>
35c0712
                <Export-Package>org.opentest4j;version=\"%{version}\"</Export-Package>
35c0712
              </manifestEntries>
35c0712
            </archive>
35c0712
          </configuration>
ccb21cd
        </plugin>
35c0712
      </plugins>
35c0712
    </pluginManagement>
35c0712
  </build>"
35c0712
f47c1ba
# Fix unused reference to unused dependency
f47c1ba
# This is fixed upstream: https://github.com/ota4j-team/opentest4j/commit/70d3d54f2cd076a962e81d9510e6716f3cbf8060
f47c1ba
sed -i -e '/org\.apache\.commons\.codec/d' src/test/java/org/opentest4j/AssertionFailedErrorTests.java
f47c1ba
35c0712
%build
35c0712
%mvn_build
35c0712
35c0712
%install
35c0712
%mvn_install
35c0712
35c0712
%files -f .mfiles
35c0712
%license LICENSE
35c0712
%doc README.md
35c0712
35c0712
%files javadoc -f .mfiles-javadoc
35c0712
%license LICENSE
35c0712
35c0712
%changelog
e46fc2e
* Tue Nov 05 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.2.0-2
e46fc2e
- Mass rebuild for javapackages-tools 201902
e46fc2e
0adb5a2
* Mon Jul 15 2019 Marian Koncek <mkoncek@redhat.com> - 1.2.0-1
0adb5a2
- Update to upstream version 1.2.0
0adb5a2
5f3fd9c
* Fri May 24 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.1.1-2
5f3fd9c
- Mass rebuild for javapackages-tools 201901
5f3fd9c
f47c1ba
* Tue Mar 05 2019 Mat Booth <mat.booth@redhat.com> - 1.1.1-1
f47c1ba
- Update to latest upstream release
f47c1ba
47a82fd
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-4
47a82fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
47a82fd
c797cfc
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-3
c797cfc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
c797cfc
3e8e011
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-2
3e8e011
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
3e8e011
35c0712
* Thu Sep 14 2017 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.0.0-1
35c0712
- Initial packaging