1 Summary: Gallery Remote
6 Group: Applications/Publishing
7 Source0: http://dl.sourceforge.net/gallery/GalleryRemote.%{version}.jar
8 # Source0-md5: 763af4f97120f5142222961f02e3943d
9 URL: http://gallery.menalto.com/modules.php?op=modload&name=phpWiki&file=index&pagename=Gallery%20Remote
10 BuildRequires: sed >= 4.0
13 Requires: ImageMagick-coder-tiff
14 Requires: ImageMagick-coder-jpeg2
15 Requires: ImageMagick-coder-jpeg
16 Requires: ImageMagick-coder-png
17 Requires: libjpeg-progs
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 %define _appdir %{_datadir}/%{name}
24 Gallery Remote is a client-side Java application that provides users
25 with a rich front-end to Gallery. This application makes it easier to
26 upload images to your Gallery.
30 unzip -qq Disk1/InstData/Resource1.zip
33 mv '$IA_PROJECT_DIR$' %{name}
37 mv gallery_docs/dist/grpackage html
38 rm -f LICENSE # GPL v2
39 rm -rf */{win32,macos} # wrong os
42 mv imagemagick/im.properties{.preinstalled,}
43 mv imagemagick/HOWTO HOWTO.imagemagick
44 rm imagemagick/LICENSE # imagemagick license
47 mv jpegtran/{linux/,}jpegtran.properties
48 rm jpegtran/linux/jpegtran # binary
49 rm jpegtran/jpegtran.preinstalled
51 sed -i -e '/^jp\.path/s/=.*/=jpegtran/' jpegtran/jpegtran.properties
54 $,,' jpegtran/jpegtran.properties
57 rm -rf $RPM_BUILD_ROOT
60 install -d $RPM_BUILD_ROOT{%{_appdir},%{_bindir}}
61 cp -a imagemagick img jpegtran lib $RPM_BUILD_ROOT%{_appdir}
62 cp -a defaults.properties rar*.* $RPM_BUILD_ROOT%{_appdir}
63 cp -a *.jar $RPM_BUILD_ROOT%{_appdir}
64 cat <<EOF > $RPM_BUILD_ROOT%{_bindir}/%{name}
66 exec java -cp %{_appdir}/GalleryRemote.jar com.gallery.GalleryRemote.GalleryRemote
70 rm -rf $RPM_BUILD_ROOT
73 %defattr(644,root,root,755)
74 %doc %{name}/{ChangeLog,README,HOWTO.imagemagick,html}
75 %attr(755,root,root) %{_bindir}/*