SPECS: gallery-remote.spec - worksforme

glen glen at pld-linux.org
Sun Sep 4 20:52:54 CEST 2005


Author: glen                         Date: Sun Sep  4 18:52:54 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- worksforme

---- Files affected:
SPECS:
   gallery-remote.spec (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: SPECS/gallery-remote.spec
diff -u SPECS/gallery-remote.spec:1.2 SPECS/gallery-remote.spec:1.3
--- SPECS/gallery-remote.spec:1.2	Sun Sep  4 19:02:02 2005
+++ SPECS/gallery-remote.spec	Sun Sep  4 20:52:49 2005
@@ -2,14 +2,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}
@@ -20,17 +27,53 @@
 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 <<EOF > $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}
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -38,6 +81,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.3  2005/09/04 18:52:49  glen
+- worksforme
+
 Revision 1.2  2005/09/04 17:02:02  glen
 - md5
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/gallery-remote.spec?r1=1.2&r2=1.3&f=u




More information about the pld-cvs-commit mailing list