File nachocalendar.spec of Package nachocalendar
#
# spec file for package nachocalendar (Version 0.23)
#
# Copyright (c) 2008 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/
#
# norootforbuild
Name: nachocalendar
Summary: A flexible Calendar component for Java
License: LGPL v2.1 or later
Version: 0.23
Release: 3
Url: http://nachocalendar.sourceforge.net
Group: Development/Languages/Java
Source0: %{name}-src-%{version}.tar.bz2
BuildRequires: jpackage-utils >= 1.7
BuildRequires: java-devel
BuildRequires: ant
Requires: jre >= 1.5.0
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This project aims to provide a flexible Calendar component to the Java
Platform.
Currently is under early development but can be used safely. It comes
with conventient factory classes, providing a fast and easy way to
start using them. See Instructions for more information.
You can also fully customize them, in a very similar way than a JTable.
Currently there are two customizations ready to use:
1. 1. Holidays: is used to display holidays with other color (red at
the moment). A tooltip is set to this day, so you get the name of
the holiday when the mouse is over
1. 2. Tasks: is used to relate tasks to dates. Dates with tasks assigned
are painted with other background (yellow right now). A tooltip whith
the task quantity for this date is shown also
Authors:
--------
Ignacio Merani imerani@yahoo.com.ar
%package javadoc
License: GPL v2 or later
Summary: A flexible Calendar component for Java
Group: Development/Languages/Java
%description javadoc
This project aims to provide a flexible Calendar component to the Java
Platform.
Currently is under early development but can be used safely. It comes
with conventient factory classes, providing a fast and easy way to
start using them. See Instructions for more information.
You can also fully customize them, in a very similar way than a JTable.
Currently there are two customizations ready to use:
1. 1. Holidays: is used to display holidays with other color (red at
the moment). A tooltip is set to this day, so you get the name of
the holiday when the mouse is over
1. 2. Tasks: is used to relate tasks to dates. Dates with tasks assigned
are painted with other background (yellow right now). A tooltip whith
the task quantity for this date is shown also
Authors:
--------
Ignacio Merani imerani@yahoo.com.ar
%package demo
License: GPL v2 or later
Summary: A flexible Calendar component for Java
Group: Development/Languages/Java
Requires: jpackage-utils >= 1.7.0
Requires: %{name} = %{version}
%description demo
This project aims to provide a flexible Calendar component to the Java
Platform.
Currently is under early development but can be used safely. It comes
with conventient factory classes, providing a fast and easy way to
start using them. See Instructions for more information.
You can also fully customize them, in a very similar way than a JTable.
Currently there are two customizations ready to use:
1. 1. Holidays: is used to display holidays with other color (red at
the moment). A tooltip is set to this day, so you get the name of
the holiday when the mouse is over
1. 2. Tasks: is used to relate tasks to dates. Dates with tasks assigned
are painted with other background (yellow right now). A tooltip whith
the task quantity for this date is shown also
Authors:
--------
Ignacio Merani imerani@yahoo.com.ar
%package manual
License: GPL v2 or later
Summary: A flexible Calendar component for Java
Group: Development/Languages/Java
%description manual
This project aims to provide a flexible Calendar component to the Java
Platform.
Currently is under early development but can be used safely. It comes
with conventient factory classes, providing a fast and easy way to
start using them. See Instructions for more information.
You can also fully customize them, in a very similar way than a JTable.
Currently there are two customizations ready to use:
1. 1. Holidays: is used to display holidays with other color (red at
the moment). A tooltip is set to this day, so you get the name of
the holiday when the mouse is over
1. 2. Tasks: is used to relate tasks to dates. Dates with tasks assigned
are painted with other background (yellow right now). A tooltip whith
the task quantity for this date is shown also
Authors:
--------
Ignacio Merani imerani@yahoo.com.ar
%prep
%setup -q -n %{name}-%{version}
%build
ant -Dant.build.javac.source=1.5 \
-Dant.build.javac.target=1.5 \
jar javadoc
%install
# jars
install -d -m 755 $RPM_BUILD_ROOT/%{_javadir}
install -m 644 lib/%{name}-%{version}.jar $RPM_BUILD_ROOT/%{_javadir}
(cd $RPM_BUILD_ROOT/%{_javadir}; for jar in *-%{version}*; do ln -sf ${jar} $(echo ${jar} | sed 's|-%{version}||g'); done)
# javadoc
install -d -m 755 $RPM_BUILD_ROOT/%{_javadocdir}/%{name}-%{version}/
cp -pr doc/* $RPM_BUILD_ROOT/%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} $RPM_BUILD_ROOT/%{_javadocdir}/%{name}
# demo
install -d -m 755 $RPM_BUILD_ROOT/%{_datadir}/%{name}
install -m 644 lib/%{name}-%{version}-demo.jar $RPM_BUILD_ROOT/%{_datadir}/%{name}
cat << -EOF > $RPM_BUILD_ROOT/%{_datadir}/%{name}/run.sh
#!/bin/sh
CLASSPATH=$(build-classpath %{name}):%{_datadir}/%{name}/%{name}-%{version}-demo.jar
MAIN_CLASS="net.sf.nachocalendar.demo.CalendarDemo"
run
-EOF
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc README.txt LICENSE.txt
%{_javadir}/%{name}*.jar
%files javadoc
%defattr(-,root,root)
%doc %{_javadocdir}/%{name}-%{version}
%{_javadocdir}/%{name}
%files demo
%defattr(755,root,root,755)
%{_datadir}/%{name}/run.sh
%defattr(-,root,root,-)
%doc LICENSE.txt
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/%{name}-%{version}-demo.jar
%files manual
%defattr(-,root,root)
%doc *.pdf LICENSE.txt *.txt resources/%{name}.*
%{_javadir}/%{name}*.jar
%changelog
* Tue Sep 09 2008 mvyskocil@suse.cz
- source=1.5 -target=1.5
* Mon Aug 18 2008 mvyskocil@suse.cz
- First release in SUSE (version 0.23)