Blame SPECS/disruptor.spec

03ec7d
Name:          disruptor
03ec7d
Version:       3.4.4
03ec7d
Release:       2%{?dist}
03ec7d
Summary:       Concurrent Programming Framework
03ec7d
License:       ASL 2.0
03ec7d
URL:           https://lmax-exchange.github.io/disruptor/
03ec7d
BuildArch:     noarch
03ec7d
03ec7d
Source0:       https://github.com/LMAX-Exchange/disruptor/archive/%{version}/%{name}-%{version}.tar.gz
03ec7d
Source1:       https://repo1.maven.org/maven2/com/lmax/%{name}/%{version}/%{name}-%{version}.pom
03ec7d
03ec7d
BuildRequires: maven-local-openjdk8
03ec7d
BuildRequires: mvn(junit:junit)
03ec7d
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
03ec7d
03ec7d
%description
03ec7d
A High Performance Inter-Thread Messaging Library.
03ec7d
03ec7d
%package javadoc
03ec7d
Summary:       Javadoc for %{name}
03ec7d
03ec7d
%description javadoc
03ec7d
This package contains javadoc for %{name}.
03ec7d
03ec7d
%prep
03ec7d
%autosetup
03ec7d
# Cleanup
03ec7d
find . -name "*.class" -print -delete
03ec7d
find . -name "*.jar" -type f -print -delete
03ec7d
03ec7d
cp -p %{SOURCE1} pom.xml
03ec7d
03ec7d
# Add OSGi support
03ec7d
%pom_xpath_inject "pom:project" "<packaging>bundle</packaging>"
03ec7d
%pom_add_plugin org.apache.felix:maven-bundle-plugin:2.3.7 . '
03ec7d
<extensions>true</extensions>
03ec7d
<configuration>
03ec7d
  <instructions>
03ec7d
    <Bundle-DocURL>%{url}</Bundle-DocURL>
03ec7d
    <Bundle-Name>${project.name}</Bundle-Name>
03ec7d
    <Bundle-Vendor>LMAX Disruptor Development Team</Bundle-Vendor>
03ec7d
  </instructions>
03ec7d
</configuration>
03ec7d
<executions>
03ec7d
  <execution>
03ec7d
    <id>bundle-manifest</id>
03ec7d
    <phase>process-classes</phase>
03ec7d
    <goals>
03ec7d
      <goal>manifest</goal>
03ec7d
    </goals>
03ec7d
  </execution>
03ec7d
</executions>'
03ec7d
03ec7d
# fail to compile cause: incompatible hamcrest apis
03ec7d
rm -r src/test/java/com/lmax/disruptor/RingBufferTest.java \
03ec7d
 src/test/java/com/lmax/disruptor/RingBufferEventMatcher.java
03ec7d
# Failed to stop thread: Thread[com.lmax.disruptor.BatchEventProcessor@1d057a39,5,main]
03ec7d
rm -r src/test/java/com/lmax/disruptor/dsl/DisruptorTest.java
03ec7d
# Test fails due to incompatible jmock version
03ec7d
#rm -f src/test/java/com/lmax/disruptor/EventPollerTest.java
03ec7d
03ec7d
%mvn_file :%{name} %{name}
03ec7d
03ec7d
%build
03ec7d
03ec7d
%mvn_build -- -Dproject.build.sourceEncoding=UTF-8 -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8
03ec7d
03ec7d
%install
03ec7d
%mvn_install
03ec7d
03ec7d
%files -f .mfiles
03ec7d
%doc README.md
03ec7d
%license LICENCE.txt
03ec7d
03ec7d
%files javadoc -f .mfiles-javadoc
03ec7d
%license LICENCE.txt
03ec7d
03ec7d
%changelog
03ec7d
* Wed Feb 23 2022 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.4.4-2
03ec7d
- Build with OpenJDK 8
03ec7d
03ec7d
* Mon Dec 13 2021 Sérgio Basto <sergio@serjux.com> - 3.4.4-1
03ec7d
- Update disruptor to 3.4.4 (#1953941)
03ec7d
03ec7d
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.2-6
03ec7d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
03ec7d
03ec7d
* Mon Jun 28 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.4.2-5
03ec7d
- Remove unneeded buildrequires on jmock and hamcrest
03ec7d
03ec7d
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.2-4
03ec7d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
03ec7d
03ec7d
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.2-3
03ec7d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
03ec7d
03ec7d
* Fri Jul 10 2020 Jiri Vanek <jvanek@redhat.com> - 3.4.2-2
03ec7d
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
03ec7d
03ec7d
* Tue May 12 2020 Alexander Scheel <ascheel@redhat.com> - 3.4.2-1
03ec7d
- Rebase to disruptor upstream release v3.4.2
03ec7d
03ec7d
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.6-8
03ec7d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
03ec7d
03ec7d
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.6-7
03ec7d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
03ec7d
03ec7d
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.6-6
03ec7d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
03ec7d
03ec7d
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.6-5
03ec7d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
03ec7d
03ec7d
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.6-4
03ec7d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
03ec7d
03ec7d
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.6-3
03ec7d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
03ec7d
03ec7d
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.6-2
03ec7d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
03ec7d
03ec7d
* Fri Nov 11 2016 gil cattaneo <puntogil@libero.it> 3.3.6-1
03ec7d
- update to 3.3.6
03ec7d
03ec7d
* Thu Jun 23 2016 gil cattaneo <puntogil@libero.it> 3.3.4-1
03ec7d
- update to 3.3.4
03ec7d
03ec7d
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.2-4
03ec7d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
03ec7d
03ec7d
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3.2-3
03ec7d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
03ec7d
03ec7d
* Wed Jun 03 2015 gil cattaneo <puntogil@libero.it> 3.3.2-2
03ec7d
- build fix for jmock 2.8.1
03ec7d
03ec7d
* Wed Jun  3 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.3.2-1
03ec7d
- Update to upstream version 3.3.2
03ec7d
03ec7d
* Sun Feb 01 2015 gil cattaneo <puntogil@libero.it> 3.2.1-3
03ec7d
- introduce license macro
03ec7d
03ec7d
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.1-2
03ec7d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
03ec7d
03ec7d
* Mon Apr 21 2014 gil cattaneo <puntogil@libero.it> 3.2.1-1
03ec7d
- update to 3.2.1
03ec7d
03ec7d
* Wed Aug 14 2013 gil cattaneo <puntogil@libero.it> 3.2.0-1
03ec7d
- initial rpm