/
SUNWglibmm.spec
154 lines (137 loc) · 4.38 KB
/
SUNWglibmm.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
#
# spec file for package SUNWglibmm
#
# includes module(s): glibmm
#
# Copyright (c) 2009, 2012, Oracle and/or its affiliates. All rights reserved.
#
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
%define owner gheet
#
%include Solaris.inc
%use glibmm = glibmm.spec
Name: SUNWglibmm
IPS_package_name: library/c++/glibmm
License: LGPL v2.1
Meta(info.classification): %{classification_prefix}:Desktop (GNOME)/Libraries
Summary: glibmm - C++ Wrapper for the Glib2 Library
Version: %{glibmm.version}
Source: %{name}-manpages-0.1.tar.gz
SUNW_BaseDir: %{_basedir}
SUNW_Copyright: %{name}.copyright
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%include default-depend.inc
%include desktop-incorporation.inc
BuildRequires: library/glib2
BuildRequires: library/c++/sigcpp
BuildRequires: SUNWmm-common
BuildRequires: runtime/perl-512
Requires: service/gnome/desktop-cache
%package devel
Summary: %{summary} - development files
SUNW_BaseDir: %{_basedir}
%include default-depend.inc
%include desktop-incorporation.inc
Requires: library/glib2
%prep
rm -rf %name-%version
mkdir %name-%version
%glibmm.prep -d %name-%version
cd %{_builddir}/%name-%version
gzcat %SOURCE0 | tar xf -
%build
%if %cc_is_gcc
%else
export CXX="${CXX} -norunpath"
%endif
export CXXFLAGS="%cxx_optflags"
export PERL_PATH=/usr/perl5/bin/perl
%glibmm.build -d %name-%version
%install
rm -rf $RPM_BUILD_ROOT
%glibmm.install -d %name-%version
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
cd %{_builddir}/%name-%version/sun-manpages
make install DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%post
%restart_fmri desktop-mime-cache
%postun
%restart_fmri desktop-mime-cache
%files
%defattr (-, root, bin)
%dir %attr (0755, root, bin) %{_libdir}
%{_libdir}/lib*
%dir %attr (0755, root, sys) %{_datadir}
%doc -d glibmm-%{glibmm.version} README AUTHORS
%doc(bzip2) -d glibmm-%{glibmm.version} COPYING NEWS ChangeLog
%dir %attr (0755, root, other) %{_datadir}/doc
%{_mandir}/*/*
%dir %attr (0755, root, other) %{_datadir}/glibmm-2.4/*
%dir %attr (0755, root, other) %{_datadir}/glibmm-2.4/*/*
%files devel
%defattr (-, root, bin)
%dir %attr (0755, root, bin) %{_libdir}
%dir %attr (0755, root, other) %{_libdir}/pkgconfig
%{_libdir}/pkgconfig/*
%{_libdir}/glibmm*
%{_libdir}/giomm*
%dir %attr (0755, root, sys) %{_datadir}
%dir %attr (0755, root, other) %{_datadir}/doc
%{_datadir}/doc/glibmm*
%dir %attr (0755, root, bin) %{_datadir}/devhelp
%{_datadir}/devhelp/*
%dir %attr (0755, root, other) %{_datadir}/aclocal
%{_datadir}/aclocal/*
%dir %attr (0755, root, bin) %{_includedir}
%{_includedir}/*
%changelog
* Fri Jun 26 2009 - chris.wang@sun.com
- Change owner to gheet
* Fri Apr 3 2009 - laca@sun.com
- use desktop-cache instead of postrun
* Mon Mar 23 2009 - jeff.cai@sun.com
- Since /usr/lib/glibmm-2.4/proc/beautify_docs.pl (SUNWglibmm) requires
/usr/perl5/5.8.4/bin/perl5.8.4 which is found in SUNWperl584core, add
the dependency.
* Mon Nov 10 2008 - chris.wang@sun.com
- Change the owner of the spec to chris wang
* Thu Sep 18 2008 - dave.lin@sun.com
- Fix the conflicts in /usr/share/doc between base & devel pkgs
* Wed Jul 20 2008 - simon.zheng@sun.com
- Add manpage.
* Thu Mar 27 2008 - simon.zheng@sun.com
- Add SUNWglibmm.copyright.
* Sun Mar 02 2008 - simon.zheng@sun.com
- Correct package version number.
* Fri 29 2008 - simon.zheng@sun.com
- Pack devhelp index file.
* Wed Feb 15 2008 - simon.zheng@sun.com
- Pack file /usr/lib/giomm-2.4/giommconfig.h.
* Thu Feb 14 2008 - simon.zheng@sun.com
- Remove useless m4, pm and extra_gen_defs files.
* Mon Jau 28 2008 - simon.zheng@sun.com
- Split into SUNWglibmm.spec and glibmm.spec.
- Change download URL to GNOME official website.
* Fri Aug 17 2007 - trisk@acm.jhu.edu
- Bump to 2.12.10
* Tue Apr 17 2007 - daymobrew@users.sourceforge.net
- Bump to 2.12.8.
* Fri Mar 16 2007 - laca@sun.com
- bump to 2.12.7
* Wed Jan 03 2007 - daymobrew@users.sourceforge.net
- Bump to 2.12.4
* Fri Jun 23 2006 - laca@sun.com
- rename to SFEglibmm
- update permissions
- bump to 2.10.4
* Fri May 12 2006 - damien.carbery@sun.com
- Bump to 2.10.2.
* Fri Mar 10 2006 - damien.carbery@sun.com
- Bump to 2.10.0.
* Thu Nov 17 2005 - laca@sun.com
- create