Hello community,

here is the log from the commit of package test-interface for 
openSUSE:Leap:15.2 checked in at 2020-02-05 07:28:16
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/test-interface (Old)
 and      /work/SRC/openSUSE:Leap:15.2/.test-interface.new.26092 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "test-interface"

Wed Feb  5 07:28:16 2020 rev:1 rq:763299 version:1.0

Changes:
--------
New Changes file:

--- /dev/null   2019-12-19 10:12:34.003146842 +0100
+++ 
/work/SRC/openSUSE:Leap:15.2/.test-interface.new.26092/test-interface.changes   
    2020-02-05 07:28:17.222718100 +0100
@@ -0,0 +1,4 @@
+-------------------------------------------------------------------
+Wed Nov 13 06:08:36 UTC 2019 - Fridrich Strba <fst...@suse.com>
+
+- Initial packaging of test-interface 1.0

New:
----
  test-interface-1.0.pom
  test-interface.changes
  test-interface.spec
  v1.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ test-interface.spec ++++++
#
# spec file for package test-interface
#
# 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 https://bugs.opensuse.org/
#


%global test_interface_version 1.0
%global build_with_sbt 0
Name:           test-interface
Version:        %{test_interface_version}
Release:        0
Summary:        Uniform interface to Scala and Java test frameworks
License:        BSD-3-Clause
Group:          Development/Libraries/Java
URL:            https://github.com/sbt/test-interface
Source0:        
https://github.com/sbt/test-interface/archive/v%{test_interface_version}.tar.gz
BuildRequires:  fdupes
BuildRequires:  javapackages-local
BuildRequires:  xmvn-install
BuildRequires:  xmvn-resolve
BuildArch:      noarch
%if ! %{build_with_sbt}
Source1:        
http://central.maven.org/maven2/org/scala-sbt/%{name}/%{version}/%{name}-%{version}.pom
%endif
%if %{build_with_sbt}
BuildRequires:  sbt
%else
BuildRequires:  java-devel
%endif

%description

Uniform test interface to Scala/Java test frameworks (specs,
ScalaCheck, ScalaTest, JUnit and other)

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

%description javadoc
Javadoc for %{name}.

%prep
%setup -q
%{mvn_file} org.scala-sbt:test-interface %{name}

%if %{build_with_sbt}
sed -i -e 's/2[.]10[.]2/2.10.3/g' build.sbt
sed -i -e '/scalatest_2.10/d' build.sbt

sed -i -e 's/0[.]12[.]4/0.13.1/g' project/build.properties
rm project/plugins.sbt

cp -r %{_datadir}/java/sbt/ivy-local .
mkdir boot
%else # building without sbt

cp -p %{SOURCE1} pom.xml
# Remove unavailable test dep
%pom_remove_dep :scalatest_2.10

%endif

%build

%if %{build_with_sbt}
export SBT_BOOT_DIR=boot
export SBT_IVY_DIR=ivy-local
sbt package deliverLocal publishM2Configuration
%else # building without sbt
mkdir -p classes target/api
%javac -source 6 -target 6 -d classes $(find src/main/java -name "*.java")

(
cd classes
mkdir -p META-INF
cat > META-INF/MANIFEST.MF << 'EOF'
Manifest-Version: 1.0
Implementation-Vendor: org.scala-sbt
Implementation-Title: %{name}
Implementation-Version: %{version}
Implementation-Vendor-Id: org.scala-sbt
Specification-Vendor: org.scala-sbt
Specification-Title: %{name}
Specification-Version: %{version}
EOF
%jar -cMf ../target/%{name}.jar *
)

%{javadoc} -source 6 -d target/api -classpath $PWD/target/%{name}.jar $(find 
src/main/java -name "*.java")

cp pom.xml target/%{name}-%{version}.pom

%{mvn_artifact} target/%{name}-%{version}.pom target/%{name}.jar

%endif

%install

%mvn_install -J target/api
%fdupes -s %{buildroot}%{_javadocdir}

%files -f .mfiles
%license LICENSE
%doc README

%files javadoc -f .mfiles-javadoc
%license LICENSE

%changelog
++++++ test-interface-1.0.pom ++++++
<?xml version='1.0' encoding='UTF-8'?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns="http://maven.apache.org/POM/4.0.0";>
    <modelVersion>4.0.0</modelVersion>
    <groupId>org.scala-sbt</groupId>
    <artifactId>test-interface</artifactId>
    <packaging>jar</packaging>
    <description>Uniform test interface to Scala/Java test frameworks (specs, 
ScalaCheck, ScalaTest, JUnit and other)</description>
    <version>1.0</version>
    <name>test-interface</name>
    <organization>
        <name>org.scala-sbt</name>
    </organization>
    <url>http://www.scala-sbt.org</url>
    <licenses>
        <license>
            <name>BSD</name>
            <url>https://github.com/sbt/test-interface/blob/master/LICENSE</url>
            <distribution>repo</distribution>
        </license>
    </licenses>
    <scm>
        <url>https://github.com/sbt/test-interface</url>
    </scm>
    <developers>
        <developer>
            <id>harrah</id>
            <name>Mark Harrah</name>
        </developer>
        <developer>
            <id>josh</id>
            <name>Josh Cough</name>
        </developer>
        <developer>
            <id>bill</id>
            <name>Bill Venners</name>
        </developer>
        <developer>
            <id>cheeseng</id>
            <name>Chua Chee Seng</name>
        </developer>
    </developers>
    <dependencies>
        <dependency>
            <groupId>org.scalatest</groupId>
            <artifactId>scalatest_2.10</artifactId>
            <version>2.0.M6-SNAP24</version>
            <scope>test</scope>
        </dependency>
    </dependencies>
</project>

Reply via email to