forked from pool/appframework
94 lines
2.8 KiB
RPMSpec
94 lines
2.8 KiB
RPMSpec
#
|
|
# spec file for package appframework (Version 1.03)
|
|
#
|
|
# Copyright (c) 2009 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: 2
|
|
Summary: Swing Application Framework
|
|
License: LGPL v2.0 or later
|
|
Url: https://appframework.dev.java.net/
|
|
Group: Development/Libraries/Java
|
|
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-nodeps
|
|
BuildRequires: ant-junit
|
|
BuildRequires: java-devel
|
|
BuildRequires: jpackage-utils
|
|
BuildRequires: swing-layout >= 1.0.3
|
|
Requires: java
|
|
Requires: jpackage-utils
|
|
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
|
|
License: LGPL v2.0 or later
|
|
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}
|
|
|
|
%clean
|
|
%{__rm} -rf %{buildroot}
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%{_javadir}/*
|
|
%doc COPYING README
|
|
|
|
%files javadoc
|
|
%defattr(-,root,root,-)
|
|
%dir %{_javadocdir}/%{name}-%{version}
|
|
%{_javadocdir}/%{name}-%{version}/*
|
|
|
|
%changelog
|
|
* Tue May 19 2009 mvyskocil@suse.cz
|
|
- 'Initial SUSE packaging (From Fedora 11)'
|