SUNWglibmm.spec
author gheet
Tue, 19 Feb 2008 16:36:08 +0000
branchgnome-2-20
changeset 10799 aaeb44343873
child 10819 0fc03e1b27bb
permissions -rw-r--r--
2008-02-19 Ghee Teo <[email protected]> * SUNWgtkmm.spec SUNWcairomm.spec SUNWsigcpp.spec SUNWglibmm.spec patches/gtkmm-01-ignore-defs.diff patches/gtkmm-02-demo.diff patches/gtkmm-03-demo-installation.diff patches/glibmm-01-m4-macro.diff base-specs/sigcpp.spec base-specs/glibmm.spec base-specs/cairomm.spec base-specs/gtkmm.spec: Import of gtkmm modules into GNOME 2.20 branch for Indiana.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10799
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
     1
#
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
     2
# spec file for package SUNWglibmm
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
     3
#
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
     4
# includes module(s): glibmm
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
     5
#
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
     6
# # Copyright 2008 Sun Microsystems, Inc.
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
     7
# This file and all modifications and additions to the pristine
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
     8
# package are under the same license as the package itself.
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
     9
#
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    10
# Owner: SimonZheng
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    11
#
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    12
%include Solaris.inc
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    13
%use glibmm = glibmm.spec
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    14
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    15
Name:                    SUNWglibmm
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    16
Summary:                 glibmm - C++ Wrapper for the Glib2 Library
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    17
Version:                 %{default_pkg_version}
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    18
SUNW_BaseDir:            %{_basedir}
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    19
BuildRoot:               %{_tmppath}/%{name}-%{version}-build
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    20
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    21
%include default-depend.inc
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    22
Requires: SUNWgnome-base-libs
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    23
BuildRequires: SUNWgnome-base-libs-devel
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    24
Requires: SUNWsigcpp
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    25
BuildRequires: SUNWsigcpp-devel
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    26
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    27
%package devel
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    28
Summary:                 %{summary} - development files
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    29
SUNW_BaseDir:            %{_basedir}
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    30
%include default-depend.inc
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    31
Requires: %name
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    32
Requires: SUNWgnome-base-libs-devel
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    33
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    34
%if %build_l10n
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    35
%package l10n
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    36
Summary:		 %{summary} - l10n files
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    37
SUNW_BaseDir:		 %{_basedir}
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    38
%include default-depend.inc
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    39
Requires:		 %{name}
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    40
%endif
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    41
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    42
%prep
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    43
rm -rf %name-%version
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    44
mkdir %name-%version
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    45
%glibmm.prep -d %name-%version
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    46
cd %{_builddir}/%name-%version
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    47
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    48
%build
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    49
%if %cc_is_gcc
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    50
%else
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    51
export CXX="${CXX} -norunpath"
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    52
%endif
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    53
export CXXFLAGS="%cxx_optflags"
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    54
export PERL_PATH=/usr/perl5/bin/perl
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    55
%glibmm.build -d %name-%version
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    56
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    57
%install
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    58
rm -rf $RPM_BUILD_ROOT
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    59
%glibmm.install -d %name-%version
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    60
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    61
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    62
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    63
# Remove useless m4, pm and extra_gen_defs files 
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    64
rm -rf $RPM_BUILD_ROOT%{_libdir}/glibmm-2.4/proc/m4
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    65
rm -rf $RPM_BUILD_ROOT%{_libdir}/glibmm-2.4/proc/pm
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    66
rm -rf $RPM_BUILD_ROOT%{_libdir}/libglibmm_generate_extra_defs*.so*
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    67
rm -rf $RPM_BUILD_ROOT%{_includedir}/glibmm-2.4/glibmm_generate_extra_defs
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    68
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    69
%if %build_l10n
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    70
%else
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    71
# REMOVE l10n FILES
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    72
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    73
%endif
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    74
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    75
%clean
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    76
rm -rf $RPM_BUILD_ROOT
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    77
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    78
%post
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    79
%include desktop-database-install.script
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    80
%include scrollkeeper-update.script
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    81
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    82
%postun
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    83
test -x $BASEDIR/lib/postrun || exit 0
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    84
%include desktop-database-uninstall.script
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    85
%include scrollkeeper-update.script
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    86
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    87
%files
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    88
%defattr (-, root, bin)
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    89
%dir %attr (0755, root, bin) %{_libdir}
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    90
%{_libdir}/lib*
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    91
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    92
%files devel
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    93
%defattr (-, root, bin)
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    94
%dir %attr (0755, root, bin) %{_libdir}
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    95
%dir %attr (0755, root, other) %{_libdir}/pkgconfig
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    96
%{_libdir}/pkgconfig/*
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    97
%{_libdir}/glibmm*
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    98
%dir %attr (0755, root, sys) %{_datadir}
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    99
%dir %attr (0755, root, other) %{_datadir}/doc
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   100
%{_datadir}/doc/*
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   101
%dir %attr (0755, root, other) %{_datadir}/aclocal
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   102
%{_datadir}/aclocal/*
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   103
%dir %attr (0755, root, bin) %{_includedir}
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   104
%{_includedir}/*
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   105
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   106
%changelog
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   107
* Tue Feb 19 2008 - [email protected]
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   108
- Removed %{_libdir}/giomm* which is not in gnome 2.20
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   109
* Wed Feb 15 2008 - [email protected]
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   110
- Pack file /usr/lib/giomm-2.4/giommconfig.h.
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   111
* Thu Feb 14 2008 - [email protected]
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   112
- Remove useless m4, pm and extra_gen_defs files.
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   113
* Mon Jau 28 2008 - [email protected]
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   114
- Split into SUNWglibmm.spec and glibmm.spec.
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   115
- Change download URL to GNOME official website.
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   116
* Fri Aug 17 2007 - [email protected]
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   117
- Bump to 2.12.10
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   118
* Tue Apr 17 2007 - [email protected]
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   119
- Bump to 2.12.8.
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   120
* Fri Mar 16 2007 - [email protected]
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   121
- bump to 2.12.7
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   122
* Wed Jan 03 2007 - [email protected]
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   123
- Bump to 2.12.4
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   124
* Fri Jun 23 2006 - [email protected]
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   125
- rename to SFEglibmm
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   126
- update permissions
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   127
- bump to 2.10.4
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   128
* Fri May 12 2006 - [email protected]
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   129
- Bump to 2.10.2.
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   130
* Fri Mar 10 2006 - [email protected]
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   131
- Bump to 2.10.0.
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   132
* Thu Nov 17 2005 - [email protected]
aaeb44343873 2008-02-19 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   133
- create