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