1 # 2 # spec file for package SUNWgnome-common-devel 3 # 4 # includes module(s): pkgconfig, intltool, gtk-doc, gnome-common 5 # 6 # Copyright 2008 Sun Microsystems, Inc. 7 # This file and all modifications and additions to the pristine 8 # package are under the same license as the package itself. 9 # 10 # Owner: laca 11 # 12 %include Solaris.inc 13 %use gcommon = gnome-common.spec 14 %use gettext = gettext.spec 15 %use intltool = intltool.spec 16 %use gtkdoc = gtk-doc.spec 17 18 %define pkgconfig_version 0.23 19 %define pkgconfig_tarball_dir pkg-config-%{pkgconfig_version} 20 21 Name: SUNWgnome-common-devel 22 Summary: GNOME common development tools 23 Version: %{default_pkg_version} 24 Source: http://pkgconfig.freedesktop.org/releases/pkg-config-%{pkgconfig_version}.tar.gz 25 Source1: %{name}-manpages-0.1.tar.gz 26 # date:2004-06-06 owner:laca type:bug bugster:4809315 27 # upstreamable 28 Patch1: pkgconfig-01-suppress_gnome-config_error_msg.diff 29 SUNW_BaseDir: %{_basedir} 30 SUNW_Copyright: %{name}.copyright 31 BuildRoot: %{_tmppath}/%{name}-%{version}-build 32 33 %include default-depend.inc 34 Requires: SUNWperl584usr 35 Requires: SUNWperl584core 36 Requires: SUNWPython 37 Requires: SUNWlibpopt 38 Requires: SUNWperl-xml-parser 39 Requires: SUNWopenjade 40 Requires: SUNWgnome-xml-root 41 Requires: SUNWlxsl 42 BuildRequires: SUNWPython-devel 43 BuildRequires: SUNWlibpopt-devel 44 45 %prep 46 %setup -q -c -n SUNWgnome-common-devel-%{version} 47 cd %{pkgconfig_tarball_dir} 48 %patch1 -p1 49 cd %{_builddir} 50 %gcommon.prep -d %name-%version 51 %gettext.prep -d %name-%version 52 %intltool.prep -d %name-%version 53 %gtkdoc.prep -d %name-%version 54 cd %{_builddir}/%name-%version 55 gzcat %SOURCE1 | tar xf - 56 57 %build 58 CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` 59 if test "x$CPUS" = "x" -o $CPUS = 0; then 60 CPUS=1 61 fi 62 cd %{pkgconfig_tarball_dir} 63 CFLAGS="$RPM_OPT_FLAGS" \ 64 ./configure --prefix=%{_prefix} --mandir=%{_mandir} 65 make -j$CPUS 66 rm -rf $RPM_BUILD_ROOT 67 # pkg-config is needed by gnome-common 68 make install DESTDIR=$RPM_BUILD_ROOT 69 PATH=$RPM_BUILD_ROOT/%{_bindir}:$PATH 70 export PERL=/usr/perl5/bin/perl 71 export LDFLAGS="%_ldflags" 72 73 cd %{_builddir} 74 75 %gcommon.build -d %name-%version 76 %if %cc_is_gcc 77 %else 78 export CXX="${CXX} -norunpath" 79 %endif 80 export CXXFLAGS="%{cxx_optflags}" 81 %gettext.build -d %name-%version 82 export INTLTOOL_XGETTEXT="%{_libdir}/intltool/gettext-tools/xgettext" 83 export INTLTOOL_MSGMERGE="%{_libdir}/intltool/gettext-tools/msgmerge" 84 %intltool.build -d %name-%version 85 export ACLOCAL_FLAGS="-I %{_builddir}/%name-%version/%{pkgconfig_tarball_dir}" 86 %gtkdoc.build -d %name-%version 87 88 %install 89 # Don't "rm -rf $RPM_BUILD_ROOT" here as pkg-config module already installed. 90 91 cd %{_builddir} 92 %gcommon.install -d %name-%version 93 %gettext.install -d %name-%version 94 %intltool.install -d %name-%version 95 %gtkdoc.install -d %name-%version 96 rm -rf $RPM_BUILD_ROOT%{_mandir} 97 cd %{_builddir}/%name-%version/sun-manpages 98 make install DESTDIR=$RPM_BUILD_ROOT 99 100 # Normally we build this package before we build scrollkeeper, but 101 # remove any scrollkeeper files if user happens to rebuild this 102 # package after scrollkeeper is already on the system. 103 # 104 rm -rf $RPM_BUILD_ROOT%{_prefix}/var 105 106 # Remove /usr/share/info/dir, it's a generated file and shared by multiple 107 # packages 108 rm -f $RPM_BUILD_ROOT%{_datadir}/info/dir 109 110 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} 111 112 %clean 113 rm -rf $RPM_BUILD_ROOT 114 115 %files 116 %defattr (-, root, bin) 117 %{_bindir}/* 118 %{_libdir}/* 119 %dir %attr (0755, root, sys) %{_datadir} 120 %dir %attr (0755, root, other) %{_datadir}/aclocal 121 %{_datadir}/aclocal/* 122 %dir %attr (0755, root, other) %{_datadir}/doc 123 %{_datadir}/doc/* 124 %{_datadir}/gnome-common 125 %{_datadir}/gtk-doc 126 %{_datadir}/info 127 %{_datadir}/omf/gtk-doc/gtk-doc-manual-C.omf 128 %{_datadir}/sgml 129 %{_datadir}/intltool 130 %{_datadir}/pkgconfig 131 %{_mandir}/*/* 132 133 %changelog 134 * Wed Jun 18 2008 - damien.carbery@sun.com 135 - Add Build/Requires SUNWPython/-devel because /usr/bin/gtkdoc-depscan is a 136 python script. 137 * Mon Jan 31 2008 - brian.cameron@sun.com 138 - Bump pkg-config to 0.23. 139 * Mon Dec 10 2007 - brian.cameron@sun.com 140 - Bump pkg-config to 0.22. 141 * Fri Feb 16 2007 - damien.carbery@sun.com 142 - Update %files because gtk-doc xml files moved from %{_datadir}/gnome/help to 143 %{_datadir}/doc with the bumping of gtk-doc to 1.8. 144 * Thu Jan 11 2007 - damien.carbery@sun.com 145 - Bump pkg-config to 0.21. Remove upstream patch, pkgconfig-01-wall.diff. 146 Rename rest. 147 * Fri Sep 15 2006 - Brian.Cameron@sun.com 148 - Install gtk-doc documentation and call pkg-config configure script with 149 --mandir set properly. 150 * Fri Sep 01 2006 - Matt.Keenan@sun.com 151 - New Manpage tarball 152 * Sat Aug 12 2006 - laca@sun.com 153 - set PERL to /usr/perl5/bin/perl as per CR6454456 154 * Fri Jun 23 2006 - christopher.hanna@sun.com 155 - removed man page intltool-unicodify 156 * Sun Jun 11 2006 - laca@sun.com 157 - change group from other to bin/sys 158 * Wed May 10 2006 - laca@sun.com 159 - merge -share pkg(s) into the base pkg(s) 160 * Tue May 02 2006 - damien.carbery@sun.com 161 - Remove gnome and omf dirs from share package as they are no longer installed. 162 - Remove 'rm -rf $RPM_BUILD_ROOT' as pkg-config already installed. 163 * Tue Apr 11 2006 - damien.carbery@sun.com 164 - Set ACLOCAL_FLAGS for gtk-doc to find a pkgconfig macro. Move pkgconfig dir. 165 * Sun Feb 19 2006 - damien.carbery@sun.com 166 - Update Build/Requires after running check-deps.pl script. 167 * Thu Jan 19 2006 - damien.carbery@sun.com 168 - Bump pkg-config to 0.20.0, remove upstream patch (01-pkg.m4), add new patch 169 (01-wall, bug #4888). 170 * Tue Sep 13 2005 - brian.cameron@sun.com 171 - Bump version to 2.12. 172 * Thu Sep 08 2005 - brian.cameron@sun.com 173 - Verified builds fine on Solaris, bump to 2.11. 174 * Fri Sep 02 2005 - laca@sun.com 175 - remove unpackaged files; fix to build with new pkgbuild 176 * Wed Jul 07 2005 - laca@sun.com 177 - backport pkg.m4 fix from 0.17.2 178 * Wed Jul 06 2005 - laca@sun.com 179 - downgrade pkgconfig to 0.16.0 180 * Thu Oct 21 2004 - laca@sun.com 181 - set PERL, fixes 5100958 182 * Sat Oct 02 2004 - laca@sun.com 183 - added %pkgbuild_postprocess 184 * Mon Aug 23 2004 - laca@sun.com 185 - s/SUNWpl5u/SUNWperl584usr/ 186 * Sat Jun 26 2004 shirley.woo@sun.com 187 - Changed install location to /usr/... 188 * Thu May 27 2004 - laca@sun.com 189 - added %_libdir/pkgconfig 190 * Wed May 19 2004 - brian.cameron@sun.com 191 - Added missing man pages. 192 * Wed Mar 24 2004 - brian.cameron@sun.com 193 - Added SGML man page integration 194 * Mon Mar 02 2004 - Laszlo.Peter@sun.com 195 - add dependency on SUNWlxsl (libxslt) 196 * Mon Jan 26 2004 - Laszlo.Peter@sun.com 197 - initial version added to CVS 198