11624
|
1 |
#
|
|
2 |
# spec file for package glibmm
|
|
3 |
#
|
|
4 |
# Copyright 2008 Sun Microsystems, Inc.
|
|
5 |
# This file and all modifications and additions to the pristine
|
|
6 |
# package are under the same license as the package itself.
|
|
7 |
#
|
|
8 |
# Owner: simonzheng
|
|
9 |
#
|
|
10 |
%include Solaris.inc
|
|
11 |
|
|
12 |
Name: glibmm
|
|
13 |
License: LGPL
|
|
14 |
Group: System/Libraries
|
12848
|
15 |
Version: 2.17.1
|
11624
|
16 |
Release: 1
|
|
17 |
Distribution: Java Desktop System
|
|
18 |
Vendor: Sun Microsystems, Inc.
|
|
19 |
Summary: glibmm - C++ Wrapper for the Glib2 Library
|
|
20 |
URL: http://www.gtkmm.org/
|
12684
|
21 |
Source: http://ftp.gnome.org/pub/GNOME/sources/glibmm/2.17/%{name}-%{version}.tar.bz2
|
11636
|
22 |
# date:2008-02-14 owner:xz159989 type:branding
|
|
23 |
Patch1: glibmm-01-build.diff
|
11663
|
24 |
# date:2008-02-18 owner:dcarbery type:bug bugzilla:423990
|
|
25 |
Patch2: glibmm-02-m4-macro.diff
|
11624
|
26 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
27 |
BuildRequires: libsigc++-devel >= 2.0.0
|
|
28 |
BuildRequires: glib2-devel >= 2.9.0
|
|
29 |
|
|
30 |
%package devel
|
|
31 |
Summary: Headers for developing programs that will use %{name}.
|
|
32 |
Group: System/Libraries
|
|
33 |
Requires: libsigc++-devel >= 1.2.0
|
|
34 |
Requires: glib2-devel >= 2.9.0
|
|
35 |
|
|
36 |
%prep
|
|
37 |
%setup -q -n glibmm-%version
|
11636
|
38 |
%patch1 -p0
|
11663
|
39 |
%patch2 -p1
|
11624
|
40 |
|
|
41 |
%build
|
|
42 |
%ifos linux
|
|
43 |
if [ -x /usr/bin/getconf ]; then
|
|
44 |
CPUS=`getconf _NPROCESSORS_ONLN`
|
|
45 |
fi
|
|
46 |
%else
|
|
47 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
48 |
%endif
|
|
49 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
50 |
CPUS=1
|
|
51 |
fi
|
|
52 |
|
11663
|
53 |
aclocal $ACLOCAL_FLAGS -Iscripts
|
|
54 |
autoconf
|
11624
|
55 |
./configure --prefix=%{_prefix} --mandir=%{_mandir} \
|
|
56 |
--libdir=%{_libdir} \
|
|
57 |
--libexecdir=%{_libexecdir} \
|
|
58 |
--sysconfdir=%{_sysconfdir} --disable-python
|
|
59 |
make -j$CPUS
|
|
60 |
|
|
61 |
%install
|
|
62 |
rm -rf $RPM_BUILD_ROOT
|
|
63 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
64 |
|
|
65 |
cp examples/child_watch/.libs/child_watch $RPM_BUILD_ROOT%{_datadir}/doc/glibmm-2.4/examples/child_watch/child_watch
|
|
66 |
cp examples/iochannel_stream/.libs/example $RPM_BUILD_ROOT%{_datadir}/doc/glibmm-2.4/examples/iochannel_stream/example
|
|
67 |
cp examples/markup/.libs/parser $RPM_BUILD_ROOT%{_datadir}/doc/glibmm-2.4/examples/markup/parser
|
|
68 |
cp examples/markup/test.xml $RPM_BUILD_ROOT%{_datadir}/doc/glibmm-2.4/examples/markup/test.xml
|
|
69 |
cp examples/options/.libs/example $RPM_BUILD_ROOT%{_datadir}/doc/glibmm-2.4/examples/options/example
|
|
70 |
cp examples/regex/.libs/example $RPM_BUILD_ROOT%{_datadir}/doc/glibmm-2.4/examples/regex/example
|
|
71 |
cp examples/thread/.libs/dispatcher $RPM_BUILD_ROOT%{_datadir}/doc/glibmm-2.4/examples/thread/dispatcher
|
|
72 |
cp examples/thread/.libs/dispatcher2 $RPM_BUILD_ROOT%{_datadir}/doc/glibmm-2.4/examples/thread/dispatcher2
|
|
73 |
cp examples/thread/.libs/thread $RPM_BUILD_ROOT%{_datadir}/doc/glibmm-2.4/examples/thread/thread
|
|
74 |
cp examples/thread/.libs/threadpool $RPM_BUILD_ROOT%{_datadir}/doc/glibmm-2.4/examples/thread/threadpool
|
|
75 |
|
|
76 |
%clean
|
|
77 |
rm -rf $RPM_BUILD_ROOT
|
|
78 |
|
|
79 |
%changelog
|
12849
|
80 |
* Fri Jul 18 2008 - [email protected]
|
12848
|
81 |
- Bump to 2.17.1.
|
12684
|
82 |
* Tue Jun 17 2008 - [email protected]
|
|
83 |
- Bump to 2.17.0.
|
12241
|
84 |
* Thu May 02 2008 - [email protected]
|
|
85 |
- Bump to 2.16.2.
|
11978
|
86 |
* Mon Mar 31 2008 - [email protected]
|
|
87 |
- Bump to 2.16.1.
|
11842
|
88 |
* Tue Mar 11 2008 - [email protected]
|
|
89 |
- Bump to 2.16.0. Remove upstream patch 03-overloading-ambiguity.
|
11792
|
90 |
* Wed Mar 5 2008 - [email protected]
|
|
91 |
- To fix failure of building with SS11 compiler, add patch
|
|
92 |
04-overloading-ambiguity. Add an explicit template specification
|
|
93 |
to avoid ction to avoid ambiguity. Fix is from glibmm maintainer
|
|
94 |
[email protected], and also go upstream.
|
|
95 |
available on next tarball.
|
11787
|
96 |
* Tue Mar 4 2008 - [email protected]
|
|
97 |
- Bump to 2.15.8.
|
11725
|
98 |
* Tue Feb 26 2008 - [email protected]
|
|
99 |
- Bump to 2.15.7.
|
11709
|
100 |
* Mon Feb 25 2008 - [email protected]
|
|
101 |
- Bump to 2.15.6.
|
11663
|
102 |
* Mon Feb 18 2008 - [email protected]
|
|
103 |
- Add patch 02-m4-macro to build on sparc. The GNU m4 check was failing because
|
|
104 |
'[Mm]' in the aclocal code was losing the brackets when aclocal/autoconf
|
|
105 |
created the configure script.
|
11641
|
106 |
* Wed Feb 15 2008 - [email protected]
|
|
107 |
- Correct download URL.
|
11636
|
108 |
* Tue Feb 14 2008 - [email protected]
|
|
109 |
- Bump to Version 2.15.5.
|
|
110 |
- Add glibmm-01-build.diff.
|
|
111 |
- Remove glimm-01-gtestutils.diff.
|
11635
|
112 |
* Thu Feb 14 2008 - [email protected]
|
|
113 |
- Add patch 01-gtestutils to include glib/gtestutils.h in some source files to
|
|
114 |
define g_assert macro.
|
11624
|
115 |
* Tue Feb 12 2008 - [email protected]
|
|
116 |
- Added all the examples to the /usr/share/doc.
|
|
117 |
Also cleaned out %files and %files-devel where are not used here.
|
|
118 |
* Mon Jan 28 2008 - [email protected]
|
|
119 |
- Create. Split from SFEglibmm and bump to version 2.14.2.
|