File extra166y.spec of Package extra166y

# spec file for package extra166y
# 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:           extra166y
Version:        1.7.0
Release:        0
Summary:        Concurrency JSR-166 - Collections supporting parallel operations
License:        SUSE-Public-Domain
Group:          Development/Libraries/Java
# generate-tarball.spec
Source0:        jsr166-%{version}.tar.xz
Source2:        extra166y-OSGi.bnd
Patch0:         extra166y-osgi-manifest.patch
BuildRequires:  ant
BuildRequires:  aqute-bnd >= 3.2.0-2
BuildRequires:  fdupes
BuildRequires:  javapackages-local
BuildRequires:  junit
BuildRequires:  xmvn-install
BuildRequires:  xmvn-resolve
BuildArch:      noarch

Implementation of Java collections supporting parallel operations using
Fork-Join concurrent framework provided by JSR-166.

%package javadoc
Summary:        Javadoc for %{name}
Group:          Documentation/HTML

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

%setup -q -n jsr166

# Use JVM jsr166
for s in $(find . -name "*.java");do
  sed -i "s|jsr166y.|java.util.concurrent.|" ${s}
sed -i '/configure-compiler, jsr166ycompile/d' build.xml

sed -i '/<compilerarg line="${build.args}"/d' build.xml

sed -i '/ootclasspath/d' build.xml

cp -p %{SOURCE2} extra166y.bnd
sed -i "s|@VERSION@|%{version}|" extra166y.bnd

rm -f src/test/extra166y/


%{mvn_file} org.codehaus.jsr166-mirror:%{name} %{name}
export CLASSPATH=$(build-classpath junit)
%ant \ \
  extra166yjar extra166ydist-docs
%{mvn_artifact} %{SOURCE1} build/%{name}lib/%{name}.jar

%mvn_install -J dist/%{name}docs
%fdupes -s %{buildroot}%{_javadocdir}

%files -f .mfiles
%doc src/main/intro.html src/main/readme

%files javadoc -f .mfiles-javadoc
%doc src/main/intro.html src/main/readme

openSUSE Build Service is sponsored by