2007-12-14 simon.zheng <[email protected]>
authorsimonzheng
Fri, 14 Dec 2007 10:05:30 +0000
changeset 722 bbe11876aec0
parent 721 27d4a80b4537
child 723 c73db1695a69
2007-12-14 simon.zheng <[email protected]> * SFEbabl.spec: * base-specs/babl.spec: * patches/babl-01-build.diff: Add this because gegl depends on it. * SFEgegl.spec: * base-specs/gegl.spec: * patches/gegl-01-build.diff: Add this, because latest gnome-scan depends on it. * SFEgnome-scan.spec: * base-specs/gnome-scan.spec: Rename SFEgnomescan to SFEgnome-scan. Add dependency on gegl library. * base-specs/xsane.spec: Bump to 0.995.
ChangeLog
SFEbabl.spec
SFEgegl.spec
SFEgnome-scan.spec
SFEgnomescan.spec
base-specs/babl.spec
base-specs/gegl.spec
base-specs/gnome-scan.spec
base-specs/gnomescan.spec
base-specs/xsane.spec
patches/babl-01-build.diff
patches/gegl-01-build.diff
--- a/ChangeLog	Fri Dec 14 03:07:51 2007 +0000
+++ b/ChangeLog	Fri Dec 14 10:05:30 2007 +0000
@@ -1,3 +1,20 @@
+2007-12-14  simon.zheng  <[email protected]>
+
+	* SFEbabl.spec:
+	* base-specs/babl.spec:
+	* patches/babl-01-build.diff:
+	  Add this because gegl depends on it.
+	* SFEgegl.spec:
+	* base-specs/gegl.spec:
+	* patches/gegl-01-build.diff:
+	  Add this, because latest gnome-scan depends on it.
+	* SFEgnome-scan.spec:
+	* base-specs/gnome-scan.spec:
+	  Rename SFEgnomescan to SFEgnome-scan.
+	  Add dependency on gegl library.
+	* base-specs/xsane.spec:
+	  Bump to 0.995.
+
 2007-12-14  Halton Huo <[email protected]>
 
 	* base-specs/gtk-vnc.spec: Bump to 0.3.1
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SFEbabl.spec	Fri Dec 14 10:05:30 2007 +0000
@@ -0,0 +1,82 @@
+#
+# spec file for package SFEbabl
+#
+# includes module(s): babl
+#
+%include Solaris.inc
+%use babl = babl.spec
+
+Name:                    SFEbabl
+Summary:                 Babl is a dynamic, any to any, pixel format conversion library.
+Version:                 %{default_pkg_version}
+SUNW_BaseDir:            %{_basedir}
+BuildRoot:               %{_tmppath}/%{name}-%{version}-build
+
+%include default-depend.inc
+Requires:                SUNWgnome-libs
+BuildRequires:           SUNWgnome-libs-devel
+
+%package devel
+Summary:                 %{summary} - development files
+SUNW_BaseDir:            %{_basedir}
+%include default-depend.inc
+Requires: %name
+Requires: SUNWgnome-libs-devel
+
+%if %build_l10n
+%package l10n
+Summary:                 %{summary} - l10n files
+SUNW_BaseDir:            %{_basedir}
+%include default-depend.inc
+Requires:                %{name}
+%endif
+
+%prep
+rm -rf %name-%version
+mkdir %name-%version
+%babl.prep -d %name-%version
+cd %{_builddir}/%name-%version
+
+%build
+%babl.build -d %name-%version
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%babl.install -d %name-%version
+find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
+find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
+
+%if %build_l10n
+%else
+# REMOVE l10n FILES
+rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%dir %attr (0755, root, bin) %{_libdir}
+%{_libdir}/lib*.so*
+%dir %attr (0755, root, bin) %{_libdir}/babl-0.0
+%{_libdir}/babl-0.0/*.so*
+
+%files devel
+%defattr (-, root, bin)
+%dir %attr (0755, root, bin) %{_includedir}
+%dir %attr (0755, root, bin) %{_includedir}/babl-0.0
+%dir %attr (0755, root, bin) %{_includedir}/babl-0.0/babl
+%{_includedir}/babl-0.0/babl/*
+%dir %attr (0755, root, other) %{_libdir}/pkgconfig
+%{_libdir}/pkgconfig/*
+
+%if %build_l10n
+%files l10n
+%defattr (-, root, bin)
+%dir %attr (0755, root, sys) %{_datadir}
+#%attr (-, root, other) %{_datadir}/locale
+%endif
+
+%changelog
+* Fri Dec 14 2007 - [email protected]
+- Create
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SFEgegl.spec	Fri Dec 14 10:05:30 2007 +0000
@@ -0,0 +1,97 @@
+#
+# spec file for package SFEgegl
+#
+# includes module(s): gegl
+#
+%include Solaris.inc
+%use gegl = gegl.spec
+
+Name:                    SFEgegl
+Summary:                 GEGL (Generic Graphics Library) is a graph based image processing framework.
+Version:                 %{default_pkg_version}
+SUNW_BaseDir:            %{_basedir}
+BuildRoot:               %{_tmppath}/%{name}-%{version}-build
+
+%include default-depend.inc
+Requires:                SUNWgnome-libs
+BuildRequires:           SUNWgnome-libs-devel
+Requires:		 SFEbabl
+BuildRequires:           SFEbabl-devel
+
+%package devel
+Summary:                 %{summary} - development files
+SUNW_BaseDir:            %{_basedir}
+%include default-depend.inc
+Requires: %name
+Requires: SUNWgnome-libs-devel
+
+%if %build_l10n
+%package l10n
+Summary:                 %{summary} - l10n files
+SUNW_BaseDir:            %{_basedir}
+%include default-depend.inc
+Requires:                %{name}
+%endif
+
+%prep
+rm -rf %name-%version
+mkdir %name-%version
+%gegl.prep -d %name-%version
+cd %{_builddir}/%name-%version
+
+%build
+%gegl.build -d %name-%version
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%gegl.install -d %name-%version
+find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
+find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
+
+%if %build_l10n
+%else
+# REMOVE l10n FILES
+rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr (-, root, bin)
+%dir %attr (0755, root, bin) %{_bindir}
+%{_bindir}/*
+%dir %attr (0755, root, bin) %{_libdir}
+%{_libdir}/lib*.so*
+%dir %attr (0755, root, bin) %{_libdir}/gegl-1.0
+%{_libdir}/gegl-1.0/*.so*
+
+%files devel
+%defattr (-, root, bin)
+%dir %attr (0755, root, bin) %{_includedir}
+%dir %attr (0755, root, bin) %{_includedir}/gegl-1.0
+%{_includedir}/gegl-1.0/*.h
+%dir %attr (0755, root, bin) %{_includedir}/gegl-1.0/gegl
+%{_includedir}/gegl-1.0/gegl/*.h
+%dir %attr (0755, root, bin) %{_includedir}/gegl-1.0/gegl/buffer
+%{_includedir}/gegl-1.0/gegl/buffer/*.h
+%dir %attr (0755, root, bin) %{_includedir}/gegl-1.0/gegl/property-types
+%{_includedir}/gegl-1.0/gegl/property-types/*.h
+%dir %attr (0755, root, other) %{_libdir}/pkgconfig
+%{_libdir}/pkgconfig/*
+%dir %attr (0755, root, sys) %dir %{_datadir}
+%dir %attr (0755, root, bin) %{_datadir}/gtk-doc
+%dir %attr (0755, root, bin) %{_datadir}/gtk-doc/html
+%dir %attr (0755, root, bin) %{_datadir}/gtk-doc/html/gegl
+%{_datadir}/gtk-doc/html/gegl/*
+
+%if %build_l10n
+%files l10n
+%defattr (-, root, bin)
+%dir %attr (0755, root, sys) %{_datadir}
+#%attr (-, root, other) %{_datadir}/locale
+%endif
+
+%changelog
+* Fri Dec 14 2007 - [email protected]
+- Create
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SFEgnome-scan.spec	Fri Dec 14 10:05:30 2007 +0000
@@ -0,0 +1,106 @@
+#
+# spec file for package SFEgnome-scan
+#
+# includes module(s): gnome-scan
+#
+%include Solaris.inc
+%use gs = gnome-scan.spec
+
+Name:                    SFEgnome-scan
+Summary:                 Scanner client for the GNOME desktop
+Version:                 %{default_pkg_version}
+SUNW_BaseDir:            %{_basedir}
+BuildRoot:               %{_tmppath}/%{name}-%{version}-build
+
+%include default-depend.inc
+Requires:                SUNWgnome-libs
+BuildRequires:           SUNWgnome-libs-devel
+Requires:                SFEsane-backends
+BuildRequires:           SFEsane-backends-devel
+Requires:		 SFEgegl
+BuildRequires:		 SFEgegl-devel
+
+%package devel
+Summary:                 %{summary} - development files
+SUNW_BaseDir:            %{_basedir}
+%include default-depend.inc
+Requires: %name
+Requires: SUNWgnome-libs-devel
+Requires: SFEsane-backends-devel
+
+%if %build_l10n
+%package l10n
+Summary:                 %{summary} - l10n files
+SUNW_BaseDir:            %{_basedir}
+%include default-depend.inc
+Requires:                %{name}
+%endif
+
+%prep
+rm -rf %name-%version
+mkdir %name-%version
+%gs.prep -d %name-%version
+cd %{_builddir}/%name-%version
+
+%build
+%gs.build -d %name-%version
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%gs.install -d %name-%version
+find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
+find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
+
+%if %build_l10n
+%else
+# REMOVE l10n FILES
+rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr (-, root, bin)
+%dir %attr (0755, root, bin) %{_bindir}
+%{_bindir}/*
+%dir %attr (0755, root, bin) %{_libdir}
+%{_libdir}/lib*.so*
+%dir %attr (0755, root, other) %{_libdir}/pkgconfig
+%{_libdir}/pkgconfig/*
+%{_libdir}/gimp
+%dir %attr (0755, root, sys) %{_datadir}
+%dir %attr (0755, root, other) %{_datadir}/pixmaps
+%{_datadir}/pixmaps/*
+%dir %attr (0755, root, other) %{_datadir}/applications
+%{_datadir}/applications/*
+
+%files devel
+%defattr (-, root, bin)
+%dir %attr (0755, root, bin) %{_includedir}
+%{_includedir}/*
+%dir %attr(0755, root, sys) %{_datadir}
+%{_datadir}/gtk-doc
+
+%if %build_l10n
+%files l10n
+%defattr (-, root, bin)
+%dir %attr (0755, root, sys) %{_datadir}
+#%attr (-, root, other) %{_datadir}/locale
+%endif
+
+%changelog
+* Fri Dec 14 2007 - [email protected]
+- Rename SFEgnomescan.spec as SFEgnome-scan.spec.
+  Add dependency on SFEgegl.
+
+* Tue Mar 20 2007 - [email protected]
+- Split into 2 files, SFEgnomescan.spec and
+  linux-specs/gnomescane.spec
+
+* Wed Mar  1 2007 - [email protected]
+- Bump to 0.4.0.4.
+- Rework patch gnomescan-01-build.diff.
+
+* Wed Nov  8 2006 - [email protected]
+- Create
--- a/SFEgnomescan.spec	Fri Dec 14 03:07:51 2007 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,100 +0,0 @@
-#
-# spec file for package SFEgnomescan
-#
-# includes module(s): gnomescan
-#
-%include Solaris.inc
-%use gnomescan = gnomescan.spec
-
-Name:                    SFEgnomescan
-Summary:                 Scanner client for the GNOME desktop
-Version:                 %{default_pkg_version}
-SUNW_BaseDir:            %{_basedir}
-BuildRoot:               %{_tmppath}/%{name}-%{version}-build
-
-%include default-depend.inc
-Requires:                SUNWgnome-libs
-BuildRequires:           SUNWgnome-libs-devel
-Requires:                SFEsane-backends
-BuildRequires:           SFEsane-backends-devel
-
-%package devel
-Summary:                 %{summary} - development files
-SUNW_BaseDir:            %{_basedir}
-%include default-depend.inc
-Requires: %name
-Requires: SUNWgnome-libs-devel
-Requires: SFEsane-backends-devel
-
-%if %build_l10n
-%package l10n
-Summary:                 %{summary} - l10n files
-SUNW_BaseDir:            %{_basedir}
-%include default-depend.inc
-Requires:                %{name}
-%endif
-
-%prep
-rm -rf %name-%version
-mkdir %name-%version
-%gnomescan.prep -d %name-%version
-cd %{_builddir}/%name-%version
-
-%build
-%gnomescan.build -d %name-%version
-
-%install
-rm -rf $RPM_BUILD_ROOT
-%gnomescan.install -d %name-%version
-find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
-find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
-
-%if %build_l10n
-%else
-# REMOVE l10n FILES
-rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
-%endif
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%files
-%defattr (-, root, bin)
-%dir %attr (0755, root, bin) %{_bindir}
-%{_bindir}/*
-%dir %attr (0755, root, bin) %{_libdir}
-%{_libdir}/lib*.so*
-%dir %attr (0755, root, other) %{_libdir}/pkgconfig
-%{_libdir}/pkgconfig/*
-%{_libdir}/gimp
-%dir %attr (0755, root, sys) %{_datadir}
-%dir %attr (0755, root, other) %{_datadir}/pixmaps
-%{_datadir}/pixmaps/*
-%dir %attr (0755, root, other) %{_datadir}/applications
-%{_datadir}/applications/*
-
-%files devel
-%defattr (-, root, bin)
-%dir %attr (0755, root, bin) %{_includedir}
-%{_includedir}/*
-%dir %attr(0755, root, sys) %{_datadir}
-%{_datadir}/gtk-doc
-
-%if %build_l10n
-%files l10n
-%defattr (-, root, bin)
-%dir %attr (0755, root, sys) %{_datadir}
-#%attr (-, root, other) %{_datadir}/locale
-%endif
-
-%changelog
-* Tue Mar 20 2007 - [email protected]
-- Split into 2 files, SFEgnomescan.spec and
-  linux-specs/gnomescane.spec
-
-* Wed Mar  1 2007 - [email protected]
-- Bump to 0.4.0.4.
-- Rework patch gnomescan-01-build.diff.
-
-* Wed Nov  8 2006 - [email protected]
-- Create
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/base-specs/babl.spec	Fri Dec 14 10:05:30 2007 +0000
@@ -0,0 +1,73 @@
+#
+# spec file for package babl
+#
+#
+Name:         babl
+License:      LGPL
+Group:        Applications/Multimedia
+Version:      0.0.16
+Release:      1
+Distribution: Java Desktop System
+Vendor:       Sun Microsystems, Inc.
+Summary:      Babl is a dynamic, any to any, pixel format conversion library.
+Source:	      ftp://ftp.gtk.org/pub/babl/0.0/%{name}-%{version}.tar.bz2
+URL:          http://www.gegl.org/babl/
+Patch1:       babl-01-build.diff
+
+%package devel
+Summary:      %{summary} - development files
+Group:        System/GUI/GNOME
+Requires:     %name 
+
+%prep
+%setup -q
+%patch1 -p0
+
+%build
+%ifos linux
+if [ -x /usr/bin/getconf ]; then
+  CPUS=`getconf _NPROCESSORS_ONLN`
+fi
+%else
+  CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
+%endif
+if test "x$CPUS" = "x" -o $CPUS = 0; then
+  CPUS=1
+fi
+
+aclocal
+libtoolize --force
+glib-gettextize --force
+autoconf -f
+automake
+./configure --prefix=%{_prefix}			\
+	    --libexecdir=%{_libexecdir}         \
+            --sysconfdir=%{_sysconfdir}         \
+	    --mandir=%{_mandir}                 \
+	    --datadir=%{_datadir}               \
+            --infodir=%{_datadir}/info
+	    		
+make -j$CPUS
+
+%install
+rm -rf $RPM_BUILD_ROOT
+rm -rf $RPM_BUILD_ROOT%{_libdir}/*.la
+make install DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr (-, root, root)
+%{_libdir}/lib*.so*
+%{_libdir}/babl-0.0/*.so*
+%{_libdir}/pkgconfig/*
+
+%files devel
+%defattr (-, root, root)
+%{_includedir}/babl-0.0/babl/*
+
+%changelog
+* Fri Dec 14 2007 - [email protected]
+- Initial version for pkgbuild.
+  Add a patch babl-01-build.diff.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/base-specs/gegl.spec	Fri Dec 14 10:05:30 2007 +0000
@@ -0,0 +1,76 @@
+#
+# spec file for package gegl
+#
+#
+Name:         gegl
+License:      LGPL
+Group:        Applications/Multimedia
+Version:      0.0.14
+Release:      1
+Distribution: Java Desktop System
+Vendor:       Sun Microsystems, Inc.
+Summary:      GEGL (Generic Graphics Library) is a graph based image processing framework.
+Source:	      ftp://ftp.gimp.org/pub/gegl/0.0/%{name}-%{version}.tar.bz2
+URL:          http://www.gegl.org/
+Patch1:	      gegl-01-build.diff
+
+%package devel
+Summary:      %{summary} - development files
+Group:        System/GUI/GNOME
+Requires:     %name 
+
+%prep
+%setup -q
+%patch1 -p0
+
+%build
+%ifos linux
+if [ -x /usr/bin/getconf ]; then
+  CPUS=`getconf _NPROCESSORS_ONLN`
+fi
+%else
+  CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
+%endif
+if test "x$CPUS" = "x" -o $CPUS = 0; then
+  CPUS=1
+fi
+
+aclocal
+libtoolize --force
+glib-gettextize --force
+autoconf -f
+automake
+./configure --prefix=%{_prefix}			\
+	    --libexecdir=%{_libexecdir}         \
+            --sysconfdir=%{_sysconfdir}         \
+	    --mandir=%{_mandir}                 \
+	    --datadir=%{_datadir}               \
+            --infodir=%{_datadir}/info
+	    		
+make -j$CPUS
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr (-, root, root)
+%{_bindir}/*
+%{_libdir}/lib*.so*
+%{_libdir}/pkgconfig/*
+%{_libdir}/gimp
+%{_datadir}/pixmaps/*
+%{_datadir}/applications/*
+
+%files devel
+%defattr (-, root, root)
+%{_includedir}/*
+%{_datadir}/gtk-doc
+
+%changelog
+* Fri Dec 14 2007 - [email protected]
+- Initial version for pkgbuild.
+  Add a patch gegl-01-build.diff.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/base-specs/gnome-scan.spec	Fri Dec 14 10:05:30 2007 +0000
@@ -0,0 +1,78 @@
+#
+# spec file for package gnomescan
+#
+#
+Name:         gnome-scan
+License:      GPL
+Group:        Applications/Multimedia
+Version:      0.5.2
+Release:      1
+Distribution: Java Desktop System
+Vendor:       Sun Microsystems, Inc.
+Summary:      gnomescan - scanner client for the GNOME desktop
+Source:	      http://download.gna.org/gnomescan/gnome-scan-%{version}.tar.gz
+URL:          http://www.gnome.org/projects/gnome-scan/index
+# date:2007-02-25 owner:xz159989 type:feature
+Patch1:       gnomescan-01-build.diff
+
+%package devel
+Summary:                 %{summary} - development files
+Group:        System/GUI/GNOME
+Requires:     %name 
+
+%prep
+%setup -q
+#%patch1 -p1
+
+%build
+%ifos linux
+if [ -x /usr/bin/getconf ]; then
+  CPUS=`getconf _NPROCESSORS_ONLN`
+fi
+%else
+  CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
+%endif
+if test "x$CPUS" = "x" -o $CPUS = 0; then
+  CPUS=1
+fi
+
+aclocal
+libtoolize --force
+glib-gettextize --force
+autoconf -f
+./configure --prefix=%{_prefix}			\
+	    --libexecdir=%{_libexecdir}         \
+            --sysconfdir=%{_sysconfdir}         \
+	    --mandir=%{_mandir}                 \
+	    --datadir=%{_datadir}               \
+            --infodir=%{_datadir}/info
+	    		
+make -j$CPUS
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr (-, root, root)
+%{_bindir}/*
+%{_libdir}/lib*.so*
+%{_libdir}/pkgconfig/*
+%{_libdir}/gimp
+%{_datadir}/pixmaps/*
+%{_datadir}/applications/*
+
+%files devel
+%defattr (-, root, root)
+%{_includedir}/*
+%{_datadir}/gtk-doc
+
+%changelog
+* Sat Nov 17 2007 - [email protected]
+- Bump to 0.5.2. Correct module name (gnome-scan) and update url. Disable
+  obsolete patch, 01-build.
+* Tue Mar 20 2007 - [email protected]
+- initial version for pkgbuild
--- a/base-specs/gnomescan.spec	Fri Dec 14 03:07:51 2007 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,78 +0,0 @@
-#
-# spec file for package gnomescan
-#
-#
-Name:         gnome-scan
-License:      GPL
-Group:        Applications/Multimedia
-Version:      0.5.2
-Release:      1
-Distribution: Java Desktop System
-Vendor:       Sun Microsystems, Inc.
-Summary:      gnomescan - scanner client for the GNOME desktop
-Source:	      http://download.gna.org/gnomescan/gnome-scan-%{version}.tar.gz
-URL:          http://www.gnome.org/projects/gnome-scan/index
-# date:2007-02-25 owner:xz159989 type:feature
-Patch1:       gnomescan-01-build.diff
-
-%package devel
-Summary:                 %{summary} - development files
-Group:        System/GUI/GNOME
-Requires:     %name 
-
-%prep
-%setup -q
-#%patch1 -p1
-
-%build
-%ifos linux
-if [ -x /usr/bin/getconf ]; then
-  CPUS=`getconf _NPROCESSORS_ONLN`
-fi
-%else
-  CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
-%endif
-if test "x$CPUS" = "x" -o $CPUS = 0; then
-  CPUS=1
-fi
-
-aclocal
-libtoolize --force
-glib-gettextize --force
-autoconf -f
-./configure --prefix=%{_prefix}			\
-	    --libexecdir=%{_libexecdir}         \
-            --sysconfdir=%{_sysconfdir}         \
-	    --mandir=%{_mandir}                 \
-	    --datadir=%{_datadir}               \
-            --infodir=%{_datadir}/info
-	    		
-make -j$CPUS
-
-%install
-rm -rf $RPM_BUILD_ROOT
-make install DESTDIR=$RPM_BUILD_ROOT
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%files
-%defattr (-, root, root)
-%{_bindir}/*
-%{_libdir}/lib*.so*
-%{_libdir}/pkgconfig/*
-%{_libdir}/gimp
-%{_datadir}/pixmaps/*
-%{_datadir}/applications/*
-
-%files devel
-%defattr (-, root, root)
-%{_includedir}/*
-%{_datadir}/gtk-doc
-
-%changelog
-* Sat Nov 17 2007 - [email protected]
-- Bump to 0.5.2. Correct module name (gnome-scan) and update url. Disable
-  obsolete patch, 01-build.
-* Tue Mar 20 2007 - [email protected]
-- initial version for pkgbuild
--- a/base-specs/xsane.spec	Fri Dec 14 03:07:51 2007 +0000
+++ b/base-specs/xsane.spec	Fri Dec 14 10:05:30 2007 +0000
@@ -4,7 +4,7 @@
 Name:         xsane
 License:      GPL
 Group:        Applications/Multimedia
-Version:      0.994
+Version:      0.995
 Release:      1
 Distribution: Java Desktop System
 Vendor:       Sun Microsystems, Inc.
@@ -72,5 +72,8 @@
 %{_mandir}/*/*
 
 %changelog
+* Thu Dec 13 2007 Simon Zheng <[email protected]>
+- Bump to version 0.995.
+
 * Tue Mar 20 2007 Simon Zheng <[email protected]>
 - initial version for pkgbuild 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/babl-01-build.diff	Fri Dec 14 10:05:30 2007 +0000
@@ -0,0 +1,21 @@
+--- extensions/Makefile.am.org	2007-12-13 16:33:40.052124000 +0800
++++ extensions/Makefile.am	2007-12-13 16:33:52.198265000 +0800
+@@ -15,7 +15,7 @@
+ 
+ CFLAGS  += -I $(top_srcdir)/babl -I $(top_srcdir)/extensions -fPIC
+ 
+-LDFLAGS += -shared
++LDFLAGS += -G
+ 
+ if OS_WIN32
+ LDADD    = $(no-undefined) $(libbabldlla) $(MATH_LIB)
+--- docs/Makefile.am.org	2007-12-13 17:03:14.937150000 +0800
++++ docs/Makefile.am	2007-12-13 17:03:26.899423000 +0800
+@@ -13,7 +13,6 @@
+ #
+ #
+ HTML_FILES = index-static.html 	\
+-	     index.html		\
+ 	     BablFishPath.html
+ 
+ EXTRA_DIST= 			\
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/gegl-01-build.diff	Fri Dec 14 10:05:30 2007 +0000
@@ -0,0 +1,107 @@
+--- gegl/buffer/gegl-provider.c.org	2007-12-13 17:51:26.520649000 +0800
++++ gegl/buffer/gegl-provider.c	2007-12-13 17:51:46.914633000 +0800
+@@ -27,7 +27,7 @@
+           gint           y,
+           gint           z)
+ {
+-  g_warning ("implementationless %s called", __FUNCTION__);
++  g_warning ("implementationless %s called", G_GNUC_FUNCTION);
+   return NULL;
+ }
+ 
+--- gegl/graph/gegl-node.c.org	2007-12-13 17:52:51.951240000 +0800
++++ gegl/graph/gegl-node.c	2007-12-13 17:53:22.372993000 +0800
+@@ -1596,7 +1596,7 @@
+ 
+   if (!node)
+     {
+-      g_warning ("%s node==NULL", __FUNCTION__);
++      g_warning ("%s node==NULL", G_GNUC_FUNCTION);
+       return 0;
+     }
+ 
+@@ -1604,7 +1604,7 @@
+ 
+   if (!pad)
+     {
+-      g_warning ("%s: no such pad %s for %s", __FUNCTION__, output_pad, gegl_node_get_debug_name (node));
++      g_warning ("%s: no such pad %s for %s", G_GNUC_FUNCTION, output_pad, gegl_node_get_debug_name (node));
+       return 0;
+     }
+ 
+--- operations/Makefile-operations.am.org	2007-12-13 18:02:23.244010000 +0800
++++ operations/Makefile-operations.am	2007-12-13 18:02:37.110018000 +0800
+@@ -14,7 +14,7 @@
+ 
+ CFLAGS  += @DEP_CFLAGS@ @BABL_CFLAGS@ @CPPFLAGS@ \
+            -I$(srcdir) -I$(top_srcdir) -I$(top_srcdir)/gegl -I$(top_srcdir)/gegl/buffer -I. -fPIC
+-LDFLAGS += -shared $(no_undefined)
++LDFLAGS += -G $(no_undefined)
+ 
+ LDADD    = @DEP_LIBS@ @BABL_LIBS@ $(libgegldlla)
+ 
+--- ./gegl/gegl-utils.h.org	2007-12-13 18:13:05.399141000 +0800
++++ ./gegl/gegl-utils.h	2007-12-13 18:21:34.055958000 +0800
+@@ -73,8 +73,8 @@
+ 
+ #define INT_MULT(a,b,t)  ((t) = (a) * (b) + 0x80, ((((t) >> 8) + (t)) >> 8))
+ 
+-inline gint _gegl_float_epsilon_zero  (float     value);
+-inline gint _gegl_float_epsilon_equal (float     v1,
++gint _gegl_float_epsilon_zero  (float     value);
++gint _gegl_float_epsilon_equal (float     v1,
+                                        float     v2);
+ 
+ 
+--- ./gegl/gegl-utils.c.org	2007-12-13 18:13:13.871133000 +0800
++++ ./gegl/gegl-utils.c	2007-12-13 18:21:23.184055000 +0800
+@@ -46,13 +46,13 @@
+                        va_list         args);
+ 
+ 
+-inline gint
++gint
+ _gegl_float_epsilon_zero (float value)
+ {
+   return value > -GEGL_FLOAT_EPSILON && value < GEGL_FLOAT_EPSILON;
+ }
+ 
+-inline gint
++gint
+ _gegl_float_epsilon_equal (float v1, float v2)
+ {
+   register float diff = v1 - v2;
+--- ./bin/editor.c.org	2007-12-13 18:56:40.556212000 +0800
++++ ./bin/editor.c	2007-12-13 18:57:37.297014000 +0800
+@@ -35,6 +35,10 @@
+ 
+ #define  KEY_ZOOM_FACTOR  2.0
+ 
++GtkWidget * StockIcon (const gchar *id, GtkIconSize size, GtkWidget *widget)
++{
++        return gtk_image_new_from_stock (id, size);
++}
+ 
+ static gchar *blank_composition =
+     "<gegl>"
+--- ./docs/Makefile.am.org	2007-12-13 18:59:16.841023000 +0800
++++ ./docs/Makefile.am	2007-12-13 18:59:27.515387000 +0800
+@@ -7,7 +7,6 @@
+ #
+ #
+ HTML_FILES = index-static.html 	\
+-	index.html		\
+ 	operations.html		\
+ 	class-hierarchy.html	\
+ 	gegl.h.html
+--- docs/Makefile.am.org	2007-12-13 19:14:32.526943000 +0800
++++ docs/Makefile.am	2007-12-13 19:14:44.209468000 +0800
+@@ -83,7 +83,7 @@
+ install-exec-local: all-local
+ 	$(INSTALL) -d $(help_dir)
+ 	$(INSTALL) $(srcdir)/api.html $(srcdir)/gegl.devhelp $(help_dir)
+-	$(INSTALL) -T $(srcdir)/devhelp.css $(help_dir)/gegl.css
++	$(INSTALL) $(srcdir)/devhelp.css $(help_dir)/gegl.css
+ 
+ uninstall-local:
+ 	rm -f $(help_dir)/api.html $(help_dir)/gegl.devhelp