From a264efddfba71e015783bb0e6b059adbe0388a55 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Sun, 4 Sep 2005 18:52:49 +0000 Subject: [PATCH] - worksforme Changed files: gallery-remote.spec -> 1.3 --- gallery-remote.spec | 58 +++++++++++++++++++++++++++++++++++++++------ 1 file changed, 51 insertions(+), 7 deletions(-) diff --git a/gallery-remote.spec b/gallery-remote.spec index 1cec377..5994231 100644 --- a/gallery-remote.spec +++ b/gallery-remote.spec @@ -1,14 +1,21 @@ Summary: Gallery Remote Name: gallery-remote Version: 1.4.1 -Release: 0.1 -License: GPL +Release: 0.12 +License: GPL v2 Group: Applications/Publishing -Source0: http://dl.sourceforge.net/gallery/GalleryRemote.%{version}.Linux.NoVM.bin -# Source0-md5: 2185e22dcd01c6f037a4b3a9d5a4300e +Source0: http://dl.sourceforge.net/gallery/GalleryRemote.%{version}.jar +# Source0-md5: 763af4f97120f5142222961f02e3943d URL: http://gallery.menalto.com/modules.php?op=modload&name=phpWiki&file=index&pagename=Gallery%20Remote -BuildArch: noarch +BuildRequires: sed >= 4.0 Requires: jre >= 1.4 +Requires: ImageMagick +Requires: ImageMagick-coder-tiff +Requires: ImageMagick-coder-jpeg2 +Requires: ImageMagick-coder-jpeg +Requires: ImageMagick-coder-png +Requires: libjpeg-progs +BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define _appdir %{_datadir}/%{name} @@ -19,14 +26,51 @@ with a rich front-end to Gallery. This application makes it easier to upload images to your Gallery. %prep -%setup -q +%setup -q -c +unzip -qq Disk1/InstData/Resource1.zip + +# use better names +mv '$IA_PROJECT_DIR$' %{name} + +cd %{name} + +mv gallery_docs/dist/grpackage html +rm -f LICENSE # GPL v2 +rm -rf */{win32,macos} # wrong os + +# make it configured +mv imagemagick/im.properties{.preinstalled,} +mv imagemagick/HOWTO HOWTO.imagemagick +rm imagemagick/LICENSE # imagemagick license + +# and jpegtran too +mv jpegtran/{linux/,}jpegtran.properties +rm jpegtran/linux/jpegtran # binary +rm jpegtran/jpegtran.preinstalled +rm -rf jpegtran/linux +sed -i -e '/^jp\.path/s/=.*/=jpegtran/' jpegtran/jpegtran.properties +# undos +sed -i -e 's, +$,,' jpegtran/jpegtran.properties %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT%{_appdir} +cd %{name} + +install -d $RPM_BUILD_ROOT{%{_appdir},%{_bindir}} +cp -a imagemagick img jpegtran lib $RPM_BUILD_ROOT%{_appdir} +cp -a defaults.properties rar*.* $RPM_BUILD_ROOT%{_appdir} +cp -a *.jar $RPM_BUILD_ROOT%{_appdir} +cat < $RPM_BUILD_ROOT%{_bindir}/%{name} +#!/bin/sh +exec java -cp %{_appdir}/GalleryRemote.jar com.gallery.GalleryRemote.GalleryRemote +EOF %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) +%doc %{name}/{ChangeLog,README,HOWTO.imagemagick,html} +%attr(755,root,root) %{_bindir}/* +%{_appdir} -- 2.43.0