Home | History | Annotate | Download | only in gnome-2-24
      1 #
      2 # spec file for package SUNWgnome-component
      3 #
      4 # includes module(s): libIDL, ORBit2, libbonobo
      5 #
      6 # Copyright 2007 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: gheet
     11 #
     12 %include Solaris.inc
     13 
     14 %ifarch amd64 sparcv9
     15 %include arch64.inc
     16 %define _sysconfdir /etc/%{_arch64}
     17 %define _sbindir %{_prefix}/sbin/%{_arch64}
     18 %use idl_64 = libIDL.spec
     19 %use orbit_64 = ORBit2.spec
     20 %use bonobo_64 = libbonobo.spec
     21 %endif
     22 
     23 %define _sbindir %{_prefix}/sbin
     24 %include base.inc
     25 %use idl = libIDL.spec
     26 %use orbit = ORBit2.spec
     27 %use bonobo = libbonobo.spec
     28 
     29 Name:                    SUNWgnome-component
     30 Summary:                 GNOME CORBA ORB and component framework
     31 Version:                 %{default_pkg_version}
     32 Source:                  %{name}-manpages-0.1.tar.gz
     33 SUNW_BaseDir:            %{_basedir}
     34 SUNW_Copyright:          %{name}.copyright
     35 BuildRoot:               %{_tmppath}/%{name}-%{version}-build
     36 
     37 %include default-depend.inc
     38 BuildRequires: SUNWgnome-base-libs-devel
     39 BuildRequires: SUNWlibpopt-devel
     40 BuildRequires: SUNWgnome-component-devel
     41 BuildRequires: SUNWdbus-devel
     42 BuildRequires: SUNWdbus-bindings-devel
     43 Requires: SUNWlibpopt
     44 Requires: SUNWgnome-component-root
     45 Requires: SUNWgnome-base-libs
     46 Requires: SUNWdbus
     47 Requires: SUNWperl584usr
     48 Requires: SUNWperl584core
     49 Requires: SUNWlxml
     50 Requires: SUNWdbus-bindings
     51 %if %option_with_gnu_iconv
     52 # for /usr/gnu/bin/printf needed in po/Makefile
     53 BuildRequires: SUNWgnu-coreutils
     54 %endif
     55 
     56 %package root
     57 Summary:                 %{summary} - / filesystem
     58 SUNW_BaseDir:            /
     59 %include default-depend.inc
     60 
     61 %package devel		
     62 Summary:                 %{summary} - development files
     63 SUNW_BaseDir:            %{_basedir}
     64 %include default-depend.inc
     65 Requires: SUNWgnome-common-devel
     66 Requires: SUNWgnome-base-libs-devel
     67 Requires: SUNWlxml
     68 Requires: SUNWgnome-component
     69 Requires: SUNWgnome-base-libs
     70 Requires: SUNWlibpopt
     71 Requires: SUNWlibms
     72 
     73 %if %build_l10n
     74 %package l10n
     75 Summary:                 %{summary} - l10n files
     76 SUNW_BaseDir:            %{_basedir}
     77 %include default-depend.inc
     78 Requires: %{name}
     79 %endif
     80 
     81 %prep
     82 rm -rf %name-%version
     83 mkdir %name-%version
     84 
     85 %ifarch amd64 sparcv9
     86 mkdir %name-%version/%_arch64
     87 %idl_64.prep -d %name-%version/%_arch64
     88 %orbit_64.prep -d %name-%version/%_arch64
     89 %bonobo_64.prep -d %name-%version/%_arch64
     90 %endif
     91 
     92 mkdir %name-%version/%{base_arch}
     93 %idl.prep -d %name-%version/%{base_arch}
     94 %orbit.prep -d %name-%version/%{base_arch}
     95 %bonobo.prep -d %name-%version/%{base_arch}
     96 
     97 cd %{_builddir}/%name-%version
     98 gzcat %SOURCE0 | tar xf -
     99 
    100 %build
    101 PKG_CONFIG_DISABLE_UNINSTALLED=
    102 unset PKG_CONFIG_DISABLE_UNINSTALLED
    103 
    104 export PERL=/usr/perl5/bin/perl
    105 export PERL_PATH=/usr/perl5/bin/perl
    106 export CPP=/usr/lib/cpp
    107 
    108 %ifarch amd64 sparcv9
    109 %if %option_with_gnu_iconv
    110 export EXTRA_LDFLAGS="-L/usr/gnu/lib/%_arch64 -R/usr/gnu/lib/%_arch64"
    111 %endif
    112 export PKG_CONFIG_PATH=../ORBit2-%{orbit.version}:../libIDL-%{idl.version}:../libbonobo-%{bonobo.version}:/usr/lib/%{_arch64}/pkgconfig
    113 
    114 %idl_64.build -d %name-%version/%_arch64
    115 %orbit_64.build -d %name-%version/%_arch64
    116 
    117 export EXTRA_LDFLAGS="-L%{_builddir}/%name-%version/%_arch64/ORBit2-%{orbit.version}/src/services/name -R/usr/lib/%{_arch64}"
    118 
    119 %bonobo_64.build -d %name-%version/%_arch64
    120 %endif
    121 
    122 export EXTRA_LDFLAGS=
    123 
    124 export PKG_CONFIG_PATH=../ORBit2-%{orbit.version}:../libIDL-%{idl.version}:../libbonobo-%{bonobo.version}:/usr/lib/pkgconfig
    125 %if %option_with_gnu_iconv
    126 export EXTRA_LDFLAGS="-L/usr/gnu/lib -R/usr/gnu/lib"
    127 %endif
    128 %idl.build -d %name-%version/%{base_arch}
    129 %orbit.build -d %name-%version/%{base_arch}
    130 
    131 export EXTRA_LDFLAGS="-L%{_builddir}/%name-%version/%{base_arch}/ORBit2-%{orbit.version}/src/services/name"
    132  
    133 %bonobo.build -d %name-%version/%{base_arch}
    134 
    135 %install
    136 rm -rf $RPM_BUILD_ROOT
    137 
    138 %ifarch amd64 sparcv9
    139 %idl_64.install -d %name-%version/%_arch64
    140 %orbit_64.install -d %name-%version/%_arch64
    141 %bonobo_64.install -d %name-%version/%_arch64
    142 %endif
    143 
    144 %idl.install -d %name-%version/%{base_arch}
    145 %orbit.install -d %name-%version/%{base_arch}
    146 %bonobo.install -d %name-%version/%{base_arch}
    147 
    148 rm -f $RPM_BUILD_ROOT%{_mandir}/*/*.gz
    149 cd %{_builddir}/%name-%version/sun-manpages
    150 make install DESTDIR=$RPM_BUILD_ROOT
    151 
    152 rm -rf $RPM_BUILD_ROOT%{_datadir}/info
    153 
    154 %ifarch amd64 sparcv9
    155 rm $RPM_BUILD_ROOT%{_bindir}/%{_arch64}/libIDL-config-2
    156 rm $RPM_BUILD_ROOT%{_libexecdir}/%{_arch64}/bonobo-activation-server
    157 rm $RPM_BUILD_ROOT%{_bindir}/%{_arch64}/orbit2-config
    158 rm $RPM_BUILD_ROOT%{_bindir}/%{_arch64}/bonobo-slay
    159 %endif
    160 
    161 %if %build_l10n
    162 %else
    163 # REMOVE l10n FILES
    164 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
    165 %endif
    166 
    167 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
    168 
    169 %clean
    170 rm -rf $RPM_BUILD_ROOT
    171 
    172 %files
    173 %doc -d %{base_arch} libIDL-%{idl.version}/AUTHORS
    174 %doc -d %{base_arch} libIDL-%{idl.version}/README
    175 %doc(bzip2) -d %{base_arch} libIDL-%{idl.version}/NEWS
    176 %doc(bzip2) -d %{base_arch} libIDL-%{idl.version}/COPYING
    177 %doc(bzip2) -d %{base_arch} libIDL-%{idl.version}/ChangeLog
    178 %doc -d %{base_arch} ORBit2-%{orbit.version}/AUTHORS
    179 %doc -d %{base_arch} ORBit2-%{orbit.version}/README
    180 %doc(bzip2) -d %{base_arch} ORBit2-%{orbit.version}/NEWS
    181 %doc(bzip2) -d %{base_arch} ORBit2-%{orbit.version}/COPYING
    182 %doc(bzip2) -d %{base_arch} ORBit2-%{orbit.version}/COPYING.LIB
    183 %doc(bzip2) -d %{base_arch} ORBit2-%{orbit.version}/ChangeLog
    184 %doc -d %{base_arch} libbonobo-%{bonobo.version}/AUTHORS
    185 %doc -d %{base_arch} libbonobo-%{bonobo.version}/README
    186 %doc(bzip2) -d %{base_arch} libbonobo-%{bonobo.version}/NEWS
    187 %doc(bzip2) -d %{base_arch} libbonobo-%{bonobo.version}/COPYING
    188 %doc(bzip2) -d %{base_arch} libbonobo-%{bonobo.version}/COPYING.LIB
    189 %doc(bzip2) -d %{base_arch} libbonobo-%{bonobo.version}/ChangeLog
    190 %dir %attr (0755, root, sys) %{_datadir}
    191 %dir %attr (0755, root, other) %{_datadir}/doc
    192 %defattr (-, root, bin)
    193 %dir %attr (0755, root, bin) %{_bindir}
    194 %{_bindir}/activation-client
    195 %{_bindir}/bonobo-activation-run-query
    196 %{_bindir}/bonobo-slay
    197 %{_bindir}/ior-decode-2
    198 %{_bindir}/linc-cleanup-sockets
    199 %{_bindir}/typelib-dump
    200 %{_bindir}/echo-client-2
    201 %dir %attr (0755, root, bin) %{_sbindir}
    202 %{_sbindir}/bonobo-activation-sysconf
    203 %dir %attr (0755, root, bin) %{_libdir}
    204 %{_libdir}/lib*.so*
    205 %{_libdir}/bonobo/monikers/*.so
    206 %{_libdir}/bonobo/servers
    207 %{_libdir}/bonobo-2.0
    208 %{_libdir}/orbit*/*.so
    209 %{_libexecdir}/bonobo-activation-server
    210 %ifarch amd64 sparcv9
    211 %dir %attr (0755, root, bin) %{_bindir}/%{_arch64}
    212 %{_bindir}/%{_arch64}/activation-client
    213 %{_bindir}/%{_arch64}/bonobo-activation-run-query
    214 %{_bindir}/%{_arch64}/ior-decode-2
    215 %{_bindir}/%{_arch64}/linc-cleanup-sockets
    216 %{_bindir}/%{_arch64}/typelib-dump
    217 %{_bindir}/%{_arch64}/echo-client-2
    218 %dir %attr (0755, root, bin) %{_sbindir}/%{_arch64}
    219 %{_sbindir}/%{_arch64}/bonobo-activation-sysconf
    220 %dir %attr (0755, root, bin) %{_libdir}/%{_arch64}
    221 %{_libdir}/%{_arch64}/lib*.so*
    222 %{_libdir}/%{_arch64}/bonobo/monikers/*.so
    223 %{_libdir}/%{_arch64}/bonobo/servers
    224 %{_libdir}/%{_arch64}/bonobo-2.0
    225 %{_libdir}/%{_arch64}/orbit*/*.so
    226 %endif
    227 
    228 %files devel
    229 %defattr (-, root, bin)
    230 %dir %attr (0755, root, bin) %{_libdir}
    231 %dir %attr (0755, root, other) %{_libdir}/pkgconfig
    232 %{_libdir}/pkgconfig/*
    233 %dir %attr (0755, root, bin) %{_bindir}
    234 %{_bindir}/libIDL*
    235 %{_bindir}/orbit*
    236 %dir %attr (0755, root, bin) %{_includedir}
    237 %{_includedir}/*
    238 %ifarch amd64 sparcv9
    239 %dir %attr (0755, root, bin) %{_libdir}/%{_arch64}
    240 %dir %attr (0755, root, other) %{_libdir}/%{_arch64}/pkgconfig
    241 %{_libdir}/%{_arch64}/pkgconfig/*
    242 %dir %attr (0755, root, bin) %{_bindir}/%{_arch64}
    243 %{_bindir}/%{_arch64}/orbit-idl-2
    244 %endif
    245 %dir %attr (0755, root, sys) %{_datadir}
    246 %{_datadir}/gtk-doc
    247 %dir %attr (0755, root, other) %{_datadir}/aclocal
    248 %{_datadir}/aclocal/*
    249 %{_datadir}/idl
    250 %dir %attr(0755, root, bin) %{_mandir}
    251 %dir %attr(0755, root, bin) %{_mandir}/*
    252 %{_mandir}/*/*
    253 
    254 %files root
    255 %defattr (-, root, sys)
    256 %attr (0755, root, sys) %dir %{_sysconfdir}
    257 %{_sysconfdir}/[bo]*
    258 %ifarch sparcv9 amd64
    259 %{_sysconfdir}/%{_arch64}/*
    260 %endif
    261 
    262 %if %build_l10n
    263 %files l10n
    264 %defattr (-, root, bin)
    265 %dir %attr (0755, root, sys) %{_datadir}
    266 %attr (-, root, other) %{_datadir}/locale
    267 %endif
    268 
    269 %changelog
    270 * Fri Sep 12 2008 - christian.kelly@sun.com
    271 - Take out %{_datadir}/doc as it's no longer there.
    272 * Wed Sep 10 2008 - ghee.teo (at] sun.com
    273 - Made changes to use new copyright format.
    274 * Thu Aug 21 2008 - laca (at] sun.com
    275 - reset EXTRA_LDFLAGS before starting the 32-bit build to avoid adding
    276   the 64-bit runpath to the 32-bit binaries, fixes 6738781
    277 * Wed Jun 18 2008 - damien.carbery (at] sun.com
    278 - Add Build/Requires SUNWdbus/-devel as required by libbonobo. Add
    279   SUNWdbus-bindings/-devel too as /usr/lib/bonobo-activation-server requires 
    280   /usr/lib/libdbus-glib-1.so.2
    281 * Fri Oct 26 2007 - damien.carbery (at] sun.com
    282 - Only add /usr/gnu/lib to EXTRA_LDFLAGS when using GNU iconv.
    283 * Tue Oct  2 2007 - laca (at] sun.com
    284 - add SUNWgnu-coreutils dep for /usr/bin/printf
    285 * Sun Sep 30 2007 - laca (at] sun.com
    286 - convert to new style multi-ISA build
    287 * Thu Apr 26 2007 - laca (at] sun.com
    288 - set PERL_PATH for bonobo-slay, part of 6454456
    289 * Fri Sep 08 2006 - Matt.Keenan (at] sun.com
    290 - Remove "rm" of _mandir during %install
    291 * Fri Sep 01 2006 - Matt.Keenan (at] sun.com
    292 - New Manpage tarball
    293 * Sat Aug 12 2006 - laca (at] sun.com
    294 - set PERL to /usr/perl5/bin/perl as per CR6454456
    295 * Sun Jun 11 2006 - laca (at] sun.com
    296 - change group from other to bin/sys
    297 * Wed May 10 2006 - laca (at] sun.com
    298 - merge -share pkg(s) into the base pkg(s)
    299 * Sun Feb 19 2006 - damien.carbery (at] sun.com
    300 - Update Build/Requires after running check-deps.pl script.
    301 * Thu Feb  2 2006 - damien.carbery (at] sun.com
    302 - Add hack to use /usr/xpg4/bin/sed for libbonobo so last line of file not 
    303   dropped.
    304 * Sun Sep 18 2005 - laca (at] sun.com
    305 - remove unpackaged 64-bit files
    306 * Fri Sep 02 2005 - laca (at] sun.com
    307 - remove unpackaged files
    308 * Wed May 11 2005 - brian.cameron (at] sun.com
    309 - Create symlink when building ORBit2 to allow uninstalled.pc
    310   files to find header files properly.
    311 * Thu Oct 21 2004 - laca (at] sun.com
    312 - set PERL and PERL_PATH, fixes 5100958
    313 * Wed Oct 13 2004 - laca (at] sun.com
    314 - use _pkg_config_path64 in $PKG_CONFIG_PATH64
    315 * Sat Oct 02 2004 - laca (at] sun.com
    316 - added %pkgbuild_postprocess
    317 * Sat Oct  2 2004 - Joseph.Townsend (at] Sun.COM
    318 - Create 64bit libraries for Solaris
    319 * Thu Sep 09 2004 - matt.keenan (at] sun.com
    320 - Added bonobo-slay.1 manpage
    321 * Tue Aug 31 2004 - shirley.woo (at] sun.com
    322 - Bug 5091588 : Added BuildRequires SUNWgnome-base-libs-devel since 
    323   SUNWgnome-base-libs was split
    324 * Mon Aug 23 2004 - laca (at] sun.com
    325 - s/SUNWpl5u/SUNWperl584usr/
    326 * Wed Aug 18 2004 - damien.carbery (at] sun.com
    327 - Changed manpage mode to 0755 for Solaris integration.
    328 * Tue Aug 17 2004 - damien.carbery (at] sun.com
    329 - Changed manpage mode to 0755 for Solaris integration.
    330 * Mon Aug 16 2004 - damien.carbery (at] sun.com
    331 - Changed multiple manpage modes to 0755 for Solaris integration.
    332 * Sat Jun 26 2004  shirley.woo (at] sun.com
    333 - Changed install location to /usr/...
    334 * Thu May 27 2004 - laca (at] sun.com
    335 - added l10n subpkg, remove share, since it only contained the l10n files
    336 * Wed May 19 2004 - brian.cameron (at] sun.com
    337 - Added missing man pages
    338 * Thu May 06 2004 - brian.cameron (at] sun.com
    339 - Removed libraries from devel package since they are already
    340   in the SUNWgnome-component package.
    341 * Wed Mar 24 2004 - brian.cameron (at] sun.com
    342 - Added SGML man page integration
    343 * Fri Mar 12 2004 - Niall.Power (at] sun.com
    344 - more missing files: sbindir, bonobo monikiers and servers
    345 * Mon Mar 01 2003 - Niall.Power (at] sun.com
    346 - added missing bonobo/activation binaries to
    347   files map. 
    348 * Fri Feb 13 2004 - Laszlo.Peter (at] sun.com
    349 - added %dir flags
    350 * Mon Jan 19 2004 - Laszlo.Peter (at] sun.com
    351 - initial Sun release.
    352