SUNWlibgsf.spec
author laca
Tue, 05 Aug 2008 04:33:16 +0000
branchgnome-2-22
changeset 12486 7fa2b2b0dddb
parent 12410 72cd6319f51f
child 12493 a4d9be4ee8a3
child 12591 cc160146d842
permissions -rw-r--r--
2008-08-05 Laszlo (Laca) Peter <[email protected]> * indiana/SUNWgetting-started-guide.spec: bump to 0.7.0; delete patches * patches/getting-started-guide-01-refresh-0.diff: delete * patches/getting-started-guide-02-po.diff: delete * indiana/SUNWopensolaris-welcome.spec: bump to 0.0.6 for bts release
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
12109
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
     1
#
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
     2
# spec file for packages SUNWlibgsf
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
     3
#
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
     4
# includes module(s): libgsf
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
     5
#
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
     6
# Copyright 2008 Sun Microsystems, Inc.
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
     7
# This file and all modifications and additions to the pristine
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
     8
# package are under the same license as the package itself.
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
     9
#
12410
72cd6319f51f 2008-06-03 Halton Huo <[email protected]>
halton
parents: 12109
diff changeset
    10
# Owner:jerrytan
12109
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    11
#
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    12
%include Solaris.inc
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    13
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    14
%use libgsf = libgsf.spec
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    15
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    16
Name:                    SUNWlibgsf
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    17
Summary:                 GNOME Structured File Library
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    18
Version:                 %{default_pkg_version}
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    19
SUNW_BaseDir:            %{_basedir}
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    20
SUNW_Copyright:          %{name}.copyright
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    21
BuildRoot:               %{_tmppath}/%{name}-%{version}-build
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    22
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    23
%include default-depend.inc
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    24
Requires: SUNWlibgsf-root
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    25
Requires: SUNWgnome-base-libs
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    26
Requires: SUNWgnome-component
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    27
Requires: SUNWgnome-vfs
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    28
Requires: SUNWgnome-config
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    29
Requires: SUNWdbus
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    30
Requires: SUNWdbus-bindings
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    31
Requires: SUNWlxml
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    32
Requires: SUNWbzip
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    33
Requires: SUNWzlib
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    34
Requires: SUNWlibm
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    35
Requires: SUNWopenssl-libraries
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    36
Requires: SUNWgnome-python-libs
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    37
BuildRequires: SUNWgnome-base-libs-devel
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    38
BuildRequires: SUNWgnome-component-devel
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    39
BuildRequires: SUNWgnome-vfs-devel
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    40
BuildRequires: SUNWlxml-devel
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    41
BuildRequires: SUNWopenssl-include
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    42
BuildRequires: SUNWgnome-python-libs-devel
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    43
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    44
%package root
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    45
Summary:                 %{summary} - / filesystem
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    46
SUNW_BaseDir:            /
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    47
%include default-depend.inc
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    48
Requires: SUNWpostrun
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    49
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    50
%package devel
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    51
Summary:                 %{summary} - development files
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    52
SUNW_BaseDir:            %{_basedir}
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    53
%include default-depend.inc
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    54
Requires:                %{name}
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    55
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    56
%if %build_l10n
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    57
%package l10n
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    58
Summary:                 %{summary} - l10n files
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    59
SUNW_BaseDir:            %{_basedir}
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    60
%include default-depend.inc
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    61
Requires:                %{name}
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    62
%endif
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    63
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    64
%prep
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    65
rm -rf %name-%version
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    66
mkdir %name-%version
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    67
%libgsf.prep -d %name-%version
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    68
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    69
%build
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    70
export CFLAGS="%optflags -I/usr/sfw/include"
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    71
export LDFLAGS="%_ldflags -L/usr/sfw/lib -R/usr/sfw/lib"
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    72
export RPM_OPT_FLAGS="$CFLAGS"
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    73
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    74
%libgsf.build -d %name-%version
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    75
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    76
%install
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    77
rm -rf $RPM_BUILD_ROOT
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    78
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    79
%libgsf.install -d %name-%version
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    80
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    81
%if %build_l10n
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    82
%else
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    83
# REMOVE l10n FILES
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    84
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    85
rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/*/[a-z][a-z]
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    86
%endif
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    87
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    88
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    89
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    90
%clean
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    91
rm -rf $RPM_BUILD_ROOT
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    92
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    93
%post root
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    94
%include gconf-install.script
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    95
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    96
%preun root
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    97
test -x $BASEDIR/var/lib/postrun/postrun || exit 0
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    98
( echo 'test -x $PKG_INSTALL_ROOT/usr/bin/gconftool-2 || {';
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
    99
  echo '  echo "WARNING: gconftool-2 not found; not uninstalling gconf schemas"';
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
   100
  echo '  exit 0';
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
   101
  echo '}';
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
   102
  echo 'umask 0022';
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
   103
  echo 'GCONF_CONFIG_SOURCE=xml:merged:$BASEDIR/etc/gconf/gconf.xml.defaults';
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
   104
  echo 'GCONF_BACKEND_DIR=$PKG_INSTALL_ROOT/usr/lib/GConf/2';
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
   105
  echo 'LD_LIBRARY_PATH=$PKG_INSTALL_ROOT/usr/lib';
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
   106
  echo 'export GCONF_CONFIG_SOURCE GCONF_BACKEND_DIR LD_LIBRARY_PATH';
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
   107
  echo 'SDIR=$BASEDIR%{_sysconfdir}/gconf/schemas';
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
   108
  echo 'schemas="$SDIR/gsf-office-thumbnailer.schemas"';
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
   109
  echo '$PKG_INSTALL_ROOT/usr/bin/gconftool-2 --makefile-uninstall-rule $schemas'
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
   110
) | $BASEDIR/var/lib/postrun/postrun -i -c JDS -a
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
   111
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
   112
%files
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
   113
%defattr (-, root, bin)
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
   114
%dir %attr (0755, root, bin) %{_bindir}
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
   115
%{_bindir}/*
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
   116
%dir %attr (0755, root, bin) %{_libdir}
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
   117
%{_libdir}/lib*.so*
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
   118
%attr (-, root, bin) %{_libdir}/python*
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
   119
%dir %attr (0755, root, sys) %{_datadir}
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
   120
%dir %attr(0755, root, bin) %{_mandir}
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
   121
%dir %attr(0755, root, bin) %{_mandir}/man1
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
   122
%{_mandir}/man1/*
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
   123
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
   124
%files root
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
   125
%defattr (-, root, sys)
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
   126
%attr (0755, root, sys) %dir %{_sysconfdir}
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
   127
%{_sysconfdir}/gconf/schemas/gsf-office-thumbnailer.schemas
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
   128
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
   129
%files devel
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
   130
%defattr (-, root, bin)
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
   131
%dir %attr (0755, root, bin) %{_includedir}
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
   132
%{_includedir}/libgsf-1
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
   133
%dir %attr (0755, root, bin) %{_libdir}
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
   134
%dir %attr (0755, root, other) %{_libdir}/pkgconfig
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
   135
%{_libdir}/pkgconfig/*
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
   136
%dir %attr (0755, root, sys) %{_datadir}
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
   137
%{_datadir}/gtk-doc
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
   138
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
   139
%if %build_l10n
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
   140
%files l10n
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
   141
%defattr (-, root, bin)
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
   142
%dir %attr (0755, root, sys) %{_datadir}
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
   143
%attr (-, root, other) %{_datadir}/locale
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
   144
%endif
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
   145
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
   146
%changelog
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
   147
* Mon Apr 14 2008 - [email protected]
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents:
diff changeset
   148
- Spilit from SUNWdesktop-search-libs.spec