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