2010-02-10 Jedy Wang <
[email protected]>
Add SUNWgtkimageview.
* SUNWgtkimageview.spec:
* base-specs/gtkimageview.spec:
* patches/gtkimageview-01-cflags.diff:
* patches/gtkimageview-02-void.diff:
* copyright/SUNWgtkimageview.copyright:
--- a/ChangeLog Wed Feb 10 08:31:49 2010 +0000
+++ b/ChangeLog Wed Feb 10 08:43:50 2010 +0000
@@ -1,3 +1,13 @@
+2010-02-10 Jedy Wang <[email protected]>
+
+ Add SUNWgtkimageview.
+
+ * SUNWgtkimageview.spec:
+ * base-specs/gtkimageview.spec:
+ * patches/gtkimageview-01-cflags.diff:
+ * patches/gtkimageview-02-void.diff:
+ * copyright/SUNWgtkimageview.copyright:
+
2010-02-10 Halton Huo <[email protected]>
* base-specs/clutter.spec: Bump to 1.1.10
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/SUNWgtkimageview.spec Wed Feb 10 08:43:50 2010 +0000
@@ -0,0 +1,97 @@
+#
+# spec file for package SUNWgtkimageview.spec
+#
+# Copyright (c) 2010 Sun Microsystems, Inc.
+# This file and all modifications and additions to the pristine
+# package are under the same license as the package itself.
+#
+%define owner jedy
+#
+
+%include Solaris.inc
+
+%ifarch amd64 sparcv9
+%include arch64.inc
+%use gtkimageview64 = gtkimageview.spec
+%endif
+
+%include base.inc
+%use gtkimageview = gtkimageview.spec
+
+Name: SUNWgtkimageview
+Summary: Image metadata library
+Version: %{default_pkg_version}
+SUNW_BaseDir: %{_basedir}
+SUNW_Copyright: %{name}.copyright
+BuildRoot: %{_tmppath}/%{name}-%{version}-build
+
+%include default-depend.inc
+
+%prep
+rm -rf %name-%version
+mkdir %name-%version
+
+%ifarch amd64 sparcv9
+mkdir %name-%version/%{_arch64}
+%gtkimageview64.prep -d %name-%version/%{_arch64}
+%endif
+
+mkdir %name-%version/%{base_arch}
+%gtkimageview.prep -d %name-%version/%{base_arch}
+
+
+%build
+%ifarch amd64 sparcv9
+export PKG_CONFIG_PATH=%{_libdir}/%{_arch64}/pkgconfig
+export CFLAGS="%optflags64"
+export LDFLAGS="%_ldflags"
+%gtkimageview64.build -d %name-%version/%{_arch64}
+%endif
+
+export PKG_CONFIG_PATH=%{_libdir}/pkgconfig
+export CFLAGS="%optflags"
+export LDFLAGS="%_ldflags"
+%gtkimageview.build -d %name-%version/%{base_arch}
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%ifarch amd64 sparcv9
+%gtkimageview64.install -d %name-%version/%{_arch64}
+%endif
+
+%gtkimageview.install -d %name-%version/%{base_arch}
+
+find $RPM_BUILD_ROOT%{_libdir} -type f -name "*.a" -exec rm -f {} ';'
+find $RPM_BUILD_ROOT%{_libdir} -type f -name "*.la" -exec rm -f {} ';'
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%doc(bzip2) -d %{base_arch}/gtkimageview-%{gtkimageview.version} COPYING
+%defattr (-, root, bin)
+%dir %attr (0755, root, bin) %{_libdir}
+%{_libdir}/libgtkimageview.so*
+%dir %attr (0755, root, other) %{_libdir}/pkgconfig
+%{_libdir}/pkgconfig/gtkimageview.pc
+%ifarch amd64 sparcv9
+%dir %attr (0755, root, bin) %dir %{_libdir}/%{_arch64}
+%{_libdir}/%{_arch64}/libgtkimageview.so*
+%dir %attr (0755, root, other) %{_libdir}/%{_arch64}/pkgconfig
+%{_libdir}/%{_arch64}/pkgconfig/gtkimageview.pc
+%endif
+%dir %attr (0755, root, bin) %{_includedir}
+%{_includedir}/gtkimageview/*.h
+%dir %attr (0755, root, sys) %{_datadir}
+%{_datadir}/gtk-doc
+
+
+%changelog
+* Fri Jan 22 2010 - [email protected]
+- Add 64-bit support.
+* Mon Dec 14 2009 - [email protected]
+- Regenerate cofngiure before building.
+* Sun Oct 11 2009 - Milan Jurik
+- Initial spec
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/base-specs/gtkimageview.spec Wed Feb 10 08:43:50 2010 +0000
@@ -0,0 +1,77 @@
+#
+# spec file for package gtkimageview
+#
+# Copyright (c) 2010 Sun Microsystems, Inc.
+# This file and all modifications and additions to the pristine
+# package are under the same license as the package itself.
+#
+%define owner jedy
+# bugdb: http://trac.bjourne.webfactional.com/
+#
+
+%define OSR 13397:0.x
+
+Name: gtkimageview
+Version: 1.6.4
+Release: 1
+Summary: Image metadata library
+
+Group: System/Libraries
+License: LGPL
+URL: http://trac.bjourne.webfactional.com
+Source: http://trac.bjourne.webfactional.com/chrome/common/releases//%{name}-%{version}.tar.gz
+# date:2010-02-10 owner:jedy bugid:39
+Patch1: gtkimageview-01-cflags.diff
+# date:2010-02-10 owner:jedy bugid:38
+Patch2: gtkimageview-02-void.diff
+
+BuildRoot: %{_tmppath}/%{name}-%{version}-build
+
+%description
+Libnotify is a notification system for the GNOME desktop environment.
+
+%prep
+%setup -q
+%patch1 -p1
+%patch2 -p1
+
+%build
+%ifos linux
+CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
+if test "x$CPUS" = "x" -o $CPUS = 0; then
+ CPUS=1
+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 $ACLOCAL_FLAGS
+glib-gettextize --force --copy
+intltoolize --force --automake
+gtkdocize
+
+automake -a -f -c --gnu
+autoconf
+./configure --prefix=%{_prefix} \
+ --bindir=%{_bindir} \
+ --libdir=%{_libdir} \
+ --mandir=%{_mandir} \
+ --enable-compile-warnings=no \
+ %gtk_doc_option \
+ --disable-static
+
+make -j $CPUS
+
+%install
+make DESTDIR=$RPM_BUILD_ROOT install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%changelog
+* Fri Jan 22 2010 - [email protected]
+- Initial spec
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/copyright/SUNWgtkimageview.copyright Wed Feb 10 08:43:50 2010 +0000
@@ -0,0 +1,24 @@
+Copyright 2010 Sun Microsystems, Inc. All rights reserved.
+Use is subject to license terms.
+
+For the avoidance of doubt, except that if any license choice other
+than GPL or LGPL is available it will apply instead, Sun elects to
+use only the General Public License version 2 (GPLv2) at this time
+for any software where a choice of GPL license versions is made
+available with the language indicating that GPLv2 or any later
+version may be used, or where a choice of which version of the GPL
+is applied is otherwise unspecified.
+
+--------------------------------------------------------------------
+
+Licensing and copyright information for gtkimageview-%{gtkimageview.version}
+
+ License: GNU Lesser General Public License Version 2.1
+
+ You can find more information in the following directory:
+ %{_pkg_docdir}/gtkimageview-%{gtkimageview.version}
+
+ COPYING.bz2: GNU LGPLv2.1
+
+ The sources of gtkimageview-%{gtkimageview.version} were downloaded
+ from %{gtkimageview.SOURCE0.url}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/gtkimageview-01-cflags.diff Wed Feb 10 08:43:50 2010 +0000
@@ -0,0 +1,14 @@
+diff -uprN gtkimageview-1.6.4/configure.in gtkimageview-1.6.4-new/configure.in
+--- gtkimageview-1.6.4/configure.in 2009-04-06 04:02:43.000000000 +0800
++++ gtkimageview-1.6.4-new/configure.in 2009-12-14 15:47:28.829003188 +0800
+@@ -39,7 +39,9 @@ GTK_DOC_CHECK([1.8])
+ ######################################################################
+ ##### Twiddle CFLAGS #################################################
+ ######################################################################
+-CFLAGS="${CFLAGS} -Wall -Werror -std=c99 -Wmissing-prototypes"
++if test "x$GCC" = "xyes"; then
++ CFLAGS="${CFLAGS} -Wall -Werror -std=c99 -Wmissing-prototypes"
++fi
+
+
+ ######################################################################
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/gtkimageview-02-void.diff Wed Feb 10 08:43:50 2010 +0000
@@ -0,0 +1,11 @@
+--- gtkimageview-1.6.4/src/gtkiimagetool.c 2009-04-05 01:25:15.000000000 +0200
++++ gtkimageview-1.6.4-patch/src/gtkiimagetool.c 2009-10-11 12:43:10.463578007 +0200
+@@ -169,7 +169,7 @@
+ GdkDrawable *drawable)
+ {
+ GtkIImageToolClass *klass = GTK_IIMAGE_TOOL_GET_CLASS (tool);
+- return klass->paint_image (tool, opts, drawable);
++ klass->paint_image (tool, opts, drawable);
+ }
+
+ /*************************************************************/