13608N/A#
13608N/A# spec file for package SUNWgtkspell
13608N/A#
13608N/A# Copyright 2008 Sun Microsystems, Inc.
13608N/A# This file and all modifications and additions to the pristine
13608N/A# package are under the same license as the package itself.
13608N/A#
17185N/A%define owner wangke
13608N/A#
13608N/A
17181N/A%define OSR 9389:2.x
17181N/A
13608N/A%include Solaris.inc
13608N/AName: SUNWgtkspell
18688N/AIPS_package_name: library/desktop/gtkspell
18688N/AMeta(info.classification): %{classification_prefix}:Applications/Accessories
13608N/ASummary: Gtkspell provides word-processor-style highlighting and replacement of misspelled words in a GtkTextView widget.
15315N/ALicense: GPL v2
17947N/AVersion: 2.0.16
13608N/ASource: http://gtkspell.sourceforge.net/download/gtkspell-%{version}.tar.gz
13646N/ASource1: l10n-configure.sh
13787N/ASource2: %{name}-manpages-0.1.tar.gz
13608N/ASUNW_BaseDir: %{_basedir}
13608N/ASUNW_Copyright: %{name}.copyright
13608N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
13608N/A%include default-depend.inc
20857N/A%include gnome-incorporation.inc
16401N/ARequires: SUNWgtk2
13608N/ARequires: SUNWgnome-spell
16401N/ABuildRequires: SUNWgtk2-devel
13608N/ABuildRequires: SUNWgnome-spell-devel
13608N/A
18209N/APatch1: gtkspell-01-fixxref-modules.diff
18209N/A
13608N/A%package devel
13608N/ASummary: Gtkspell - developer files
13608N/ASUNW_BaseDir: %{_basedir}
13608N/A%include default-depend.inc
20857N/A%include gnome-incorporation.inc
13608N/ARequires: %name
16401N/ARequires: SUNWgtk2-devel
13608N/ARequires: SUNWgnome-spell-devel
13608N/A
13608N/A%package l10n
13608N/ASummary: %{summary} - l10n files
13608N/ARequires: %{name}
13608N/A
13608N/A%prep
13608N/A%setup -q -n gtkspell-%version
13787N/Acd %{_builddir}/gtkspell-%version
13787N/Agzcat %SOURCE2 | tar xf -
18209N/A%patch1 -p0
13608N/A
13608N/A%build
13608N/ACPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
13608N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
13608N/A CPUS=1
13608N/Afi
13608N/A
13608N/Aexport CFLAGS="%optflags"
13608N/Aexport CPPFLAGS="%optflags"
13608N/Aexport LDFLAGS="%_ldflags"
13608N/A
13608N/Aintltoolize --force --copy
13608N/A
13646N/Ash %SOURCE1 --enable-copyright
13646N/A
13608N/Aaclocal $ACLOCAL_FLAGS
13608N/Alibtoolize --force
13608N/Aautoheader
13608N/Aautomake -a -c -f
13608N/Aautoconf
13608N/A
13608N/A./configure --prefix=%{_prefix} --mandir=%{_mandir} \
13608N/A --libdir=%{_libdir} \
13608N/A --libexecdir=%{_libexecdir} \
13608N/A --sysconfdir=%{_sysconfdir}
13608N/Amake -j$CPUS
13608N/A
13608N/A%install
13608N/Arm -rf $RPM_BUILD_ROOT
13608N/Amake install DESTDIR=$RPM_BUILD_ROOT
13608N/Arm $RPM_BUILD_ROOT%{_libdir}/*.a
13608N/Arm $RPM_BUILD_ROOT%{_libdir}/*.la
13787N/Acd %{_builddir}/gtkspell-%version/sun-manpages
13787N/Amake install DESTDIR=$RPM_BUILD_ROOT
13608N/A
13608N/A%clean
13608N/Arm -rf $RPM_BUILD_ROOT
13608N/A
13608N/A%files
13608N/A%defattr (-, root, bin)
13608N/A%dir %attr (0755, root, bin) %{_libdir}
13608N/A%{_libdir}/lib*
13787N/A%dir %attr (0755, root, sys) %{_datadir}
13787N/A%dir %attr(0755, root, bin) %{_mandir}
13787N/A%dir %attr(0755, root, bin) %{_mandir}/*
13787N/A%{_mandir}/*/*
14357N/A%doc README AUTHORS
14386N/A%doc(bzip2) COPYING ChangeLog
14357N/A%doc(bzip2) po/ChangeLog
14422N/A%dir %attr (0755, root, other) %{_datadir}/doc
13787N/A
13608N/A%files devel
13608N/A%defattr (-, root, bin)
13608N/A%dir %attr (0755, root, bin) %{_libdir}
13608N/A%dir %attr (0755, root, other) %{_libdir}/pkgconfig
13608N/A%{_libdir}/pkgconfig/*
13608N/A%dir %attr (0755, root, sys) %{_datadir}
13608N/A%dir %attr (0755, root, bin) %{_datadir}/gtk-doc
13608N/A%dir %attr (0755, root, bin) %{_datadir}/gtk-doc/html
13608N/A%{_datadir}/gtk-doc/html/*
13608N/A%dir %attr (0755, root, bin) %{_includedir}
13608N/A%{_includedir}/*
13608N/A
13608N/A%files l10n
13608N/A%defattr (-, root, bin)
13608N/A%dir %attr (0755, root, sys) %{_datadir}
13608N/A%attr (-, root, other) %{_datadir}/locale
13608N/A
13608N/A%changelog
18209N/A* Wed Jan 27 2010 - christian.kelly@sun.com
18209N/A- Add gtkspell-01-fixxref-modules to fix build issue.
17947N/A* Thu Dec 17 2009 - ke.wang@sun.com
17947N/A- Bump to 2.0.16
14422N/A* Fri Sep 19 2008 - dave.lin@sun.com
14422N/A- Set the attribute of the dir %{_datadir}/doc in base pkg.
14357N/A* Wed Sep 17 2008 - jim.li@sun.com
14357N/A- Revised new format copyright file
13608N/A* Thu Jul 03 2008 - Jim Li
13608N/A- Copied from SFEgtkspell and rename to SUNWgtkspell
13608N/A* Sun Mar 02 2008 - Petr Sobotka
13608N/A- Source tar file was moved
13608N/A* Wed July 26 2006 - lin.ma@sun.com
13608N/A- Initial spec file
16401N/A
19311N/A
19628N/A