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