]> git.pld-linux.org Git - packages/gtkmm.git/blob - gtkmm.spec
- 2.9.7, updated deps, --as-needed support
[packages/gtkmm.git] / gtkmm.spec
1 #
2 # Conditional build:
3 %bcond_without  examples        # don't build examples
4 %bcond_without  static_libs     # don't build static libraries
5 #
6 %include        /usr/lib/rpm/macros.perl
7 Summary:        A C++ interface for the GTK+ (a GUI library for X)
8 Summary(pl):    Wrapper C++ dla GTK+
9 Name:           gtkmm
10 Version:        2.9.7
11 Release:        1
12 License:        LGPL
13 Group:          X11/Libraries
14 Source0:        http://ftp.gnome.org/pub/GNOME/sources/gtkmm/2.9/%{name}-%{version}.tar.bz2
15 # Source0-md5:  2ba6fc9065a89cd752fdc40551314519
16 URL:            http://gtkmm.sourceforge.net/
17 BuildRequires:  atk-devel >= 1.12.1
18 BuildRequires:  autoconf >= 2.59
19 BuildRequires:  automake >= 1:1.9
20 BuildRequires:  cairomm-devel >= 1.1.10
21 BuildRequires:  glibmm-devel >= 2.10.4
22 BuildRequires:  gtk+2-devel >= 2:2.10.0
23 BuildRequires:  libstdc++-devel >= 5:3.3.1
24 BuildRequires:  libtool >= 2:1.4d-3
25 BuildRequires:  pango-devel >= 1:1.13.3
26 BuildRequires:  perl-base >= 1:5.6.0
27 BuildRequires:  pkgconfig
28 BuildRequires:  rpm-perlprov >= 3.0.3-16
29 Requires:       %{name}-atk = %{version}-%{release}
30 Requires:       %{name}-pango = %{version}-%{release}
31 Requires:       cpp
32 Requires:       gtk+2 >= 2:2.10.0
33 Obsoletes:      Gtk--
34 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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}-%{release}
54 Requires:       %{name}-atk-devel = %{version}-%{release}
55 Requires:       %{name}-pango-devel = %{version}-%{release}
56 Requires:       gtk+2-devel >= 2:2.10.0
57
58 %description devel
59 Header files and development documentation for GTK-- library.
60
61 %description devel -l pl
62 Pliki nag³ówkowe i dokumentacja dla programistów do biblioteki GTK--.
63
64 %package doc
65 Summary:        Reference documentation and examples for GTK-- and GDK--
66 Summary(pl):    Szczegó³owa dokumentacja i przyk³ady dla GTK-- i GDK--
67 Group:          Documentation
68 Requires:       devhelp
69
70 %description doc
71 Reference documentation and examples for GTK-- and GDK--.
72
73 %description doc -l pl
74 Szczegó³owa dokumentacja i przyk³ady dla GTK-- i GDK--.
75
76 %package static
77 Summary:        GTK-- and GDK-- static libraries
78 Summary(pl):    Biblioteki statyczne GTK-- i GDK--
79 Group:          X11/Development/Libraries
80 Requires:       %{name}-devel = %{version}-%{release}
81
82 %description static
83 GTK-- and GDK-- static libraries.
84
85 %description static -l pl
86 Biblioteki statyczne GTK-- i GDK--.
87
88 %package atk
89 Summary:        A C++ interface for atk library
90 Summary(pl):    Interfejs C++ dla biblioteki atk
91 Group:          X11/Development/Libraries
92 Requires:       atk >= 1.11.4
93 Requires:       glibmm >= 2.10.4
94
95 %description atk
96 A C++ interface for atk library.
97
98 %description atk -l pl
99 Interfejs C++ dla biblioteki atk.
100
101 %package atk-devel
102 Summary:        A C++ interface for atk library - header files
103 Summary(pl):    Interfejs C++ dla biblioteki atk - pliki nag³ówkowe
104 Group:          X11/Development/Libraries
105 Requires:       %{name}-atk = %{version}-%{release}
106 Requires:       atk-devel >= 1.12.1
107 Requires:       glibmm-devel >= 2.10.4
108
109 %description atk-devel
110 A C++ interface for atk library - header files.
111
112 %description atk-devel -l pl
113 Interfejs C++ dla biblioteki atk - pliki nag³ówkowe.
114
115 %package atk-static
116 Summary:        A C++ interface for atk library - static version
117 Summary(pl):    Interfejs C++ dla biblioteki atk - wersja statyczna
118 Group:          X11/Development/Libraries
119 Requires:       %{name}-atk-devel = %{version}-%{release}
120
121 %description atk-static
122 A C++ interface for atk library - static version.
123
124 %description atk-static -l pl
125 Interfejs C++ dla biblioteki atk - wersja statyczna.
126
127 %package pango
128 Summary:        A C++ interface for pango library
129 Summary(pl):    Interfejs C++ dla biblioteki pango
130 Group:          X11/Development/Libraries
131 Requires:       glibmm >= 2.10.4
132 Requires:       pango >= 1:1.13.3
133
134 %description pango
135 A C++ interface for pango library.
136
137 %description pango -l pl
138 Interfejs C++ dla biblioteki pango.
139
140 %package pango-devel
141 Summary:        A C++ interface for pango library - header files
142 Summary(pl):    Interfejs C++ dla biblioteki pango - pliki nag³ówkowe
143 Group:          X11/Development/Libraries
144 Requires:       %{name}-pango = %{version}-%{release}
145 Requires:       glibmm-devel >= 2.10.4
146 Requires:       pango-devel >= 1:1.13.3
147
148 %description pango-devel
149 A C++ interface for pango library - header files.
150
151 %description pango-devel -l pl
152 Interfejs C++ dla biblioteki pango - pliki nag³ówkowe.
153
154 %package pango-static
155 Summary:        A C++ interface for pango library - static version
156 Summary(pl):    Interfejs C++ dla biblioteki pango - wersja statyczna
157 Group:          X11/Development/Libraries
158 Requires:       %{name}-pango-devel = %{version}-%{release}
159
160 %description pango-static
161 A C++ interface for pango library - static version.
162
163 %description pango-static -l pl
164 Interfejs C++ dla biblioteki pango - wersja statyczna.
165
166 %prep
167 %setup -q
168
169 %build
170 %{__libtoolize}
171 %{__aclocal} -I scripts
172 %{__autoconf}
173 %{__automake}
174 LDFLAGS="%{rpmldflags} -Wl,--as-needed"
175 # exceptions and rtti are used in this package --misiek
176 %configure \
177         --disable-demos \
178         %{!?with_examples:--disable-examples} \
179         %{?with_static_libs:--enable-static}
180
181 %{__make}
182
183 %install
184 rm -rf $RPM_BUILD_ROOT
185 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
186
187 %{__make} install \
188         DESTDIR=$RPM_BUILD_ROOT \
189         pkgconfigdir=%{_pkgconfigdir}
190
191 mv -f $RPM_BUILD_ROOT%{_docdir}/gtkmm-2.4/{examples,tests} \
192         $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
193
194 %clean
195 rm -rf $RPM_BUILD_ROOT
196
197 %post   -p /sbin/ldconfig
198 %postun -p /sbin/ldconfig
199
200 %post   atk -p /sbin/ldconfig
201 %postun atk -p /sbin/ldconfig
202
203 %post   pango -p /sbin/ldconfig
204 %postun pango -p /sbin/ldconfig
205
206 %files
207 %defattr(644,root,root,755)
208 %doc AUTHORS ChangeLog CHANGES NEWS PORTING README
209 %attr(755,root,root) %{_libdir}/libg[dt]kmm*.so.*.*
210
211 %files devel
212 %defattr(644,root,root,755)
213 %attr(755,root,root) %{_libdir}/libg[dt]kmm*.so
214 %{_libdir}/libg[dt]kmm*.la
215 %{_libdir}/g[dt]kmm-2.4
216 %{_includedir}/g[dt]kmm-2.4
217 %{_pkgconfigdir}/g[dt]kmm*.pc
218
219 %files doc
220 %defattr(644,root,root,755)
221 %doc %{_docdir}/gtkmm-2.4
222 %{?with_examples:%{_examplesdir}/%{name}-%{version}}
223 %doc %{_datadir}/devhelp/books/gtkmm-2.4
224
225 %if %{with static_libs}
226 %files static
227 %defattr(644,root,root,755)
228 %{_libdir}/libg[dt]kmm*.a
229 %endif
230
231 %files atk
232 %defattr(644,root,root,755)
233 %attr(755,root,root) %{_libdir}/libatkmm*.so.*.*
234
235 %files atk-devel
236 %defattr(644,root,root,755)
237 %attr(755,root,root) %{_libdir}/libatkmm*.so
238 %{_libdir}/libatkmm*.la
239 %{_pkgconfigdir}/atkmm*.pc
240 %{_includedir}/atkmm-1.6
241
242 %if %{with static_libs}
243 %files atk-static
244 %defattr(644,root,root,755)
245 %{_libdir}/libatkmm*.a
246 %endif
247
248 %files pango
249 %defattr(644,root,root,755)
250 %attr(755,root,root) %{_libdir}/libpangomm*.so.*.*
251
252 %files pango-devel
253 %defattr(644,root,root,755)
254 %attr(755,root,root) %{_libdir}/libpangomm*.so
255 %{_libdir}/libpangomm*.la
256 %{_pkgconfigdir}/pangomm*.pc
257 %{_includedir}/pangomm-1.4
258
259 %if %{with static_libs}
260 %files pango-static
261 %defattr(644,root,root,755)
262 %{_libdir}/libpangomm*.a
263 %endif
This page took 0.092876 seconds and 3 git commands to generate.