Name: MiniCopier Version: 0.5 Release: 1%{?dist} Summary: Graphical copy manager Group: Applications/File License: GPLv2+ URL: http://www.adriancourreges.com/projects/minicopier/ Source0: http://www.adriancourreges.com/projects/minicopier/releases/%{name}-source.tar BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: jpackage-utils BuildRequires: java-devel >= 1:1.6.0 BuildRequires: ant BuildRequires: desktop-file-utils BuildRequires: PgsLookAndFeel Requires: jpackage-utils Requires: java >= 1:1.6.0 Requires: PgsLookAndFeel Source1: MiniCopier.desktop #Patch0: remove classpath from manifest Patch0: %{name}-Manifest.txt.patch #Patch1: change configuration file path to ~/.MiniCopier Patch1: %{name}-Configuration.java.patch #Patch2: fix startup directory Patch2: %{name}-MiniCopier.sh.patch #Patch3: start the application with native GTK LookAndFeel by default Patch3: %{name}-configuration.ini.patch #Patch4: start the application centered on the screen Patch4: %{name}-MainFrame.java.patch #Patch5: fix the lib directory path where the jar required for the build is expected to be Patch5: %{name}-build.xml.patch %description MiniCopier is a graphical copy manager. It provides more comfort and control over files copy operations, than basic OS functions. Features * processing of the transfers one after the other * add new tranfers to the queue while a copy is already being processed * dynamic management of the queue of remaining transfers * pause a copy * skip current transfer to proceed to the next one * resume a copy at the exact point where it failed (no need to start over) * choose another name for the target if a file already exists * can follow or ignore symbolic links (Unix systems only) * set a default behaviour if target file already exists * storage of the failed transfers into a list %package javadoc Summary: Javadocs for %{name} Group: Documentation Requires: %{name} = %{version}-%{release} Requires: jpackage-utils BuildArch: noarch %description javadoc This package contains the API documentation for %{name}. %prep %setup -q -n Minicopier-%{version}(sources) %ant clean find -name '*.jar' -exec rm -f '{}' \; find -name '*.class' -exec rm -f '{}' \; %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 %patch5 -p1 %build %ant jar doc %install rm -rf %{buildroot} install -D -p -m 644 %{name}.jar %{buildroot}%{_javadir}/%{name}.jar install -dm 755 %{buildroot}%{_javadocdir}/%{name} cp -rf -p javadoc/* %{buildroot}%{_javadocdir}/%{name} install -D -p -m 644 class/img/icon.png %{buildroot}%{_datadir}/pixmaps/%{name}.png install -D -p -m 755 %{name}.sh %{buildroot}%{_bindir}/%{name} desktop-file-install \ --dir=%{buildroot}%{_datadir}/applications \ %{SOURCE1} %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc LICENSE README %{_bindir}/%{name} %{_datadir}/applications/%{name}.desktop %{_datadir}/pixmaps/%{name}.png %{_javadir}/%{name}.jar %files javadoc %defattr(-,root,root,-) %doc README %{_javadocdir}/%{name} %changelog * Sat Dec 05 2009 Hicham HAOUARI <hicham.haouari@gmail.com> 0.5-1 - New upstream release * Fri Aug 07 2009 Hicham HAOUARI <hicham.haouari@gmail.com> 0.4-3 - Removed version from the jar. - Spec cleanup. * Wed Jul 22 2009 Hicham HAOUARI <hicham.haouari@gmail.com> 0.4-2 - Removed PkgLookAndFeel.jar - Fixed the License tag - Added patch to center the main window on the screen. * Sun Jul 19 2009 Hicham HAOUARI <hicham.haouari@gmail.com> 0.4-1 - Initial package for Fedora.