Blame SPECS/disruptor.spec

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