Solaris/SUNWgnome-component.spec
author laca
Fri, 14 Oct 2005 19:57:50 +0000
changeset 6102 1e3e35b9a369
parent 5933 328b4dbeb2b5
child 6169 dd075fed44d1
permissions -rw-r--r--
2005-10-14 Laszlo Peter <[email protected]> * SUNWfontconfig.spec: install solaris specific fonts.conf * SUNWjre-config.spec: update to use/depend on firefox * SUNWmozilla.spec: remove * SUNWlibrsvg.spec: update to use/depend on firefox * extra-specs/gnome-netstatus.spec: disable "ne" locale as the po file seems invalid and breaks the build * Solaris.inc: define _ldflags and include -z ignore. * SUNWberkeleydb.spec: remove * extra-specs/db.spec: remove * SUNWPython.spec, SUNWTiff.spec, SUNWaspell-en.spec, SUNWaspell.spec, SUNWbrltty.spec, SUNWevolution-data-server.spec, SUNWevolution-exchange.spec, SUNWevolution-jescs.spec, SUNWevolution-libs.spec, SUNWevolution-webcal.spec: SUNWevolution.spec, SUNWfirefox.spec, SUNWflac.spec, SUNWfsexam.spec, SUNWgnome-a11y-base-libs.spec, SUNWgnome-a11y-dasher.spec, SUNWgnome-a11y-gok.spec, SUNWgnome-a11y-libs.spec, SUNWgnome-a11y-poke.spec, SUNWgnome-a11y-reader.spec, SUNWgnome-a11y-speech.spec, SUNWgnome-applets.spec, SUNWgnome-archive-mgr.spec, SUNWgnome-audio.spec, SUNWgnome-base-libs.spec, SUNWgnome-calculator.spec, SUNWgnome-camera.spec, SUNWgnome-cd-burner.spec, SUNWgnome-cd.spec, SUNWgnome-character-map.spec, SUNWgnome-common-devel.spec, SUNWgnome-component.spec, SUNWgnome-config-editor.spec, SUNWgnome-config.spec, SUNWgnome-desktop-prefs.spec, SUNWgnome-dialog.spec, SUNWgnome-display-mgr.spec, SUNWgnome-doc-utils.spec, SUNWgnome-dtlogin-integration.spec, SUNWgnome-file-mgr.spec, SUNWgnome-fonts.spec, SUNWgnome-games.spec, SUNWgnome-help-viewer.spec, SUNWgnome-hex-editor.spec, SUNWgnome-im-client.spec, SUNWgnome-img-editor.spec, SUNWgnome-img-viewer.spec, SUNWgnome-javahelp-convert.spec, SUNWgnome-jdshelp.spec, SUNWgnome-libs.spec, SUNWgnome-media-apps.spec, SUNWgnome-media-player.spec, SUNWgnome-media.spec, SUNWgnome-orca.spec, SUNWgnome-panel.spec, SUNWgnome-pdf-viewer.spec, SUNWgnome-perf-meter.spec, SUNWgnome-pilot-link.spec, SUNWgnome-print.spec, SUNWgnome-project.spec, SUNWgnome-ps-viewer.spec, SUNWgnome-pygtk2.spec, SUNWgnome-python-libs.spec, SUNWgnome-remote-desktop.spec, SUNWgnome-removable-media.spec, SUNWgnome-session.spec, SUNWgnome-spell.spec, SUNWgnome-sys-suspend.spec, SUNWgnome-terminal.spec, SUNWgnome-text-editor.spec, SUNWgnome-themes.spec, SUNWgnome-ui-designer.spec, SUNWgnome-user-docs.spec, SUNWgnome-utils.spec, SUNWgnome-vfs.spec, SUNWgnome-wm.spec, SUNWgnutls.spec, SUNWjpg.spec, SUNWkrb5.spec, SUNWlibcroco.spec, SUNWlibexif.spec, SUNWlibgcrypt.spec, SUNWlibgpg-error.spec, SUNWlibpopt.spec, SUNWlibtheora.spec, SUNWlxml.spec, SUNWlxsl.spec, SUNWmusicbrainz.spec, SUNWogg-vorbis.spec, SUNWopenjade.spec, SUNWopensp.spec, SUNWpng.spec, SUNWpoppler.spec, SUNWspeex.spec, SUNWthunderbird.spec, SUNWxwxft.spec: use %_ldflags or -z ignore and set CFLAGS to %optflags if not already set.

#
# spec file for package SUNWgnome-component
#
# includes module(s): libIDL, ORBit2, libbonobo
#
# Copyright (c) 2004 Sun Microsystems, Inc.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
%include Solaris.inc
%use idl = libIDL.spec
%use orbit = ORBit2.spec
%use bonobo = libbonobo.spec
Name:                    SUNWgnome-component
Summary:                 GNOME CORBA ORB and component framework - platform dependent files, /usr filesystem
Version:                 %{default_pkg_version}
Source:                  orbit-idl-2.1
Source1:                 activation-client.1
Source2:                 orbit2-config.1
Source3:                 libORBit-2.3
Source4:                 libbonobo-activation.3
Source5:                 libIDL-2.3
Source6:                 libbonobo-2.3
Source7:                 libORBitCosNaming-2.3
Source8:                 bonobo-slay.1
SUNW_BaseDir:            %{_basedir}
BuildRoot:               %{_tmppath}/%{name}-%{version}-build

%include default-depend.inc
BuildRequires: SUNWgnome-base-libs-devel
Requires: SUNWlibpopt
Requires: SUNWgnome-component-root
Requires: SUNWgnome-base-libs
Requires: SUNWperl584usr
Requires: SUNWlxml

%package root
Summary:                 GNOME CORBA ORB and component framework - platform dependent files, / filesystem
SUNW_BaseDir:            /
%include default-depend.inc

%package devel-share
Summary:            	 GNOME CORBA ORB and component framework - developer files - platform independent, /usr/share
SUNW_BaseDir:            %{_basedir}
%include default-depend.inc

%package devel		
Summary:                 GNOME CORBA ORB and component framework - developer files
SUNW_BaseDir:            %{_basedir}
%include default-depend.inc
Requires: SUNWgnome-component-devel-share
Requires: SUNWgnome-common-devel
Requires: SUNWgnome-base-libs-devel
Requires: SUNWlxml
Requires: SUNWgnome-component
Requires: SUNWgnome-base-libs
Requires: SUNWlibpopt

%package l10n
Summary:                 %{summary} - l10n files
SUNW_BaseDir:            %{_basedir}
%include default-depend.inc
Requires: %{name}

%prep
rm -rf %name-%version
mkdir %name-%version
%idl.prep -d %name-%version
%orbit.prep -d %name-%version
%bonobo.prep -d %name-%version

cd %{_builddir}/%name-%version
ln -s `pwd`/ORBit2-%{orbit.version}/src/services/name `pwd`/ORBit2-%{orbit.version}/include/ORBitservices

%ifarch amd64 sparcv9
ln -s `pwd`/ORBit2-%{orbit.version}-64/src/services/name `pwd`/ORBit2-%{orbit.version}-64/include/ORBitservices
%endif

%build
PKG_CONFIG_DISABLE_UNINSTALLED=
unset PKG_CONFIG_DISABLE_UNINSTALLED

export PKG_CONFIG_PATH=../ORBit2-%{orbit.version}:../libIDL-%{idl.version}:../libbonobo-%{bonobo.version}:%{_pkg_config_path}

export PKG_CONFIG_PATH32="$PKG_CONFIG_PATH"

export PKG_CONFIG_PATH64=../ORBit2-%{orbit.version}-64:../libIDL-%{idl.version}-64:../libbonobo-%{bonobo.version}-64:%{_pkg_config_path64}

export PERL_PATH=/usr/perl5/5.8.4/bin/perl
export PERL=/usr/perl5/5.8.4/bin/perl
export PERL5LIB=%{_prefix}/perl5/site_perl/5.6.1/sun4-solaris-64int
export CPP=/usr/lib/cpp
export CFLAGS="%optflags -I%{_includedir}"
export CFLAGS32="$CFLAGS"
export CFLAGS64="%optflags64 -I%{_includedir}"

export RPM_OPT_FLAGS="$CFLAGS"

export MSGFMT="/usr/bin/msgfmt"
%idl.build -d %name-%version
%orbit.build -d %name-%version

export LDFLAGS="%_ldflags -L%{_builddir}/%name-%version/ORBit2-%{orbit.version}/src/services/name"

export LDFLAGS32="$LDFLAGS"

export LDFLAGS64="%_ldflags -L%{_builddir}/%name-%version/ORBit2-%{orbit.version}-64/src/services/name -R/usr/lib/%{_arch64}"

%bonobo.build -d %name-%version

%install
%idl.install -d %name-%version
%orbit.install -d %name-%version
%bonobo.install -d %name-%version
rm -rf $RPM_BUILD_ROOT%{_mandir}
install -d $RPM_BUILD_ROOT%{_mandir}/sman1
install --mode=0755 %SOURCE0 $RPM_BUILD_ROOT%{_mandir}/sman1
install --mode=0755 %SOURCE1 $RPM_BUILD_ROOT%{_mandir}/sman1
install --mode=0644 %SOURCE2 $RPM_BUILD_ROOT%{_mandir}/sman1
install --mode=0644 %SOURCE8 $RPM_BUILD_ROOT%{_mandir}/sman1
install -d $RPM_BUILD_ROOT%{_mandir}/sman3
install --mode=0755 %SOURCE3 $RPM_BUILD_ROOT%{_mandir}/sman3
install --mode=0755 %SOURCE4 $RPM_BUILD_ROOT%{_mandir}/sman3
install --mode=0755 %SOURCE5 $RPM_BUILD_ROOT%{_mandir}/sman3
install --mode=0755 %SOURCE6 $RPM_BUILD_ROOT%{_mandir}/sman3
install --mode=0755 %SOURCE7 $RPM_BUILD_ROOT%{_mandir}/sman3

rm -rf $RPM_BUILD_ROOT%{_datadir}/info

%ifarch amd64 sparcv9
rm -f $RPM_BUILD_ROOT%{_libdir}/%{_arch64}/lib*a
rm -f $RPM_BUILD_ROOT%{_libdir}/%{_arch64}/bonobo/monikers/lib*a
rm -f $RPM_BUILD_ROOT%{_libdir}/%{_arch64}/orbit-2.0/*.a
rm -f $RPM_BUILD_ROOT%{_libdir}/%{_arch64}/orbit-2.0/*.la
rm -f $RPM_BUILD_ROOT%{_libexecdir}/%{_arch64}/bonobo-activation-server
%endif

%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr (-, root, other)
%dir %attr (0755, root, bin) %{_bindir}
%{_bindir}/activation-client
%{_bindir}/bonobo-activation-run-query
%{_bindir}/bonobo-slay
%{_bindir}/ior-decode-2
%{_bindir}/linc-cleanup-sockets
%{_bindir}/typelib-dump
%{_bindir}/echo-client-2
%dir %attr (0755, root, bin) %{_sbindir}
%{_sbindir}/bonobo-activation-sysconf
%dir %attr (0755, root, bin) %{_libdir}
%{_libdir}/lib*.so*
%{_libdir}/bonobo/monikers/*.so
%{_libdir}/bonobo/servers
%{_libdir}/bonobo-2.0
%{_libdir}/orbit*/*.so
%{_libexecdir}/bonobo-activation-server
%ifarch amd64 sparcv9
%dir %attr (0755, root, bin) %{_bindir}/%{_arch64}
%{_bindir}/%{_arch64}/activation-client
%{_bindir}/%{_arch64}/bonobo-activation-run-query
%{_bindir}/%{_arch64}/bonobo-slay
%{_bindir}/%{_arch64}/ior-decode-2
%{_bindir}/%{_arch64}/linc-cleanup-sockets
%{_bindir}/%{_arch64}/typelib-dump
%{_bindir}/%{_arch64}/echo-client-2
%dir %attr (0755, root, bin) %{_sbindir}/%{_arch64}
%{_sbindir}/%{_arch64}/bonobo-activation-sysconf
%dir %attr (0755, root, bin) %{_libdir}/%{_arch64}
%{_libdir}/%{_arch64}/lib*.so*
%{_libdir}/%{_arch64}/bonobo/monikers/*.so
%{_libdir}/%{_arch64}/bonobo/servers
%{_libdir}/%{_arch64}/bonobo-2.0
%{_libdir}/%{_arch64}/orbit*/*.so
%endif

%files devel-share
%defattr (-, root, other)
%dir %attr (0755, root, sys) %{_datadir}
%{_datadir}/gtk-doc
%{_datadir}/aclocal
%{_datadir}/idl
%dir %attr(0755, root, bin) %{_mandir}
%dir %attr(0755, root, bin) %{_mandir}/*
%{_mandir}/*/*

%files devel
%defattr (-, root, other)
%dir %attr (0755, root, bin) %{_libdir}
%{_libdir}/pkgconfig
%dir %attr (0755, root, bin) %{_bindir}
%{_bindir}/libIDL*
%{_bindir}/orbit*
%dir %attr (0755, root, bin) %{_includedir}
%{_includedir}/*
%ifarch amd64 sparcv9
%dir %attr (0755, root, bin) %{_libdir}/%{_arch64}
%{_libdir}/%{_arch64}/pkgconfig
%dir %attr (0755, root, bin) %{_bindir}/%{_arch64}
%{_bindir}/%{_arch64}/libIDL*
%{_bindir}/%{_arch64}/orbit*
%endif


%files root
%attr (0755, root, sys) %dir %{_sysconfdir}
%defattr (-, root, other)
%{_sysconfdir}/*
%defattr (0755, root, sys)

%files l10n
%defattr (-, root, other)
%dir %attr (0755, root, sys) %{_datadir}
%{_datadir}/locale

%changelog
* Sun Sep 18 2005 - [email protected]
- remove unpackaged 64-bit files
* Fri Sep 02 2005 - [email protected]
- remove unpackaged files
* Wed May 11 2005 - [email protected]
- Create symlink when building ORBit2 to allow uninstalled.pc
  files to find header files properly.
* Thu Oct 21 2004 - [email protected]
- set PERL and PERL_PATH, fixes 5100958
* Wed Oct 13 2004 - [email protected]
- use _pkg_config_path64 in $PKG_CONFIG_PATH64
* Sat Oct 02 2004 - [email protected]
- added %pkgbuild_postprocess
* Sat Oct  2 2004 - [email protected]
- Create 64bit libraries for Solaris
* Thu Sep 09 2004 - [email protected]
- Added bonobo-slay.1 manpage
* Tue Aug 31 2004 - [email protected]
- Bug 5091588 : Added BuildRequires SUNWgnome-base-libs-devel since 
  SUNWgnome-base-libs was split
* Mon Aug 23 2004 - [email protected]
- s/SUNWpl5u/SUNWperl584usr/
* Wed Aug 18 2004 - [email protected]
- Changed manpage mode to 0755 for Solaris integration.
* Tue Aug 17 2004 - [email protected]
- Changed manpage mode to 0755 for Solaris integration.
* Mon Aug 16 2004 - [email protected]
- Changed multiple manpage modes to 0755 for Solaris integration.
* Sat Jun 26 2004  [email protected]
- Changed install location to /usr/...
* Thu May 27 2004 - [email protected]
- added l10n subpkg, remove share, since it only contained the l10n files
* Wed May 19 2004 - [email protected]
- Added missing man pages
* Thu May 06 2004 - [email protected]
- Removed libraries from devel package since they are already
  in the SUNWgnome-component package.
* Wed Mar 24 2004 - [email protected]
- Added SGML man page integration
* Fri Mar 12 2004 - [email protected]
- more missing files: sbindir, bonobo monikiers and servers
* Mon Mar 01 2003 - [email protected]
- added missing bonobo/activation binaries to
  files map. 
* Fri Feb 13 2004 - [email protected]
- added %dir flags
* Mon Jan 19 2004 - [email protected]
- initial Sun release.