]> git.pld-linux.org Git - packages/gtkmm.git/blob - gtkmm.spec
87ec268ef82f72f2df41d4abb086d9ba9af758fd
[packages/gtkmm.git] / gtkmm.spec
1 %include        /usr/lib/rpm/macros.perl
2 Summary:        A C++ interface for the GTK+ (a GUI library for X)
3 Summary(pl):    Wrapper C++ dla GTK+
4 Name:           gtkmm
5 Version:        2.2.1
6 Release:        1
7 License:        LGPL
8 Group:          X11/Libraries
9 Source0:        http://ftp.gnome.org/pub/GNOME/sources/gtkmm/2.2/gtkmm-%{version}.tar.bz2
10 # Source0-md5:  7cf0914a7cc677554d756ab481e72990
11 Patch0:         %{name}-DESTDIR.patch
12 Patch1:         %{name}-link.patch
13 Patch2:         %{name}-acfix.patch
14 URL:            http://gtkmm.sourceforge.net/
15 BuildRequires:  atk-devel >= 1.2.0
16 BuildRequires:  autoconf
17 BuildRequires:  automake
18 BuildRequires:  esound-devel
19 BuildRequires:  glib2-devel >= 2.2.1
20 BuildRequires:  gtk+2-devel >= 2.2.1
21 BuildRequires:  libsigc++-devel >= 1.2.1
22 BuildRequires:  libstdc++-devel
23 BuildRequires:  libtool
24 BuildRequires:  pango-devel >= 1.2.1
25 BuildRequires:  perl >= 5.6
26 BuildRequires:  pkgconfig
27 BuildRequires:  rpm-perlprov >= 3.0.3-16
28 BuildRequires:  zlib-devel
29 Requires:       %{name}-glib = %{version}
30 Requires:       %{name}-pango = %{version}
31 Requires:       %{name}-atk = %{version}
32 Requires:       cpp
33 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 Obsoletes:      Gtk--
35
36 %description
37 This package provides a C++ interface for GTK+ (the Gimp ToolKit) GUI
38 library. The interface provides a convenient interface for C++
39 programmers to create GUIs with GTK+'s flexible object-oriented
40 framework. Features include type safe callbacks, widgets that are
41 extensible using inheritance and over 110 classes that can be freely
42 combined to quickly create complex user interfaces.
43
44 %description -l pl
45 GTK-- jest wrapperem C++ dla Gimp ToolKit (GTK). GTK jest bibliotek±
46 s³u¿±c± do tworzenia graficznych interfejsów. W pakiecie znajduje siê
47 tak¿e biblioteka GDK-- - wrapper C++ dla GDK (General Drawing Kit).
48
49 %package devel
50 Summary:        GTK-- and GDK-- header files, development documentation
51 Summary(pl):    Pliki nag³ówkowe GTK-- i GDK--, dokumentacja dla programistów
52 Group:          X11/Development/Libraries
53 Requires:       %{name} = %{version}
54 Requires:       %{name}-glib-devel = %{version}
55 Requires:       %{name}-pango-devel = %{version}
56 Requires:       %{name}-atk-devel = %{version}
57 Requires:       gtk+2-devel >= 2.2.1
58 Requires:       libsigc++-devel >= 1.2.1
59
60 %description devel
61 Header files and development documentation for GTK-- library.
62
63 %description devel -l pl
64 Pliki nag³ówkowe i dokumentacja dla programistów do biblioteki GTK--.
65
66 %package static
67 Summary:        GTK-- and GDK-- static libraries
68 Summary(pl):    Biblioteki statyczne GTK-- i GDK--
69 Group:          X11/Development/Libraries
70 Requires:       %{name}-devel = %{version}
71
72 %description static
73 GTK-- and GDK-- static libraries.
74
75 %description static -l pl
76 Biblioteki statyczne GTK-- i GDK--.
77
78 %package atk
79 Summary:        A C++ interface for atk library
80 Summary(pl):    Interfejs C++ dla biblioteki atk
81 Group:          X11/Development/Libraries
82 Requires:       %{name}-glib = %{version}
83
84 %description atk
85 A C++ interface for atk library.
86
87 %description atk -l pl
88 Interfejs C++ dla biblioteki atk.
89
90 %package atk-devel
91 Summary:        A C++ interface for atk library - header files
92 Summary(pl):    Interfejs C++ dla biblioteki atk - pliki nag³ówkowe
93 Group:          X11/Development/Libraries
94 Requires:       %{name}-atk = %{version}
95 Requires:       %{name}-glib-devel = %{version}
96 Requires:       atk-devel >= 1.2.0
97
98 %description atk-devel
99 A C++ interface for atk library - header files.
100
101 %description atk-devel -l pl
102 Interfejs C++ dla biblioteki atk - pliki nag³ówkowe.
103
104 %package atk-static
105 Summary:        A C++ interface for atk library - static version
106 Summary(pl):    Interfejs C++ dla biblioteki atk - wersja statyczna
107 Group:          X11/Development/Libraries
108 Requires:       %{name}-atk-devel = %{version}
109
110 %description atk-static
111 A C++ interface for atk library - static version.
112
113 %description atk-static -l pl
114 Interfejs C++ dla biblioteki atk - wersja statyczna.
115
116 %package glib
117 Summary:        A C++ interface for glib library
118 Summary(pl):    Interfejs C++ dla biblioteki glib
119 Group:          X11/Development/Libraries
120
121 %description glib
122 A C++ interface for glib library.
123
124 %description glib -l pl
125 Interfejs C++ dla biblioteki glib.
126
127 %package glib-devel
128 Summary:        A C++ interface for glib library - header files
129 Summary(pl):    Interfejs C++ dla biblioteki glib - pliki nag³ówkowe
130 Group:          X11/Development/Libraries
131 Requires:       %{name}-glib-devel = %{version}
132 Requires:       glib2-devel >= 2.2.1
133 Requires:       libsigc++-devel >= 1.2.1
134
135 %description glib-devel
136 A C++ interface for glib library - header files.
137
138 %description glib-devel -l pl
139 Interfejs C++ dla biblioteki glib - pliki nag³ówkowe.
140
141 %package glib-static
142 Summary:        A C++ interface for glib library - static version
143 Summary(pl):    Interfejs C++ dla biblioteki glib - wersja statyczna
144 Group:          X11/Development/Libraries
145 Requires:       %{name}-glib-devel = %{version}
146
147 %description glib-static
148 A C++ interface for glib library - static version.
149
150 %description glib-static -l pl
151 Interfejs C++ dla biblioteki glib - wersja statyczna.
152
153 %package pango
154 Summary:        A C++ interface for pango library
155 Summary(pl):    Interfejs C++ dla biblioteki pango
156 Group:          X11/Development/Libraries
157 Requires:       %{name}-glib = %{version}
158
159 %description pango
160 A C++ interface for pango library.
161
162 %description pango -l pl
163 Interfejs C++ dla biblioteki pango.
164
165 %package pango-devel
166 Summary:        A C++ interface for pango library - header files
167 Summary(pl):    Interfejs C++ dla biblioteki pango - pliki nag³ówkowe
168 Group:          X11/Development/Libraries
169 Requires:       %{name}-pango = %{version}
170 Requires:       %{name}-glib-devel = %{version}
171 Requires:       pango-devel >= 1.2.1
172
173 %description pango-devel
174 A C++ interface for pango library - header files.
175
176 %description pango-devel -l pl
177 Interfejs C++ dla biblioteki pango - pliki nag³ówkowe.
178
179 %package pango-static
180 Summary:        A C++ interface for pango library - static version
181 Summary(pl):    Interfejs C++ dla biblioteki pango - wersja statyczna
182 Group:          X11/Development/Libraries
183 Requires:       %{name}-pango-devel = %{version}
184
185 %description pango-static
186 A C++ interface for pango library - static version.
187
188 %description pango-static -l pl
189 Interfejs C++ dla biblioteki pango - wersja statyczna.
190
191 %prep
192 %setup -q -n gtkmm-%{version}
193 %patch0 -p1
194 %patch1 -p1
195 %patch2 -p1
196
197 %build
198 %{__libtoolize}
199 %{__aclocal} -I scripts
200 %{__autoconf}
201 %{__autoheader}
202 %{__automake}
203 # exceptions and rtti are used in this package --misiek
204 %configure \
205         --enable-static=yes
206 %{__make}
207
208 %install
209 rm -rf $RPM_BUILD_ROOT
210
211 %{__make} install \
212         DESTDIR=$RPM_BUILD_ROOT \
213         pkgconfigdir=%{_pkgconfigdir}
214
215 mv -f $RPM_BUILD_ROOT%{_docdir}/gtkmm-2.0/docs installed-docs
216 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
217 mv -f $RPM_BUILD_ROOT%{_docdir}/gtkmm-2.0/examples/* \
218         $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
219
220 %clean
221 rm -rf $RPM_BUILD_ROOT
222
223 %post   -p /sbin/ldconfig
224 %postun -p /sbin/ldconfig
225
226 %post   -n %{name}-atk -p /sbin/ldconfig
227 %postun -n %{name}-atk -p /sbin/ldconfig
228
229 %post   -n %{name}-glib -p /sbin/ldconfig
230 %postun -n %{name}-glib -p /sbin/ldconfig
231
232 %post   -n %{name}-pango -p /sbin/ldconfig
233 %postun -n %{name}-pango -p /sbin/ldconfig
234
235 %files
236 %defattr(644,root,root,755)
237 %doc README ChangeLog AUTHORS NEWS
238 %attr(755,root,root) %{_libdir}/libg[dt]kmm*.so.*.*
239
240 %files devel
241 %defattr(644,root,root,755)
242 %doc installed-docs/*
243 %attr(755,root,root) %{_libdir}/libg[dt]kmm*.so
244 %{_libdir}/libg[dt]kmm*.la
245
246 %{_libdir}/gtkmm-*/include/g[dt]kmm*
247 %dir %{_libdir}/gtkmm-2.0/proc
248 %{_libdir}/gtkmm-*/proc/m4
249 %{_libdir}/gtkmm-*/proc/pm
250 %attr(755,root,root) %{_libdir}/gtkmm-*/proc/gtkmmproc
251 %attr(755,root,root) %{_libdir}/gtkmm-*/proc/*.pl
252
253 %{_includedir}/gtkmm-2.0/g[dt]kmm*
254 %{_pkgconfigdir}/g[dt]kmm*.pc
255 %{_examplesdir}/%{name}-%{version}
256
257 %files static
258 %defattr(644,root,root,755)
259 %{_libdir}/libg[dt]kmm*.a
260
261 %files atk
262 %defattr(644,root,root,755)
263 %attr(755,root,root) %{_libdir}/libatkmm*.so.*.*
264
265 %files atk-devel
266 %defattr(644,root,root,755)
267 %attr(755,root,root) %{_libdir}/libatkmm*.so
268 %{_libdir}/libatkmm*.la
269 %{_pkgconfigdir}/atkmm*.pc
270 %{_includedir}/gtkmm-2.0/atkmm*
271
272 %files atk-static
273 %defattr(644,root,root,755)
274 %{_libdir}/libatkmm*.a
275
276 %files glib
277 %defattr(644,root,root,755)
278 %attr(755,root,root) %{_libdir}/libglibmm*.so.*.*
279
280 %files glib-devel
281 %defattr(644,root,root,755)
282 %attr(755,root,root) %{_libdir}/libglibmm*.so
283 %{_libdir}/libglibmm*.la
284
285 %dir %{_libdir}/gtkmm-2.0
286 %dir %{_libdir}/gtkmm-2.0/include
287 %{_libdir}/gtkmm-*/include/glibmm*
288
289 %dir %{_includedir}/gtkmm-2.0
290 %{_includedir}/gtkmm-2.0/glibmm*
291 %{_pkgconfigdir}/glibmm*.pc
292
293 %files glib-static
294 %defattr(644,root,root,755)
295 %{_libdir}/libglibmm*.a
296
297 %files pango
298 %defattr(644,root,root,755)
299 %attr(755,root,root) %{_libdir}/libpangomm*.so.*.*
300
301 %files pango-devel
302 %defattr(644,root,root,755)
303 %attr(755,root,root) %{_libdir}/libpangomm*.so
304 %{_libdir}/libpangomm*.la
305 %{_pkgconfigdir}/pangomm*.pc
306 %{_includedir}/gtkmm-2.0/pangomm*
307
308 %files pango-static
309 %defattr(644,root,root,755)
310 %{_libdir}/libpangomm*.a
This page took 0.081055 seconds and 2 git commands to generate.