2008-09-03 02:52:38 +00:00
|
|
|
#
|
2012-11-15 08:44:27 +00:00
|
|
|
# spec file for package swing-layout
|
2008-09-03 02:52:38 +00:00
|
|
|
#
|
2022-03-23 05:49:26 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2008-09-03 02:52:38 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2022-03-23 05:49:26 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2008-09-03 02:52:38 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: swing-layout
|
2014-07-11 14:13:43 +00:00
|
|
|
Version: 1.0.3
|
|
|
|
Release: 0
|
2008-09-03 02:52:38 +00:00
|
|
|
Summary: Natural layout for Swing panels
|
2022-03-23 05:49:26 +00:00
|
|
|
License: LGPL-2.1-or-later
|
2008-09-03 02:52:38 +00:00
|
|
|
Group: Development/Languages/Java
|
2022-03-23 05:49:26 +00:00
|
|
|
URL: https://swing-layout.dev.java.net/
|
2014-07-11 14:13:43 +00:00
|
|
|
Source0: %{name}-%{version}-src.tar.bz2
|
2008-09-03 02:52:38 +00:00
|
|
|
BuildRequires: ant
|
2017-09-19 10:08:33 +00:00
|
|
|
BuildRequires: fdupes
|
2022-03-23 05:49:26 +00:00
|
|
|
BuildRequires: java-devel >= 1.8
|
2017-09-19 10:08:33 +00:00
|
|
|
BuildRequires: javapackages-tools
|
2014-07-11 14:13:43 +00:00
|
|
|
BuildRequires: xml-commons-apis
|
|
|
|
BuildRequires: xml-commons-resolver
|
2022-03-23 05:49:26 +00:00
|
|
|
Requires: java >= 1.8
|
2017-09-19 10:08:33 +00:00
|
|
|
BuildArch: noarch
|
2008-09-03 02:52:38 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Swing Layout Extensions goal is to make it easy to create
|
|
|
|
professional cross platform layouts with Swing. This project has
|
|
|
|
an eye towards the needs of GUI builders, such as NetBeans. This
|
|
|
|
project consists of the following pieces: * Ability to get the
|
|
|
|
baseline for components.
|
|
|
|
|
|
|
|
* Ability to get the preferred gap between components.
|
|
|
|
|
|
|
|
A new LayoutManager that utilizes both of these concepts and is tuned
|
|
|
|
toward a free-form drag and drop layout model as can be provided by GUI
|
|
|
|
builders.
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
Summary: Natural layout for Swing panels
|
|
|
|
Group: Development/Languages/Java
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
Swing Layout Extensions goal is to make it easy to create
|
|
|
|
professional cross platform layouts with Swing. This project has
|
|
|
|
an eye towards the needs of GUI builders, such as NetBeans. This
|
|
|
|
project consists of the following pieces: * Ability to get the
|
|
|
|
baseline for components.
|
|
|
|
|
|
|
|
* Ability to get the preferred gap between components.
|
|
|
|
|
|
|
|
A new LayoutManager that utilizes both of these concepts and is tuned
|
|
|
|
toward a free-form drag and drop layout model as can be provided by GUI
|
|
|
|
builders.
|
|
|
|
|
|
|
|
%prep
|
2014-07-11 14:13:43 +00:00
|
|
|
%setup -q
|
2008-09-03 02:52:38 +00:00
|
|
|
# wrong end of line encoding
|
|
|
|
sed -i -e 's/.$//' releaseNotes.txt COPYING
|
|
|
|
|
|
|
|
%build
|
2022-03-23 05:49:26 +00:00
|
|
|
ant -Djavac.source=1.8 -Djavac.target=1.8 jar javadoc
|
2008-09-03 02:52:38 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
# jars
|
2014-07-11 14:13:43 +00:00
|
|
|
install -dm 755 %{buildroot}%{_javadir}
|
2022-03-23 05:49:26 +00:00
|
|
|
install -m 644 dist/%{name}.jar %{buildroot}%{_javadir}/%{name}.jar
|
2008-09-03 02:52:38 +00:00
|
|
|
# javadoc
|
2014-07-11 14:13:43 +00:00
|
|
|
install -dm 755 %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
cp -pr dist/javadoc/* \
|
|
|
|
%{buildroot}%{_javadocdir}/%{name}
|
2017-09-19 10:08:33 +00:00
|
|
|
%fdupes -s %{buildroot}%{_javadocdir}/%{name}
|
2008-09-03 02:52:38 +00:00
|
|
|
|
|
|
|
%files
|
2022-03-23 05:49:26 +00:00
|
|
|
%license COPYING
|
|
|
|
%doc releaseNotes.txt
|
|
|
|
%{_javadir}/%{name}.jar
|
2008-09-03 02:52:38 +00:00
|
|
|
|
|
|
|
%files javadoc
|
|
|
|
%doc %{_javadocdir}/%{name}
|
|
|
|
|
|
|
|
%changelog
|