Summary: Drag-and-drop support for Java URL: http://iharder.sourceforge.net/current/java/filedrop/ Name: filedrop License: Public Domain Group: Development/Libraries Version: 1.1 Release: 2%{?dist} BuildArch: noarch Source0: http://download.sourceforge.net/iharder/%{name}-%{version}.zip BuildRequires: java-devel >= 1:1.6.0 BuildRequires: jpackage-utils BuildRequires: dos2unix Requires: java >= 1:1.6.0 Requires: jpackage-utils %description FileDrop makes it easy to drag and drop files from the operating system to a Java program. Any java.awt.Component can be dropped onto, but only javax.swing.JComponents will indicate the drop event with a changed border. %prep %setup -q # fix line endings in source file dos2unix FileDrop.java # delete the supplied JAR file, we *must* build from source rm filedrop.jar %build javac FileDrop.java jar -cf %{name}.jar *.class %install export NO_BRP_CHECK_BYTECODE_VERSION=true install -dm 755 %{buildroot}%{_javadir}/ install -m 644 %{name}.jar %{buildroot}%{_javadir}/ %files %{_javadir}/%{name}.jar %doc index.html files.gif filedrop.gif Example.java %changelog * Sun Jun 24 2012 Eric Smith - 1.1-2 - Use install directly rather than by macro, per Jason Tibbitts' advice in package review bug (#834964). * Sun Jun 24 2012 Eric Smith - 1.1-1 - Initial version