LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File appframework.spec of Package appframework (Project Java:packages)

#
# spec file for package appframework
#
# Copyright (c) 2013 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 http://bugs.opensuse.org/
#


Name:           appframework
Version:        1.03
Release:        0
Summary:        Swing Application Framework
License:        LGPL-2.0+
Group:          Development/Libraries/Java
Url:            https://appframework.dev.java.net/
Source0:        https://appframework.dev.java.net/downloads/AppFramework-%{version}-src.tar.bz2
Patch0:         %{name}-%{version}-no-local-storage.diff
Patch1:         %{name}-%{version}-openjdk.diff
BuildRequires:  ant
BuildRequires:  ant-junit
BuildRequires:  ant-nodeps
BuildRequires:  java-devel
BuildRequires:  javapackages-tools
BuildRequires:  swing-layout >= 1.0.3
Requires:       java
Requires:       javapackages-tools
Requires:       swing-layout >= 1.0.3
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
The JSR-296 Swing Application Framework prototype implementation is a
small set of Java classes that simplify building desktop applications.



%package javadoc
Summary:        Swing Application Framework
Group:          Development/Libraries/Java

%description javadoc
The JSR-296 Swing Application Framework prototype implementation is a
small set of Java classes that simplify building desktop applications.



%prep
%setup -q -n AppFramework-%{version}
# remove all binary libs
find . -name "*.jar" -exec %{__rm} -f {} \;
%patch0 -b .sav
%patch1 -p1 -b .sav

%build
%{ant} -Dlibs.swing-layout.classpath=%{_javadir}/swing-layout.jar dist

%install
# jar
%{__install} -d -m 755 %{buildroot}%{_javadir}
%{__install} -m 644 dist/AppFramework-1.03.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
%{__ln_s} %{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
# javadoc
%{__install} -d -m 755 %{buildroot}%{_javadocdir}/%{name}-%{version}
%{__cp} -pr dist/javadoc/* %{buildroot}%{_javadocdir}/%{name}-%{version}

%files
%defattr(-,root,root,-)
%{_javadir}/*
%doc COPYING README

%files javadoc
%defattr(-,root,root,-)
%dir %{_javadocdir}/%{name}-%{version}
%{_javadocdir}/%{name}-%{version}/*

%changelog