]> git.pld-linux.org Git - packages/crossmingw32-gtkmm.git/blob - crossmingw32-gtkmm.spec
- updated to 2.20.3
[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.20.3
6 Release:        1
7 License:        LGPL v2+
8 Group:          Development/Libraries
9 Source0:        http://ftp.gnome.org/pub/GNOME/sources/gtkmm/2.16/%{realname}-%{version}.tar.bz2
10 # Source0-md5:  c35f236091b4f96fe45c53b4107400a9
11 URL:            http://www.gtkmm.org/
12 BuildRequires:  autoconf >= 2.59
13 BuildRequires:  automake >= 1:1.9
14 BuildRequires:  crossmingw32-atk >= 1.24.0
15 BuildRequires:  crossmingw32-cairomm >= 1.6.3
16 BuildRequires:  crossmingw32-gcc-c++ >= 3.3.1
17 BuildRequires:  crossmingw32-glibmm >= 2.24.0
18 BuildRequires:  crossmingw32-gtk+2 >= 2.20.0
19 BuildRequires:  crossmingw32-pangomm >= 2.26.0
20 BuildRequires:  libtool >= 2:1.5
21 BuildRequires:  mm-common >= 0.8
22 BuildRequires:  perl-base >= 1:5.6.0
23 BuildRequires:  pkgconfig >= 1:0.15
24 Requires:       %{name}-atk = %{version}-%{release}
25 Requires:       crossmingw32-cairomm >= 1.6.3
26 Requires:       crossmingw32-gtk+2 >= 2.20.0
27 Requires:       crossmingw32-pangomm >= 2.26.0
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %define         no_install_post_strip   1
31
32 %define         target                  i386-mingw32
33 %define         target_platform         i386-pc-mingw32
34
35 %define         _sysprefix              /usr
36 %define         _prefix                 %{_sysprefix}/%{target}
37 %define         _libdir                 %{_prefix}/lib
38 %define         _pkgconfigdir           %{_prefix}/lib/pkgconfig
39 %define         _dlldir                 /usr/share/wine/windows/system
40 %define         __cc                    %{target}-gcc
41 %define         __cxx                   %{target}-g++
42
43 %ifnarch %{ix86}
44 # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
45 %define         optflags        -O2
46 %endif
47 # -z options are invalid for mingw linker
48 %define         filterout_ld    -Wl,-z,.*
49
50 %description
51 This package provides a C++ interface for GTK+ (the Gimp ToolKit) GUI
52 library. The interface provides a convenient interface for C++
53 programmers to create GUIs with GTK+'s flexible object-oriented
54 framework. Features include type safe callbacks, widgets that are
55 extensible using inheritance and over 110 classes that can be freely
56 combined to quickly create complex user interfaces.
57
58 This package contains the cross version for Win32.
59
60 %description -l pl.UTF-8
61 gtkmm jest wrapperem C++ dla Gimp ToolKit (GTK). GTK+ jest biblioteką
62 służącą do tworzenia graficznych interfejsów. W pakiecie znajduje się
63 także biblioteka gdkmm - wrapper C++ dla GDK (General Drawing Kit).
64
65 Ten pakiet zawiera wersję skrośną dla Win32.
66
67 %package static
68 Summary:        Static gtkmm libraries (cross MinGW32 version)
69 Summary(pl.UTF-8):      Statyczne biblioteki gtkmm (wersja skrośna MinGW32)
70 Group:          Development/Libraries
71 Requires:       %{name} = %{version}-%{release}
72
73 %description static
74 Static gtkmm libraries (cross MinGW32 version).
75
76 %description static -l pl.UTF-8
77 Statyczne biblioteki gtkmm (wersja skrośna MinGW32).
78
79 %package dll
80 Summary:        DLL gtkmm libraries for Windows
81 Summary(pl.UTF-8):      Biblioteki DLL gtkmm dla Windows
82 Group:          Applications/Emulators
83 Requires:       %{name}-atk-dll = %{version}-%{release}
84 Requires:       crossmingw32-cairomm-dll >= 1.6.3
85 Requires:       crossmingw32-gtk+2-dll >= 2.20.0
86 Requires:       crossmingw32-pangomm-dll >= 2.26.0
87 Requires:       wine
88
89 %description dll
90 DLL gtkmm libraries for Windows.
91
92 %description dll -l pl.UTF-8
93 Biblioteki DLL gtkmm dla Windows.
94
95 %package atk
96 Summary:        A C++ interface for atk library (cross MinGW32 version)
97 Summary(pl.UTF-8):      Interfejs C++ dla biblioteki atk (wersja skrośna MinGW32)
98 Group:          Development/Libraries
99 Requires:       crossmingw32-atk >= 1.24.0
100 Requires:       crossmingw32-glibmm >= 2.24.0
101
102 %description atk
103 A C++ interface for atk library (cross MinGW32 version).
104
105 %description atk -l pl.UTF-8
106 Interfejs C++ dla biblioteki atk (wersja skrośna MinGW32).
107
108 %package atk-static
109 Summary:        Static atkmm library (cross MinGW32 version)
110 Summary(pl.UTF-8):      Statyczna biblioteka atkmm (wersja skrośna MinGW32)
111 Group:          Development/Libraries
112 Requires:       %{name}-atk = %{version}-%{release}
113
114 %description atk-static
115 Static atkmm library (cross MinGW32 version).
116
117 %description atk-static -l pl.UTF-8
118 Statyczna biblioteka atkmm (wersja skrośna MinGW32).
119
120 %package atk-dll
121 Summary:        DLL atkmm library for Windows
122 Summary(pl.UTF-8):      Biblioteka DLL atkmm dla Windows
123 Group:          Applications/Emulators
124 Requires:       crossmingw32-atk-dll >= 1.24.0
125 Requires:       crossmingw32-glibmm-dll >= 2.24.0
126 Requires:       wine
127
128 %description atk-dll
129 DLL atkmm library for Windows.
130
131 %description atk-dll -l pl.UTF-8
132 Biblioteka DLL atkmm dla Windows.
133
134 %prep
135 %setup -q -n %{realname}-%{version}
136
137 %build
138 export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig
139 %{__libtoolize}
140 %{__aclocal} -I build
141 %{__autoconf}
142 %{__autoheader}
143 %{__automake}
144 %configure \
145         --targe=%{target} \
146         --host=%{target} \
147         --disable-documentation \
148         --enable-static
149
150 %{__make}
151
152 %install
153 rm -rf $RPM_BUILD_ROOT
154
155 %{__make} install \
156         DESTDIR=$RPM_BUILD_ROOT
157
158 install -d $RPM_BUILD_ROOT%{_dlldir}
159 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
160
161 %if 0%{!?debug:1}
162 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
163 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
164 %endif
165
166 # just demo
167 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/gtkmm-2.4
168
169 %clean
170 rm -rf $RPM_BUILD_ROOT
171
172 %files
173 %defattr(644,root,root,755)
174 %doc AUTHORS ChangeLog NEWS PORTING README
175 %{_libdir}/libgdkmm-2.4.dll.a
176 %{_libdir}/libgtkmm-2.4.dll.a
177 %{_libdir}/libgdkmm-2.4.la
178 %{_libdir}/libgtkmm-2.4.la
179 %{_libdir}/gdkmm-2.4
180 %{_libdir}/gtkmm-2.4
181 %{_includedir}/gdkmm-2.4
182 %{_includedir}/gtkmm-2.4
183 %{_pkgconfigdir}/gdkmm-2.4.pc
184 %{_pkgconfigdir}/gtkmm-2.4.pc
185
186 %files static
187 %defattr(644,root,root,755)
188 %{_libdir}/libgdkmm-2.4.a
189 %{_libdir}/libgtkmm-2.4.a
190
191 %files dll
192 %defattr(644,root,root,755)
193 %{_dlldir}/libgdkmm-2.4-*.dll
194 %{_dlldir}/libgtkmm-2.4-*.dll
195
196 %files atk
197 %defattr(644,root,root,755)
198 %{_libdir}/libatkmm-1.6.dll.a
199 %{_libdir}/libatkmm-1.6.la
200 %{_includedir}/atkmm-1.6
201 %{_pkgconfigdir}/atkmm-1.6.pc
202
203 %files atk-static
204 %defattr(644,root,root,755)
205 %{_libdir}/libatkmm-1.6.a
206
207 %files atk-dll
208 %defattr(644,root,root,755)
209 %{_dlldir}/libatkmm-1.6-*.dll
This page took 0.104035 seconds and 4 git commands to generate.