481c4e2
Name:          disruptor
761b5ed
Version:       3.3.6
05433d8
Release:       6%{?dist}
481c4e2
Summary:       Concurrent Programming Framework
481c4e2
License:       ASL 2.0
481c4e2
URL:           http://lmax-exchange.github.io/disruptor/
761b5ed
Source0:       https://github.com/LMAX-Exchange/disruptor/archive/%{version}/%{name}-%{version}.tar.gz
481c4e2
Source1:       http://repo1.maven.org/maven2/com/lmax/%{name}/%{version}/%{name}-%{version}.pom
0bef52f
# see http://www.jmock.org/threading-synchroniser.html
0bef52f
Patch0:        disruptor-3.3.2-jmock.patch
481c4e2
e6c8e77
BuildRequires: maven-local
481c4e2
BuildRequires: mvn(junit:junit)
e6c8e77
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
1030ba0
BuildRequires: mvn(org.hamcrest:hamcrest-library)
481c4e2
BuildRequires: mvn(org.jmock:jmock-junit4)
481c4e2
BuildRequires: mvn(org.jmock:jmock-legacy)
481c4e2
481c4e2
%if 0
481c4e2
# Unavailable performance test deps
761b5ed
BuildRequires: mvn(org.hdrhistogram:HdrHistogram:1.2.1)
481c4e2
%endif
481c4e2
481c4e2
BuildArch:     noarch
481c4e2
481c4e2
%description
481c4e2
A High Performance Inter-Thread Messaging Library.
481c4e2
481c4e2
%package javadoc
481c4e2
Summary:       Javadoc for %{name}
481c4e2
481c4e2
%description javadoc
481c4e2
This package contains javadoc for %{name}.
481c4e2
481c4e2
%prep
481c4e2
%setup -q
e6c8e77
# Cleanup
481c4e2
find . -name "*.class" -print -delete
481c4e2
find . -name "*.jar" -type f -print -delete
481c4e2
0bef52f
%patch0 -p1
0bef52f
481c4e2
cp -p %{SOURCE1} pom.xml
e6c8e77
e6c8e77
# Add OSGi support
e6c8e77
%pom_xpath_inject "pom:project" "<packaging>bundle</packaging>"
e6c8e77
%pom_add_plugin org.apache.felix:maven-bundle-plugin:2.3.7 . '
e6c8e77
<extensions>true</extensions>
481c4e2
<configuration>
e6c8e77
  <instructions>
e6c8e77
    <Bundle-DocURL>%{url}</Bundle-DocURL>
e6c8e77
    <Bundle-Name>${project.name}</Bundle-Name>
e6c8e77
    <Bundle-Vendor>LMAX Disruptor Development Team</Bundle-Vendor>
e6c8e77
  </instructions>
e6c8e77
</configuration>
e6c8e77
<executions>
e6c8e77
  <execution>
e6c8e77
    <id>bundle-manifest</id>
e6c8e77
    <phase>process-classes</phase>
e6c8e77
    <goals>
e6c8e77
      <goal>manifest</goal>
e6c8e77
    </goals>
e6c8e77
  </execution>
e6c8e77
</executions>'
481c4e2
481c4e2
# fail to compile cause: incompatible hamcrest apis
481c4e2
rm -r src/test/java/com/lmax/disruptor/RingBufferTest.java \
481c4e2
 src/test/java/com/lmax/disruptor/RingBufferEventMatcher.java
51fe964
# Failed to stop thread: Thread[com.lmax.disruptor.BatchEventProcessor@1d057a39,5,main]
51fe964
rm -r src/test/java/com/lmax/disruptor/dsl/DisruptorTest.java
e6c8e77
# Test fails due to incompatible jmock version
0bef52f
#rm -f src/test/java/com/lmax/disruptor/EventPollerTest.java
481c4e2
53702b1
%mvn_file :%{name} %{name}
53702b1
481c4e2
%build
481c4e2
481c4e2
%mvn_build -- -Dproject.build.sourceEncoding=UTF-8
481c4e2
481c4e2
%install
481c4e2
%mvn_install
481c4e2
481c4e2
%files -f .mfiles
53702b1
%doc README.md
a342cd5
%license LICENCE.txt
481c4e2
481c4e2
%files javadoc -f .mfiles-javadoc
a342cd5
%license LICENCE.txt
481c4e2
481c4e2
%changelog
05433d8
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.6-6
05433d8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
05433d8
2496c1a
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.6-5
2496c1a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
2496c1a
3b9e890
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.6-4
3b9e890
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
3b9e890
1faa8f1
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.6-3
1faa8f1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
1faa8f1
210691e
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.6-2
210691e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
210691e
761b5ed
* Fri Nov 11 2016 gil cattaneo <puntogil@libero.it> 3.3.6-1
761b5ed
- update to 3.3.6
761b5ed
05fb7fd
* Thu Jun 23 2016 gil cattaneo <puntogil@libero.it> 3.3.4-1
db2553a
- update to 3.3.4
db2553a
b592ce9
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.2-4
b592ce9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
b592ce9
0077ab3
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3.2-3
0077ab3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
0077ab3
0bef52f
* Wed Jun 03 2015 gil cattaneo <puntogil@libero.it> 3.3.2-2
0bef52f
- build fix for jmock 2.8.1
0bef52f
e6c8e77
* Wed Jun  3 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.3.2-1
e6c8e77
- Update to upstream version 3.3.2
e6c8e77
53702b1
* Sun Feb 01 2015 gil cattaneo <puntogil@libero.it> 3.2.1-3
53702b1
- introduce license macro
53702b1
774d661
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.1-2
774d661
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
774d661
481c4e2
* Mon Apr 21 2014 gil cattaneo <puntogil@libero.it> 3.2.1-1
481c4e2
- update to 3.2.1
481c4e2
481c4e2
* Wed Aug 14 2013 gil cattaneo <puntogil@libero.it> 3.2.0-1
481c4e2
- initial rpm