File swtcalendar.spec of Package swtcalendar

# spec file for package swtcalendar
# Copyright (c) 2017 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

Name:           swtcalendar
Version:        0.5
Release:        0
Summary:        GUI date picker for Java using SWT
License:        MIT
Group:          Development/Languages/Java
BuildRequires:  ant
BuildRequires:  dos2unix
BuildRequires:  eclipse-swt
BuildRequires:  jpackage-utils
BuildRequires:  unzip
BuildArch:      noarch

SWTCalendar is a port of Kai Toedter's JCalendar to Eclipse's SWT.
It is a GUI date picker for Java using SWT as the GUI toolkit.
SWTCalendar was designed to be a flexible component so developer
can embed a date picker in their application or create their own
standalone date picker dialog.

%setup -q -n %{name}
dos2unix *.txt

export CLASSPATH=%{_libdir}/java/swt.jar

mkdir -p %{buildroot}%{_javadir}
install swtcalendar.jar %{buildroot}%{_javadir}

%doc MIT.txt README.txt