No, that's fine. Laca
On Tue, 2008-07-08 at 20:43 +0800, Jim Li wrote: > Hi Laca, > > There is no c++ code, so I just remove export CXXFLAGS="%cxx_optflags" > > > > I notice you removed the %if %cc_is_gcc thing, so there is no c++ > > code? If there is, you probably need that to pass -norunpath > > through libtool otherwise your binaries will have some extra > > directories in their runpath. You can verify with > > > > dump -Lvp <file>.so | grep RUNPATH > > > Output of dump is: > [11] RUNPATH /usr/X11/lib > Is there something wrong with that? > > Thanks > Jim > > However, if there is no C++ code, you don't need this: > > > > > >> export CXXFLAGS="%cxx_optflags" > >> > > > > > > > Note that your ARC case should also mention if there is C++ > > code in a shared lib. > > > > Laca > > > > > > > > plain text document attachment (SUNWgtkspell.spec) > # > # spec file for package SUNWgtkspell > # > # Copyright 2008 Sun Microsystems, Inc. > # This file and all modifications and additions to the pristine > # package are under the same license as the package itself. > # > # Owner: jim > # > > %include Solaris.inc > Name: SUNWgtkspell > Summary: Gtkspell provides word-processor-style highlighting > and replacement of misspelled words in a GtkTextView widget. > Version: 2.0.13 > Source: > http://gtkspell.sourceforge.net/download/gtkspell-%{version}.tar.gz > SUNW_BaseDir: %{_basedir} > SUNW_Copyright: %{name}.copyright > BuildRoot: %{_tmppath}/%{name}-%{version}-build > %include default-depend.inc > Requires: SUNWgnome-base-libs > Requires: SUNWgnome-spell > BuildRequires: SUNWgnome-base-libs-devel > BuildRequires: SUNWgnome-spell-devel > > %package devel > Summary: Gtkspell - developer files > SUNW_BaseDir: %{_basedir} > %include default-depend.inc > Requires: %name > Requires: SUNWgnome-base-libs-devel > Requires: SUNWgnome-spell-devel > > %if %build_l10n > %package l10n > Summary: %{summary} - l10n files > SUNW_BaseDir: %{_basedir} > %include default-depend.inc > Requires: %{name} > %endif > > %prep > %setup -q -n gtkspell-%version > > %build > CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` > if test "x$CPUS" = "x" -o $CPUS = 0; then > CPUS=1 > fi > > export CFLAGS="%optflags" > export CPPFLAGS="%optflags" > export LDFLAGS="%_ldflags" > > glib-gettextize -f > intltoolize --force --copy > > %if %build_l10n > bash -x %SOURCE2 --enable-copyright > %endif > > aclocal $ACLOCAL_FLAGS > libtoolize --force > autoheader > automake -a -c -f > autoconf > > ./configure --prefix=%{_prefix} --mandir=%{_mandir} \ > --libdir=%{_libdir} \ > --libexecdir=%{_libexecdir} \ > --sysconfdir=%{_sysconfdir} > make -j$CPUS > > > %install > rm -rf $RPM_BUILD_ROOT > make install DESTDIR=$RPM_BUILD_ROOT > rm $RPM_BUILD_ROOT%{_libdir}/*.a > rm $RPM_BUILD_ROOT%{_libdir}/*.la > > %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) %{_libdir} > %{_libdir}/lib* > > %files devel > %defattr (-, root, bin) > %dir %attr (0755, root, bin) %{_libdir} > %dir %attr (0755, root, other) %{_libdir}/pkgconfig > %{_libdir}/pkgconfig/* > %dir %attr (0755, root, sys) %{_datadir} > %dir %attr (0755, root, bin) %{_datadir}/gtk-doc > %dir %attr (0755, root, bin) %{_datadir}/gtk-doc/html > %{_datadir}/gtk-doc/html/* > %dir %attr (0755, root, bin) %{_includedir} > %{_includedir}/* > > %if %build_l10n > %files l10n > %defattr (-, root, bin) > %dir %attr (0755, root, sys) %{_datadir} > %attr (-, root, other) %{_datadir}/locale > %endif > > %changelog > * Thu Jul 03 2008 - Jim Li > - Copied from SFEgtkspell and rename to SUNWgtkspell > * Sun Mar 02 2008 - Petr Sobotka > - Source tar file was moved > * Wed July 26 2006 - lin.ma at sun.com > - Initial spec file
