]> git.pld-linux.org Git - packages/crossmingw32-gtkmm.git/blob - crossmingw32-gtkmm.spec
- updated to 2.12.5
[packages/crossmingw32-gtkmm.git] / crossmingw32-gtkmm.spec
1 Summary:        A C++ interface for the GTK+ (a GUI library for X) - cross Mingw32 version
2 Summary(pl.UTF-8):      Wrapper C++ dla GTK+ - skrośna wersja Mingw32
3 %define         realname   gtkmm
4 Name:           crossmingw32-%{realname}
5 Version:        2.12.5
6 Release:        1
7 License:        LGPL v2+
8 Group:          Development/Libraries
9 Source0:        http://ftp.gnome.org/pub/GNOME/sources/gtkmm/2.12/%{realname}-%{version}.tar.bz2
10 # Source0-md5:  ca21c054d7f7bbd9c737f22e14bccf82
11 Patch0:         gtkmm-lt.patch
12 URL:            http://gtkmm.sourceforge.net/
13 BuildRequires:  autoconf >= 2.59
14 BuildRequires:  automake >= 1:1.9
15 BuildRequires:  crossmingw32-atk >= 1.20.0
16 BuildRequires:  crossmingw32-cairomm >= 1.4.4
17 BuildRequires:  crossmingw32-gcc-c++ >= 3.3.1
18 BuildRequires:  crossmingw32-glibmm >= 2.14.1
19 BuildRequires:  crossmingw32-gtk+2 >= 2.12.0
20 BuildRequires:  crossmingw32-pango >= 1.18.1
21 BuildRequires:  libtool >= 2:1.5
22 BuildRequires:  perl-base >= 1:5.6.0
23 BuildRequires:  pkgconfig >= 1:0.15
24 Requires:       %{name}-atk = %{version}-%{release}
25 Requires:       %{name}-pango = %{version}-%{release}
26 Requires:       crossmingw32-gtk+2 >= 2.12.0
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %define         no_install_post_strip   1
30
31 %define         target                  i386-mingw32
32 %define         target_platform         i386-pc-mingw32
33
34 %define         _sysprefix              /usr
35 %define         _prefix                 %{_sysprefix}/%{target}
36 %define         _libdir                 %{_prefix}/lib
37 %define         _pkgconfigdir           %{_prefix}/lib/pkgconfig
38 %define         _dlldir                 /usr/share/wine/windows/system
39 %define         __cc                    %{target}-gcc
40 %define         __cxx                   %{target}-g++
41
42 %description
43 This package provides a C++ interface for GTK+ (the Gimp ToolKit) GUI
44 library. The interface provides a convenient interface for C++
45 programmers to create GUIs with GTK+'s flexible object-oriented
46 framework. Features include type safe callbacks, widgets that are
47 extensible using inheritance and over 110 classes that can be freely
48 combined to quickly create complex user interfaces.
49
50 This package contains the cross version for Win32.
51
52 %description -l pl.UTF-8
53 GTK-- jest wrapperem C++ dla Gimp ToolKit (GTK). GTK+ jest biblioteką
54 służącą do tworzenia graficznych interfejsów. W pakiecie znajduje się
55 także biblioteka GDK-- - wrapper C++ dla GDK (General Drawing Kit).
56
57 Ten pakiet zawiera wersję skrośną dla Win32.
58
59 %package static
60 Summary:        Static gtkmm libraries (cross mingw32 version)
61 Summary(pl.UTF-8):      Statyczne biblioteki gtkmm (wersja skrośna mingw32)
62 Group:          Development/Libraries
63 Requires:       %{name} = %{version}-%{release}
64
65 %description static
66 Static gtkmm libraries (cross mingw32 version).
67
68 %description static -l pl.UTF-8
69 Statyczne biblioteki gtkmm (wersja skrośna mingw32).
70
71 %package dll
72 Summary:        DLL gtkmm libraries for Windows
73 Summary(pl.UTF-8):      Biblioteki DLL gtkmm dla Windows
74 Group:          Applications/Emulators
75 Requires:       %{name}-atk-dll = %{version}-%{release}
76 Requires:       %{name}-pango-dll = %{version}-%{release}
77 Requires:       crossmingw32-gtk+2-dll >= 2.12.0
78 Requires:       wine
79
80 %description dll
81 DLL gtkmm libraries for Windows.
82
83 %description dll -l pl.UTF-8
84 Biblioteki DLL gtkmm dla Windows.
85
86 %package atk
87 Summary:        A C++ interface for atk library (cross mingw32 version)
88 Summary(pl.UTF-8):      Interfejs C++ dla biblioteki atk (wersja skrośna mingw32)
89 Group:          Development/Libraries
90 Requires:       crossmingw32-atk >= 1.20.0
91 Requires:       crossmingw32-glibmm >= 2.14.1
92
93 %description atk
94 A C++ interface for atk library (cross mingw32 version).
95
96 %description atk -l pl.UTF-8
97 Interfejs C++ dla biblioteki atk (wersja skrośna mingw32).
98
99 %package atk-static
100 Summary:        Static atkmm library (cross mingw32 version)
101 Summary(pl.UTF-8):      Statyczna biblioteka atkmm (wersja skrośna mingw32)
102 Group:          Development/Libraries
103 Requires:       %{name}-atk = %{version}-%{release}
104
105 %description atk-static
106 Static atkmm library (cross mingw32 version).
107
108 %description atk-static -l pl.UTF-8
109 Statyczna biblioteka atkmm (wersja skrośna mingw32).
110
111 %package atk-dll
112 Summary:        DLL atkmm library for Windows
113 Summary(pl.UTF-8):      Biblioteka DLL atkmm dla Windows
114 Group:          Applications/Emulators
115 Requires:       crossmingw32-atk-dll >= 1.20.0
116 Requires:       crossmingw32-glibmm-dll >= 2.14.1
117 Requires:       wine
118
119 %description atk-dll
120 DLL atkmm library for Windows.
121
122 %description atk-dll -l pl.UTF-8
123 Biblioteka DLL atkmm dla Windows.
124
125 %package pango
126 Summary:        A C++ interface for pango library (cross mingw32 version)
127 Summary(pl.UTF-8):      Interfejs C++ dla biblioteki pango (wersja skrośna mingw32)
128 Group:          Development/Libraries
129 Requires:       crossmingw32-cairomm >= 1.4.4
130 Requires:       crossmingw32-glibmm >= 2.14.1
131 Requires:       crossmingw32-pango >= 1.18.1
132
133 %description pango
134 A C++ interface for pango library (cross mingw32 version).
135
136 %description pango -l pl.UTF-8
137 Interfejs C++ dla biblioteki pango (wersja skrośna mingw32).
138
139 %package pango-static
140 Summary:        Static pangomm library (cross mingw32 version)
141 Summary(pl.UTF-8):      Statyczna biblioteka pangomm (wersja skrośna mingw32)
142 Group:          Development/Libraries
143 Requires:       %{name}-pango = %{version}-%{release}
144
145 %description pango-static
146 Static pangomm library (cross mingw32 version).
147
148 %description pango-static -l pl.UTF-8
149 Statyczna biblioteka pangomm (wersja skrośna mingw32).
150
151 %package pango-dll
152 Summary:        DLL pangomm library for Windows
153 Summary(pl.UTF-8):      Biblioteka DLL pangomm dla Windows
154 Group:          Applications/Emulators
155 Requires:       crossmingw32-cairomm-dll >= 1.4.4
156 Requires:       crossmingw32-glibmm-dll >= 2.14.1
157 Requires:       crossmingw32-pango-dll >= 1.18.1
158 Requires:       wine
159
160 %description pango-dll
161 DLL pangomm library for Windows.
162
163 %description pango-dll -l pl.UTF-8
164 Biblioteka DLL pangomm dla Windows.
165
166 %prep
167 %setup -q -n %{realname}-%{version}
168 %patch0 -p1
169
170 %build
171 export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig
172 %{__libtoolize}
173 %{__aclocal} -I scripts
174 %{__autoconf}
175 %{__automake}
176 %configure \
177         --targe=%{target} \
178         --host=%{target} \
179         --disable-demos \
180         --disable-docs \
181         --disable-examples \
182         --enable-static
183
184 %{__make}
185
186 %install
187 rm -rf $RPM_BUILD_ROOT
188
189 %{__make} install \
190         DESTDIR=$RPM_BUILD_ROOT
191
192 install -d $RPM_BUILD_ROOT%{_dlldir}
193 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
194
195 %if 0%{!?debug:1}
196 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
197 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
198 %endif
199
200 rm -rf $RPM_BUILD_ROOT%{_datadir}/doc
201 rm -rf $RPM_BUILD_ROOT%{_libdir}/gtkmm-2.4/proc
202
203 %clean
204 rm -rf $RPM_BUILD_ROOT
205
206 %files
207 %defattr(644,root,root,755)
208 %doc AUTHORS ChangeLog CHANGES NEWS PORTING README
209 %{_libdir}/libgdkmm-2.4.dll.a
210 %{_libdir}/libgtkmm-2.4.dll.a
211 %{_libdir}/libgdkmm-2.4.la
212 %{_libdir}/libgtkmm-2.4.la
213 %{_libdir}/gdkmm-2.4
214 %{_libdir}/gtkmm-2.4
215 %{_includedir}/gdkmm-2.4
216 %{_includedir}/gtkmm-2.4
217 %{_pkgconfigdir}/gdkmm-2.4.pc
218 %{_pkgconfigdir}/gtkmm-2.4.pc
219
220 %files static
221 %defattr(644,root,root,755)
222 %{_libdir}/libgdkmm-2.4.a
223 %{_libdir}/libgtkmm-2.4.a
224
225 %files dll
226 %defattr(644,root,root,755)
227 %{_dlldir}/libgdkmm-2.4-*.dll
228 %{_dlldir}/libgtkmm-2.4-*.dll
229
230 %files atk
231 %defattr(644,root,root,755)
232 %{_libdir}/libatkmm-1.6.dll.a
233 %{_libdir}/libatkmm-1.6.la
234 %{_includedir}/atkmm-1.6
235 %{_pkgconfigdir}/atkmm-1.6.pc
236
237 %files atk-static
238 %defattr(644,root,root,755)
239 %{_libdir}/libatkmm-1.6.a
240
241 %files atk-dll
242 %defattr(644,root,root,755)
243 %{_dlldir}/libatkmm-1.6-*.dll
244
245 %files pango
246 %defattr(644,root,root,755)
247 %{_libdir}/libpangomm-1.4.dll.a
248 %{_libdir}/libpangomm-1.4.la
249 %{_includedir}/pangomm-1.4
250 %{_pkgconfigdir}/pangomm-1.4.pc
251
252 %files pango-static
253 %defattr(644,root,root,755)
254 %{_libdir}/libpangomm-1.4.a
255
256 %files pango-dll
257 %defattr(644,root,root,755)
258 %{_dlldir}/libpangomm-1.4-*.dll
This page took 0.102907 seconds and 3 git commands to generate.