Could you create another spec file and %use it?

This will make it easier to update versions, know the source license, source 
url etc.
You can do the mv/cp stuff in the SUNWgnome-img-editor.spec or gimp-hdr.spec 
%install section.

Damien

----- Original Message -----
From: C Wang <[email protected]>
Date: Thursday, July 10, 2008 8:07 am
Subject: [jds-review] Please review the patch to add hdrtools plugin to gimp
To: jds-review at opensolaris.org


> This patch added the hdrtools plugin to gimp plugins.
> 
> hdrtools enable the user to save and load the image to hdr format.
> Images with over 8bit dynamic range can be stored in hdr format, and
> hdrtools can display these images with gimp.
> 
> Chris
> 
> Index: base-specs/gimp.spec
> ===================================================================
> --- base-specs/gimp.spec      (revision 14495)
> +++ base-specs/gimp.spec      (working copy)
> @@ -25,6 +25,7 @@
>  %if %build_l10n
>  Source2:                 l10n-configure.sh
>  %endif
> +Source3:      
> http://nifelheim.dyndns.org/~cocidius/hdrtools/gimp-hdrtools-0.1.tar.bz2
>  # date:2003-07-17 owner:gman type:branding
>  Patch1:       gimp-01-menu-entry.diff
>  URL:          http://www.gimp.org
> @@ -97,6 +98,8 @@
>  bzcat %SOURCE1 | tar xf -
>  cd po-sun; make; cd ..
>  %endif
> +bzcat %SOURCE3 | tar -xf -
> +mv gimp-hdrtools-0.1 plug-ins
>  %patch1 -p1
>  
>  %build
> @@ -143,6 +146,9 @@
>           %{mmx_options}              \
>           %{print_options}
>  make munix=
> +cd plug-ins/gimp-hdrtools-0.1
> +make
> +cd ../..
>  
>  %install
>  make DESTDIR=$RPM_BUILD_ROOT install
> @@ -152,7 +158,7 @@
>  #rm $RPM_BUILD_ROOT%{_libdir}/gimp/%{subver_install}/python/lib*.la
>  rm $RPM_BUILD_ROOT%{_libdir}/%{name}/%{subver_install}/python/*.la
>  #rm $RPM_BUILD_ROOT%{_libdir}/%{name}/%{subver_install}/python/*.a
> -
> +cp plug-ins/gimp-hdrtools-0.1/hdrtools 
> $RPM_BUILD_ROOT%{_libdir}/gimp/%{subver_install}/plug-ins
>  %clean
>  rm -rf $RPM_BUILD_ROOT
>  

Reply via email to