1 | %define name gtkmm |
---|
2 | %define version 1.2.10 |
---|
3 | %define release 0vl3 |
---|
4 | |
---|
5 | Summary: A C++ interface for the GTK+ (a GUI library for X). |
---|
6 | Name: %{name} |
---|
7 | Version: %{version} |
---|
8 | Release: %{release} |
---|
9 | License: LGPL |
---|
10 | Group: System Environment/Libraries |
---|
11 | Source: ftp://ftp.gtk.org/pub/gtk/gtk--/%{name}-%{version}.tar.bz2 |
---|
12 | URL: http://gtkmm.sourceforge.net/ |
---|
13 | Obsoletes: Gtk--, gtk-- |
---|
14 | Buildroot: %{_tmppath}/%{name}-%{version}-root |
---|
15 | Requires: gtk+, glib, libsigc++10 |
---|
16 | BuildPrereq: gtk+-devel, glib-devel, libsigc++10-devel |
---|
17 | |
---|
18 | %description |
---|
19 | This package provides a C++ interface for GTK+ (the Gimp ToolKit) GUI |
---|
20 | library. The interface provides a convenient interface for C++ |
---|
21 | programmers to create GUIs with GTK+'s flexible object-oriented framework. |
---|
22 | Features include type safe callbacks, widgets that are extensible using |
---|
23 | inheritance and over 110 classes that can be freely combined to quickly |
---|
24 | create complex user interfaces. |
---|
25 | |
---|
26 | %package devel |
---|
27 | Summary: Headers for developing programs that will use Gtk--. |
---|
28 | Group: Development/Libraries |
---|
29 | Obsoletes: Gtk---devel, gtk---devel |
---|
30 | Requires: %{name}, gtk+-devel, glib-devel, libsigc++10-devel |
---|
31 | |
---|
32 | %description devel |
---|
33 | This package contains the headers that programmers will need to develop |
---|
34 | applications which will use Gtk--, the C++ interface to the GTK+ |
---|
35 | (the Gimp ToolKit) GUI library. |
---|
36 | |
---|
37 | %prep |
---|
38 | %setup -q |
---|
39 | |
---|
40 | %build |
---|
41 | |
---|
42 | # ...hope this can be removed soon |
---|
43 | %ifarch alpha |
---|
44 | ARCH_FLAGS="--host=alpha-linux-gnu" |
---|
45 | %endif |
---|
46 | |
---|
47 | # Needed for snapshot releases. |
---|
48 | if [ ! -f configure ]; then |
---|
49 | CFLAGS="%{optflags}" CXXFLAGS="%{optflags}" ./autogen.sh $ARCH_FLAGS \ |
---|
50 | --prefix=%{_prefix} \ |
---|
51 | --disable-static \ |
---|
52 | --enable-shared --enable-docs |
---|
53 | else |
---|
54 | CFLAGS="%{optflags}" CXXFLAGS="%{optflags}" ./configure $ARCH_FLAGS \ |
---|
55 | --prefix=%{_prefix} \ |
---|
56 | --disable-maintainer-mode \ |
---|
57 | --disable-static \ |
---|
58 | --enable-shared --enable-docs |
---|
59 | fi |
---|
60 | |
---|
61 | if [ "$SMP" != "" ]; then |
---|
62 | make -j$SMP "MAKE=make -j$SMP" |
---|
63 | make |
---|
64 | else |
---|
65 | make |
---|
66 | fi |
---|
67 | |
---|
68 | # since the tutorial and FAQ is not build by default |
---|
69 | #make -C docs/tutorial/ |
---|
70 | #make -C docs/FAQ/ |
---|
71 | |
---|
72 | %install |
---|
73 | if [ -d %{buildroot} ]; then rm -rf %{buildroot}; fi |
---|
74 | make DESTDIR=%{buildroot} install |
---|
75 | |
---|
76 | # replace examples.conf by a really simple one |
---|
77 | echo 'CXXBUILD = g++ -O2 $< -o $@ `gtkmm-config --cflags --libs` ' \ |
---|
78 | > examples/examples.conf |
---|
79 | |
---|
80 | rm examples/Makefile.am examples/Makefile.in examples/Makefile |
---|
81 | rm examples/examples.conf.in |
---|
82 | |
---|
83 | # strip down the docs |
---|
84 | # find docs/ \ |
---|
85 | # \( -name 'Makefile' -or \ |
---|
86 | # -name 'Makefile.in' -or \ |
---|
87 | # -name 'Makefile.am' -or \ |
---|
88 | # -name '*.m4' -or \ |
---|
89 | # -name 'html' -or \ |
---|
90 | # -name 'header' -or \ |
---|
91 | # -name '*.h' \ |
---|
92 | # \) -exec rm -rf {} \; |
---|
93 | |
---|
94 | %post -p /sbin/ldconfig |
---|
95 | |
---|
96 | %postun -p /sbin/ldconfig |
---|
97 | |
---|
98 | %clean |
---|
99 | rm -rf %{buildroot} |
---|
100 | |
---|
101 | %files |
---|
102 | %defattr(-, root, root) |
---|
103 | %doc AUTHORS COPYING ChangeLog INSTALL NEWS README |
---|
104 | %{_libdir}/*.so.* |
---|
105 | |
---|
106 | %files devel |
---|
107 | %defattr(-, root, root) |
---|
108 | %doc examples/ docs/ AUTHORS COPYING ChangeLog INSTALL NEWS README |
---|
109 | %{_bindir}/* |
---|
110 | %{_includedir}/*.h |
---|
111 | %{_includedir}/gdk-- |
---|
112 | %{_includedir}/gtk-- |
---|
113 | %{_libdir}/*.la |
---|
114 | #{_libdir}/*.a |
---|
115 | %{_libdir}/*.so |
---|
116 | %{_libdir}/gtkmm/* |
---|
117 | %{_datadir}/aclocal/gtk--.m4 |
---|
118 | |
---|
119 | ########################################################################### |
---|
120 | %changelog |
---|
121 | * Sun Dec 14 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.10-0vl3 |
---|
122 | - Rename Requires: libsigc++10 and BuildRequires: libsigc++10 |
---|
123 | |
---|
124 | * Sat Oct 4 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.10-0vl2 |
---|
125 | - rebuild to remove dependancy |
---|
126 | - s/Copyright/License/ |
---|
127 | |
---|
128 | * Mon Dec 2 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.10-0vl1 |
---|
129 | - new upstream release |
---|
130 | - rebuild with new toolchain |
---|
131 | |
---|
132 | * Mon Jun 10 2002 Tomoya TAKA <taka@vinelinux.org> 1.2.9-0vl1 |
---|
133 | - update to 1.2.9 |
---|
134 | - arrange spec file |
---|
135 | |
---|
136 | * Thu Feb 07 2002 Satoshi IWMAOTO <satoshi.iwamoto@nifty.ne.jp> |
---|
137 | - 1.2.8-0vl2 |
---|
138 | - fix files list |
---|
139 | |
---|
140 | * Wed Feb 06 2002 Satoshi IWMAOTO <satoshi.iwamoto@nifty.ne.jp> |
---|
141 | - 1.2.8-0vl1 |
---|
142 | - update source |
---|
143 | - Build for Vine Linux 2.5 |
---|
144 | |
---|
145 | * Wed Feb 21 2001 yoneda kenji <yoneda@n.isl.titech.ac.jp> |
---|
146 | - packaged for Vine Linux 2.1 |
---|
147 | |
---|
148 | * Sun May 21 2000 Herbert Valerio Riedel <hvr@gnu.org> |
---|
149 | - fixed up documentation in gtkmm-devel |
---|
150 | |
---|
151 | * Sun May 07 2000 Herbert Valerio Riedel <hvr@gnu.org> |
---|
152 | - CXXFLAGS are set too |
---|
153 | |
---|
154 | * Sun Feb 20 2000 Herbert Valerio Riedel <hvr@gnu.org> |
---|
155 | - gnome-- and gtk-- are packaged separately |
---|
156 | |
---|
157 | * Fri Jan 28 2000 Herbert Valerio Riedel <hvr@gnu.org> |
---|
158 | - adapted to the new docs |
---|
159 | |
---|
160 | * Sun Jan 2 2000 Herbert Valerio Riedel <hvr@gnu.org> |
---|
161 | - examples should be makeable now |
---|
162 | |
---|
163 | * Sun Dec 26 1999 Herbert Valerio Riedel <hvr@gnu.org> |
---|
164 | - commented out manpages for now... |
---|
165 | |
---|
166 | * Sat Dec 25 1999 Herbert Valerio Riedel <hvr@gnu.org> |
---|
167 | - added dependancies on libsigc++ |
---|
168 | |
---|
169 | * Sat Nov 6 1999 Herbert Valerio Riedel <hvr@gnu.org> |
---|
170 | - cleanup for 1.1.x |
---|
171 | - changed rpm package name from Gtk-- to gtkmm |
---|
172 | - removed that static hack |
---|
173 | |
---|
174 | * Sat Oct 21 1999 Karl Einar Nelson <kenelson@ece.ucdavis.edu> |
---|
175 | - Changed dist from Gtk--- to gtkmm- |
---|
176 | |
---|
177 | * Sat Sep 11 1999 Herbert Valerio Riedel <hvr@gnu.org> |
---|
178 | - added SMP support |
---|
179 | - added custom release feature |
---|
180 | |
---|
181 | * Sun Aug 1 1999 Herbert Valerio Riedel <hvr@gnu.org> |
---|
182 | - Updated to gtk---1.1.x |
---|
183 | |
---|
184 | * Thu Jul 29 1999 Herbert Valerio Riedel <hvr@gnu.org> |
---|
185 | - Updated to gtk---1.0.x |
---|
186 | - Merged in changes from redhat's gtk--.spec |
---|
187 | - conditional build of static libraries by define 'STATIC' |
---|
188 | |
---|
189 | * Thu May 10 1998 Bibek Sahu <scorpio@dodds.net> |
---|
190 | - Upgraded to gtk---0.9.3 |
---|
191 | |
---|
192 | * Thu Apr 30 1998 Bibek Sahu <scorpio@dodds.net> |
---|
193 | - Fixed problem with gtk---devel requiring libgtk-- (not gtk--). Oops. |
---|
194 | |
---|
195 | * Thu Apr 30 1998 Bibek Sahu <scorpio@dodds.net> |
---|
196 | - Fixed problem with most of the headers not being included. |
---|
197 | |
---|
198 | * Thu Apr 30 1998 Bibek Sahu <scorpio@dodds.net> |
---|
199 | - Upgraded to gtk---0.9.1 |
---|
200 | |
---|
201 | * Tue Apr 28 1998 Bibek Sahu <scorpio@dodds.net> |
---|
202 | - Fixed to build gtk-- and gtk---devel packages. |
---|
203 | |
---|
204 | * Tue Apr 28 1998 Bibek Sahu <scorpio@dodds.net> |
---|
205 | - First (s)rpm build. |
---|
206 | |
---|