e41af8
Name:           opentest4j
98b2ce
Version:        1.2.0
e752fd
Release:        2%{?dist}
e41af8
Summary:        Open Test Alliance for the JVM
e41af8
License:        ASL 2.0
e41af8
98b2ce
URL:            https://github.com/ota4j-team/opentest4j
98b2ce
Source0:        %{url}/archive/r%{version}.tar.gz
e41af8
Source100:      https://repo1.maven.org/maven2/org/opentest4j/opentest4j/%{version}/opentest4j-%{version}.pom
e41af8
98b2ce
BuildArch:      noarch
98b2ce
e41af8
BuildRequires:  maven-local
e41af8
BuildRequires:  mvn(junit:junit)
e41af8
e41af8
%description
e41af8
Open Test Alliance for the JVM is a minimal common foundation for
e41af8
testing libraries on the JVM.  The primary goal of the project is to
e41af8
enable testing frameworks like JUnit, TestNG, Spock, etc. and
e41af8
third-party assertion libraries like Hamcrest, AssertJ, etc. to use a
e41af8
common set of exceptions that IDEs and build tools can support in a
e41af8
consistent manner across all testing scenarios -- for example, for
e41af8
consistent handling of failed assertions and failed assumptions as
e41af8
well as visualization of test execution in IDEs and reports.
e41af8
e41af8
%package javadoc
e41af8
Summary:        Javadoc for %{name}
e41af8
e41af8
%description javadoc
e41af8
API documentation for %{name}.
e41af8
e41af8
%prep
e41af8
%setup -q -n opentest4j-r%{version}
e41af8
find -name \*.jar -delete
e41af8
cp -p %{SOURCE100} pom.xml
e41af8
98b2ce
%pom_add_dep junit:junit::test
e41af8
e41af8
%pom_xpath_inject pom:project "
e41af8
  <build>
e41af8
    <pluginManagement>
e41af8
      <plugins>
e41af8
        <plugin>
e41af8
          <artifactId>maven-jar-plugin</artifactId>
e41af8
          <configuration>
e41af8
            <archive>
e41af8
              <manifestEntries>
e41af8
                <Automatic-Module-Name>org.opentest4j</Automatic-Module-Name>
e41af8
                <Implementation-Title>opentest4j</Implementation-Title>
e41af8
                <Implementation-Vendor>opentest4j.org</Implementation-Vendor>
e41af8
                <Implementation-Version>%{version}</Implementation-Version>
e41af8
                <Specification-Title>opentest4j</Specification-Title>
e41af8
                <Specification-Vendor>opentest4j.org</Specification-Vendor>
e41af8
                <Specification-Version>%{version}</Specification-Version>
e41af8
                
e41af8
                <Bundle-ManifestVersion>2</Bundle-ManifestVersion>
e41af8
                <Bundle-SymbolicName>org.opentest4j</Bundle-SymbolicName>
e41af8
                <Bundle-Version>%{version}</Bundle-Version>
e41af8
                <Export-Package>org.opentest4j;version=\"%{version}\"</Export-Package>
e41af8
              </manifestEntries>
e41af8
            </archive>
e41af8
          </configuration>
e41af8
        </plugin>
e41af8
      </plugins>
e41af8
    </pluginManagement>
e41af8
  </build>"
e41af8
e41af8
%build
e41af8
%mvn_build
e41af8
e41af8
%install
e41af8
%mvn_install
e41af8
e41af8
%files -f .mfiles
e41af8
%license LICENSE
e41af8
%doc README.md
e41af8
e41af8
%files javadoc -f .mfiles-javadoc
e41af8
%license LICENSE
e41af8
e41af8
%changelog
e752fd
* Sat Jul 11 2020 Jiri Vanek <jvanek@redhat.com> - 1.2.0-2
e752fd
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
e752fd
98b2ce
* Wed Mar 04 2020 Fabio Valentini <decathorpe@gmail.com> - 1.2.0-1
98b2ce
- Update to version 1.2.0.
98b2ce
98b2ce
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-3
98b2ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
98b2ce
98b2ce
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-2
98b2ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
98b2ce
e41af8
* Tue Mar 05 2019 Mat Booth <mat.booth@redhat.com> - 1.1.1-1
e41af8
- Update to latest upstream release
e41af8
e41af8
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-4
e41af8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
e41af8
e41af8
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-3
e41af8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
e41af8
e41af8
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-2
e41af8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
e41af8
e41af8
* Thu Sep 14 2017 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.0.0-1
e752fd
- Initial packaging