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