]> git.pld-linux.org Git - packages/gtkmm.git/blob - gtkmm.spec
- 2.8.2, autoheader is not needed here
[packages/gtkmm.git] / gtkmm.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # don't build static libraries
4 #
5 %include        /usr/lib/rpm/macros.perl
6 Summary:        A C++ interface for the GTK+ (a GUI library for X)
7 Summary(pl):    Wrapper C++ dla GTK+
8 Name:           gtkmm
9 Version:        2.8.2
10 Release:        1
11 License:        LGPL
12 Group:          X11/Libraries
13 Source0:        http://ftp.gnome.org/pub/GNOME/sources/gtkmm/2.8/%{name}-%{version}.tar.bz2
14 # Source0-md5:  b7efc6a6a257a044d6e4bca97595a653
15 URL:            http://gtkmm.sourceforge.net/
16 BuildRequires:  atk-devel >= 1.9.1
17 BuildRequires:  autoconf >= 2.59
18 BuildRequires:  automake
19 BuildRequires:  glibmm-devel >= 2.8.0
20 BuildRequires:  gtk+2-devel >= 2:2.6.4
21 BuildRequires:  libsigc++-devel >= 1:2.0.10
22 BuildRequires:  libstdc++-devel >= 5:3.3.1
23 BuildRequires:  libtool >= 2:1.4d-3
24 BuildRequires:  pango-devel >= 1:1.8.1
25 BuildRequires:  perl-base >= 1:5.6.0
26 BuildRequires:  pkgconfig
27 BuildRequires:  rpm-perlprov >= 3.0.3-16
28 Requires:       %{name}-atk = %{version}-%{release}
29 Requires:       %{name}-pango = %{version}-%{release}
30 Requires:       cpp
31 Requires:       glibmm >= 2.8.0
32 Obsoletes:      Gtk--
33 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
35 %description
36 This package provides a C++ interface for GTK+ (the Gimp ToolKit) GUI
37 library. The interface provides a convenient interface for C++
38 programmers to create GUIs with GTK+'s flexible object-oriented
39 framework. Features include type safe callbacks, widgets that are
40 extensible using inheritance and over 110 classes that can be freely
41 combined to quickly create complex user interfaces.
42
43 %description -l pl
44 GTK-- jest wrapperem C++ dla Gimp ToolKit (GTK). GTK+ jest bibliotek±
45 s³u¿±c± do tworzenia graficznych interfejsów. W pakiecie znajduje siê
46 tak¿e biblioteka GDK-- - wrapper C++ dla GDK (General Drawing Kit).
47
48 %package devel
49 Summary:        GTK-- and GDK-- header files, development documentation
50 Summary(pl):    Pliki nag³ówkowe GTK-- i GDK--, dokumentacja dla programistów
51 Group:          X11/Development/Libraries
52 Requires:       %{name} = %{version}-%{release}
53 Requires:       %{name}-atk-devel = %{version}-%{release}
54 Requires:       %{name}-pango-devel = %{version}-%{release}
55 Requires:       glibmm-devel >= 2.6.0
56 Requires:       gtk+2-devel >= 2:2.6.4
57 Requires:       libsigc++-devel >= 1:2.0.10
58
59 %description devel
60 Header files and development documentation for GTK-- library.
61
62 %description devel -l pl
63 Pliki nag³ówkowe i dokumentacja dla programistów do biblioteki GTK--.
64
65 %package doc
66 Summary:        Reference documentation and examples for GTK-- and GDK--
67 Summary(pl):    Szczegó³owa dokumentacja i przyk³ady dla GTK-- i GDK--
68 Group:          Documentation
69 Requires:       devhelp
70
71 %description doc
72 Reference documentation and examples for GTK-- and GDK--.
73
74 %description doc -l pl
75 Szczegó³owa dokumentacja i przyk³ady dla GTK-- i GDK--.
76
77 %package static
78 Summary:        GTK-- and GDK-- static libraries
79 Summary(pl):    Biblioteki statyczne GTK-- i GDK--
80 Group:          X11/Development/Libraries
81 Requires:       %{name}-devel = %{version}-%{release}
82
83 %description static
84 GTK-- and GDK-- static libraries.
85
86 %description static -l pl
87 Biblioteki statyczne GTK-- i GDK--.
88
89 %package atk
90 Summary:        A C++ interface for atk library
91 Summary(pl):    Interfejs C++ dla biblioteki atk
92 Group:          X11/Development/Libraries
93 Requires:       glibmm >= 2.6.0
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.9.1
107 Requires:       glibmm-devel >= 2.6.0
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.6.0
132
133 %description pango
134 A C++ interface for pango library.
135
136 %description pango -l pl
137 Interfejs C++ dla biblioteki pango.
138
139 %package pango-devel
140 Summary:        A C++ interface for pango library - header files
141 Summary(pl):    Interfejs C++ dla biblioteki pango - pliki nag³ówkowe
142 Group:          X11/Development/Libraries
143 Requires:       %{name}-pango = %{version}-%{release}
144 Requires:       glibmm-devel >= 2.6.0
145 Requires:       pango-devel >= 1:1.8.1
146
147 %description pango-devel
148 A C++ interface for pango library - header files.
149
150 %description pango-devel -l pl
151 Interfejs C++ dla biblioteki pango - pliki nag³ówkowe.
152
153 %package pango-static
154 Summary:        A C++ interface for pango library - static version
155 Summary(pl):    Interfejs C++ dla biblioteki pango - wersja statyczna
156 Group:          X11/Development/Libraries
157 Requires:       %{name}-pango-devel = %{version}-%{release}
158
159 %description pango-static
160 A C++ interface for pango library - static version.
161
162 %description pango-static -l pl
163 Interfejs C++ dla biblioteki pango - wersja statyczna.
164
165 %prep
166 %setup -q
167
168 %build
169 %{__libtoolize}
170 %{__aclocal} -I scripts
171 %{__autoconf}
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.078963 seconds and 3 git commands to generate.