1 Summary: Gallery Remote - client-side frontend to Gallery
2 Summary(pl.UTF-8): Gallery Remote - frontend do Gallery działający po stronie klienta
7 Group: Applications/Publishing
8 Source0: http://dl.sourceforge.net/gallery/GalleryRemote.%{version}.jar
9 # Source0-md5: 6043106f54f85380b1bbc06d8dd19d4f
11 Source2: %{name}.desktop
12 URL: http://gallery.menalto.com/modules.php?op=modload&name=phpWiki&file=index&pagename=Gallery%20Remote
13 BuildRequires: sed >= 4.0
15 Requires: ImageMagick-coder-jpeg
16 Requires: ImageMagick-coder-jpeg2
17 Requires: ImageMagick-coder-png
18 Requires: ImageMagick-coder-tiff
20 Requires: libjpeg-progs
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 %define _appdir %{_datadir}/%{name}
27 Gallery Remote is a client-side Java application that provides users
28 with a rich front-end to Gallery. This application makes it easier to
29 upload images to your Gallery.
31 %description -l pl.UTF-8
32 Gallery Remote to aplikacja w Javie działająca po stronie klienta
33 udostępniająca użytkownikom bogaty frontend do Gallery. Ta aplikacja
34 czyni łatwiejszym umieszczanie obrazków w Gallery.
38 install -d gallery_docs
39 unzip -qq -o Disk1/InstData/Resource1.zip
42 mv '$IA_PROJECT_DIR$' %{name}
46 mv gallery_docs/dist/grpackage html
47 rm -f LICENSE # GPL v2
48 rm -rf */{win32,macos} # wrong os
51 mv imagemagick/im.properties{.preinstalled,}
52 mv imagemagick/HOWTO HOWTO.imagemagick
53 rm imagemagick/LICENSE # imagemagick license
56 mv jpegtran/{linux/,}jpegtran.properties
57 rm jpegtran/linux/jpegtran # binary
58 rm jpegtran/jpegtran.preinstalled
60 sed -i -e '/^jp\.path/s/=.*/=jpegtran/' jpegtran/jpegtran.properties
62 sed -i -e 's,\r$,,' jpegtran/jpegtran.properties
65 rm -rf $RPM_BUILD_ROOT
68 install -d $RPM_BUILD_ROOT{%{_appdir},%{_bindir},%{_pixmapsdir},%{_desktopdir}}
69 cp -a imagemagick img jpegtran lib $RPM_BUILD_ROOT%{_appdir}
70 cp -a *.jar $RPM_BUILD_ROOT%{_appdir}
71 cat <<EOF > $RPM_BUILD_ROOT%{_bindir}/%{name}
74 exec java -cp GalleryRemote.jar com.gallery.GalleryRemote.GalleryRemote
76 install %{SOURCE1} $RPM_BUILD_ROOT%{_pixmapsdir}
77 install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
80 rm -rf $RPM_BUILD_ROOT
83 %defattr(644,root,root,755)
84 %doc %{name}/{ChangeLog,README,HOWTO.imagemagick,html}
85 %attr(755,root,root) %{_bindir}/*
87 %{_desktopdir}/*.desktop