File flexdock.spec of Package flexdock

# spec file for package flexdock
# Copyright (c) 2014 SUSE LINUX Products 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:           flexdock
Version:        1.2.4
Release:        0
Summary:        Swing windowing and docking framework
License:        MIT
Group:          Development/Libraries/Java
# PATCH-FIX-OPENSUSE flexdock-nojmf.patch
Patch1:         flexdock-nojmf.patch
# PATCH-FIX-OPENSUSE flexdock-build.patch
Patch2:         flexdock-build.patch

BuildRequires:  ant
BuildRequires:  java-devel
BuildRequires:  jgoodies-looks
BuildRequires:  jpackage-utils
BuildRequires:  skinlf
Requires:       jakarta-commons-logging
Requires:       java
Requires:       jgoodies-looks
Requires:       jpackage-utils
Requires:       skinlf
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

FlexDock is a Java docking framework for use in cross-platform Swing
applications. It offers features you'd expect in any desktop docking
framework such as:

* Tabbed and Split Layouts
* Drag-n-Drop capability (native drag rubber band painting on some platforms)
* Floating windows
* Collapsible Containers to Save Real Estate
* Layout Persistence

It is released using the MIT license.

%setup -q

%patch1 -p1
%patch2 -p1

# fix wrong-file-end-of-line-encoding
sed -i 's/\r$//' README

# remove build in jars
find . -name '*.jar' -type f -delete -print
build-jar-repository -s -p lib skinlf looks

#Override the build file's default hard-coded paths
echo "sdk.home=%{java_home}" >

#Remove the jmf-using demo files
rm src/java/demo/org/flexdock/demos/raw/jmf/
rm src/java/demo/org/flexdock/demos/raw/jmf/

%ant jar

# jars
install -Dm 644 build/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
ln -sf %{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar

%doc LICENSE.txt README release-notes.txt

openSUSE Build Service is sponsored by