SUNWglibmm.spec
author davelam
Thu, 18 Sep 2008 11:43:05 +0000
changeset 13664 15f48d6e930f
parent 13622 18c68cbbcfe5
child 14572 33f5b3736831
permissions -rw-r--r--
2008-09-18 Dave Lin <[email protected]> * SUNWlibdaemon: Fix the attribute conflict of the dir %{_datadir}. * SUNWglibmm.spec: Fixed the conflicts in /usr/share/doc between base & devel pkgs.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
11624
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
     1
#
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
     2
# spec file for package SUNWglibmm
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
     3
#
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
     4
# includes module(s): glibmm
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
     5
#
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
     6
# # Copyright 2008 Sun Microsystems, Inc.
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
     7
# This file and all modifications and additions to the pristine
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
     8
# package are under the same license as the package itself.
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
     9
#
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    10
# Owner: SimonZheng
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    11
#
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    12
%include Solaris.inc
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    13
%use glibmm = glibmm.spec
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    14
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    15
Name:                    SUNWglibmm
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    16
Summary:                 glibmm - C++ Wrapper for the Glib2 Library
11773
b0c56dfc4139 2008-03-02 simon.zheng <[email protected]>
xz159989
parents: 11765
diff changeset
    17
Version:                 %{glibmm.version}
12956
86ad7597162f 2008-07-30 simon.zheng <[email protected]>
xz159989
parents: 11924
diff changeset
    18
Source:                  %{name}-manpages-0.1.tar.gz
11624
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    19
SUNW_BaseDir:            %{_basedir}
11924
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11773
diff changeset
    20
SUNW_Copyright:          %{name}.copyright
11624
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    21
BuildRoot:               %{_tmppath}/%{name}-%{version}-build
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    22
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    23
%include default-depend.inc
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    24
Requires: SUNWgnome-base-libs
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    25
BuildRequires: SUNWgnome-base-libs-devel
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    26
Requires: SUNWsigcpp
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    27
BuildRequires: SUNWsigcpp-devel
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    28
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    29
%package devel
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    30
Summary:                 %{summary} - development files
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    31
SUNW_BaseDir:            %{_basedir}
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    32
%include default-depend.inc
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    33
Requires: %name
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    34
Requires: SUNWgnome-base-libs-devel
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    35
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    36
%if %build_l10n
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    37
%package l10n
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    38
Summary:		 %{summary} - l10n files
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    39
SUNW_BaseDir:		 %{_basedir}
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    40
%include default-depend.inc
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    41
Requires:		 %{name}
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    42
%endif
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    43
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    44
%prep
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    45
rm -rf %name-%version
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    46
mkdir %name-%version
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    47
%glibmm.prep -d %name-%version
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    48
cd %{_builddir}/%name-%version
12956
86ad7597162f 2008-07-30 simon.zheng <[email protected]>
xz159989
parents: 11924
diff changeset
    49
gzcat %SOURCE0 | tar xf -
11624
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    50
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    51
%build
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    52
%if %cc_is_gcc
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    53
%else
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    54
export CXX="${CXX} -norunpath"
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    55
%endif
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    56
export CXXFLAGS="%cxx_optflags"
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    57
export PERL_PATH=/usr/perl5/bin/perl
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    58
%glibmm.build -d %name-%version
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    59
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    60
%install
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    61
rm -rf $RPM_BUILD_ROOT
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    62
%glibmm.install -d %name-%version
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    63
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    64
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    65
12956
86ad7597162f 2008-07-30 simon.zheng <[email protected]>
xz159989
parents: 11924
diff changeset
    66
cd %{_builddir}/%name-%version/sun-manpages
86ad7597162f 2008-07-30 simon.zheng <[email protected]>
xz159989
parents: 11924
diff changeset
    67
make install DESTDIR=$RPM_BUILD_ROOT
86ad7597162f 2008-07-30 simon.zheng <[email protected]>
xz159989
parents: 11924
diff changeset
    68
11636
3ada0c8e3831 2008-02-14 simon.zheng <[email protected]>
xz159989
parents: 11624
diff changeset
    69
# Remove useless m4, pm and extra_gen_defs files 
3ada0c8e3831 2008-02-14 simon.zheng <[email protected]>
xz159989
parents: 11624
diff changeset
    70
rm -rf $RPM_BUILD_ROOT%{_libdir}/glibmm-2.4/proc/m4
3ada0c8e3831 2008-02-14 simon.zheng <[email protected]>
xz159989
parents: 11624
diff changeset
    71
rm -rf $RPM_BUILD_ROOT%{_libdir}/glibmm-2.4/proc/pm
3ada0c8e3831 2008-02-14 simon.zheng <[email protected]>
xz159989
parents: 11624
diff changeset
    72
rm -rf $RPM_BUILD_ROOT%{_libdir}/libglibmm_generate_extra_defs*.so*
3ada0c8e3831 2008-02-14 simon.zheng <[email protected]>
xz159989
parents: 11624
diff changeset
    73
rm -rf $RPM_BUILD_ROOT%{_includedir}/glibmm-2.4/glibmm_generate_extra_defs
3ada0c8e3831 2008-02-14 simon.zheng <[email protected]>
xz159989
parents: 11624
diff changeset
    74
11624
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    75
%if %build_l10n
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    76
%else
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    77
# REMOVE l10n FILES
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    78
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    79
%endif
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    80
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    81
%clean
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    82
rm -rf $RPM_BUILD_ROOT
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    83
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    84
%post
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    85
%include desktop-database-install.script
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    86
%include scrollkeeper-update.script
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    87
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    88
%postun
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    89
test -x $BASEDIR/lib/postrun || exit 0
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    90
%include desktop-database-uninstall.script
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    91
%include scrollkeeper-update.script
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    92
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    93
%files
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    94
%defattr (-, root, bin)
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    95
%dir %attr (0755, root, bin) %{_libdir}
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    96
%{_libdir}/lib*
12957
c878676e661d 2008-07-30 simon.zheng <[email protected]>
xz159989
parents: 12956
diff changeset
    97
%dir %attr (0755, root, sys) %{_datadir}
13622
18c68cbbcfe5 2008-09-17 simon.zheng <[email protected]>
xz159989
parents: 12957
diff changeset
    98
%doc -d glibmm-%{glibmm.version} README AUTHORS
18c68cbbcfe5 2008-09-17 simon.zheng <[email protected]>
xz159989
parents: 12957
diff changeset
    99
%doc(bzip2) -d glibmm-%{glibmm.version} COPYING NEWS ChangeLog
18c68cbbcfe5 2008-09-17 simon.zheng <[email protected]>
xz159989
parents: 12957
diff changeset
   100
%dir %attr (0755, root, other) %{_datadir}/doc
12956
86ad7597162f 2008-07-30 simon.zheng <[email protected]>
xz159989
parents: 11924
diff changeset
   101
%{_mandir}/*/*
11624
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   102
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   103
%files devel
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   104
%defattr (-, root, bin)
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   105
%dir %attr (0755, root, bin) %{_libdir}
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   106
%dir %attr (0755, root, other) %{_libdir}/pkgconfig
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   107
%{_libdir}/pkgconfig/*
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   108
%{_libdir}/glibmm*
11641
0be7e5444dad 2008-02-15 simon.zheng <[email protected]>
xz159989
parents: 11636
diff changeset
   109
%{_libdir}/giomm*
11624
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   110
%dir %attr (0755, root, sys) %{_datadir}
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   111
%dir %attr (0755, root, other) %{_datadir}/doc
13664
15f48d6e930f 2008-09-18 Dave Lin <[email protected]>
davelam
parents: 13622
diff changeset
   112
%{_datadir}/doc/glibmm*
11765
5b0fdf290175 2008-02-29 simon.zheng <[email protected]>
xz159989
parents: 11641
diff changeset
   113
%dir %attr (0755, root, bin) %{_datadir}/devhelp
5b0fdf290175 2008-02-29 simon.zheng <[email protected]>
xz159989
parents: 11641
diff changeset
   114
%{_datadir}/devhelp/*
11624
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   115
%dir %attr (0755, root, other) %{_datadir}/aclocal
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   116
%{_datadir}/aclocal/*
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   117
%dir %attr (0755, root, bin) %{_includedir}
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   118
%{_includedir}/*
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   119
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   120
%changelog
13664
15f48d6e930f 2008-09-18 Dave Lin <[email protected]>
davelam
parents: 13622
diff changeset
   121
* Thu Sep 18 2008 - [email protected]
15f48d6e930f 2008-09-18 Dave Lin <[email protected]>
davelam
parents: 13622
diff changeset
   122
- Fix the conflicts in /usr/share/doc between base & devel pkgs
12956
86ad7597162f 2008-07-30 simon.zheng <[email protected]>
xz159989
parents: 11924
diff changeset
   123
* Wed Jul 20 2008 - [email protected]
86ad7597162f 2008-07-30 simon.zheng <[email protected]>
xz159989
parents: 11924
diff changeset
   124
- Add manpage.
11924
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11773
diff changeset
   125
* Thu Mar 27 2008 - [email protected]
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11773
diff changeset
   126
- Add SUNWglibmm.copyright.
11773
b0c56dfc4139 2008-03-02 simon.zheng <[email protected]>
xz159989
parents: 11765
diff changeset
   127
* Sun Mar 02 2008 - [email protected]
b0c56dfc4139 2008-03-02 simon.zheng <[email protected]>
xz159989
parents: 11765
diff changeset
   128
- Correct package version number.
11765
5b0fdf290175 2008-02-29 simon.zheng <[email protected]>
xz159989
parents: 11641
diff changeset
   129
* Fri 29 2008 - [email protected]
5b0fdf290175 2008-02-29 simon.zheng <[email protected]>
xz159989
parents: 11641
diff changeset
   130
- Pack devhelp index file. 
11641
0be7e5444dad 2008-02-15 simon.zheng <[email protected]>
xz159989
parents: 11636
diff changeset
   131
* Wed Feb 15 2008 - [email protected]
0be7e5444dad 2008-02-15 simon.zheng <[email protected]>
xz159989
parents: 11636
diff changeset
   132
- Pack file /usr/lib/giomm-2.4/giommconfig.h.
11636
3ada0c8e3831 2008-02-14 simon.zheng <[email protected]>
xz159989
parents: 11624
diff changeset
   133
* Thu Feb 14 2008 - [email protected]
3ada0c8e3831 2008-02-14 simon.zheng <[email protected]>
xz159989
parents: 11624
diff changeset
   134
- Remove useless m4, pm and extra_gen_defs files.
11624
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   135
* Mon Jau 28 2008 - [email protected]
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   136
- Split into SUNWglibmm.spec and glibmm.spec.
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   137
- Change download URL to GNOME official website.
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   138
* Fri Aug 17 2007 - [email protected]
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   139
- Bump to 2.12.10
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   140
* Tue Apr 17 2007 - [email protected]
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   141
- Bump to 2.12.8.
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   142
* Fri Mar 16 2007 - [email protected]
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   143
- bump to 2.12.7
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   144
* Wed Jan 03 2007 - [email protected]
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   145
- Bump to 2.12.4
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   146
* Fri Jun 23 2006 - [email protected]
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   147
- rename to SFEglibmm
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   148
- update permissions
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   149
- bump to 2.10.4
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   150
* Fri May 12 2006 - [email protected]
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   151
- Bump to 2.10.2.
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   152
* Fri Mar 10 2006 - [email protected]
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   153
- Bump to 2.10.0.
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   154
* Thu Nov 17 2005 - [email protected]
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   155
- create