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