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