File disruptor.spec of Package disruptor

# spec file for package disruptor
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

Name:           disruptor
Version:        3.3.6
Release:        0
Summary:        Concurrent Programming Framework
License:        Apache-2.0
# see
Patch0:         disruptor-3.3.2-jmock.patch
BuildRequires:  maven-local fdupes
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.hamcrest:hamcrest-library)
BuildArch:      noarch

A High Performance Inter-Thread Messaging Library.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%setup -q
# Cleanup
find . -name "*.class" -print -delete
find . -name "*.jar" -type f -print -delete

%patch0 -p1

cp -p %{SOURCE1} pom.xml

# Add OSGi support
%pom_xpath_inject "pom:project" "<packaging>bundle</packaging>"
%pom_add_plugin org.apache.felix:maven-bundle-plugin:2.3.7 . '
    <Bundle-Vendor>LMAX Disruptor Development Team</Bundle-Vendor>

%{mvn_file} :%{name} %{name}


%{mvn_build} -f --

%fdupes -s %{buildroot}%{_javadocdir}

%files -f .mfiles
%license LICENCE.txt

%files javadoc -f .mfiles-javadoc
%license LICENCE.txt

openSUSE Build Service is sponsored by