]> git.pld-linux.org Git - packages/crossmingw32-gtkmm.git/blame - crossmingw32-gtkmm.spec
- updated to 2.22.0
[packages/crossmingw32-gtkmm.git] / crossmingw32-gtkmm.spec
CommitLineData
b456b73a
JB
1Summary: A C++ interface for the GTK+ (a GUI library for X) - cross MinGW32 version
2Summary(pl.UTF-8): Wrapper C++ dla GTK+ - skrośna wersja MinGW32
ab9cdddd
JB
3%define realname gtkmm
4Name: crossmingw32-%{realname}
1560fce7 5Version: 2.22.0
ae8f43dd 6Release: 1
ab9cdddd 7License: LGPL v2+
db814cdf 8Group: Development/Libraries
1560fce7
JB
9Source0: http://ftp.gnome.org/pub/GNOME/sources/gtkmm/2.22/%{realname}-%{version}.tar.bz2
10# Source0-md5: 4356dfde44b13f7fb1bfbd97623f37dd
d8680ab8 11URL: http://www.gtkmm.org/
ae8f43dd 12BuildRequires: autoconf >= 2.59
13BuildRequires: automake >= 1:1.9
1560fce7 14BuildRequires: crossmingw32-atkmm >= 2.22.0
f155b15f 15BuildRequires: crossmingw32-cairomm >= 1.6.3
db814cdf 16BuildRequires: crossmingw32-gcc-c++ >= 3.3.1
b456b73a
JB
17BuildRequires: crossmingw32-glibmm >= 2.24.0
18BuildRequires: crossmingw32-gtk+2 >= 2.20.0
19BuildRequires: crossmingw32-pangomm >= 2.26.0
db814cdf 20BuildRequires: libtool >= 2:1.5
b456b73a 21BuildRequires: mm-common >= 0.8
ae8f43dd 22BuildRequires: perl-base >= 1:5.6.0
3ce7b5a9 23BuildRequires: pkgconfig >= 1:0.15
1560fce7 24Requires: crossmingw32-atkmm >= 2.22.0
f155b15f 25Requires: crossmingw32-cairomm >= 1.6.3
b456b73a
JB
26Requires: crossmingw32-gtk+2 >= 2.20.0
27Requires: crossmingw32-pangomm >= 2.26.0
ae8f43dd 28BuildRoot: %{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
ae8f43dd 34
35%define _sysprefix /usr
36%define _prefix %{_sysprefix}/%{target}
eeaae6c1 37%define _libdir %{_prefix}/lib
ae8f43dd 38%define _pkgconfigdir %{_prefix}/lib/pkgconfig
db814cdf 39%define _dlldir /usr/share/wine/windows/system
ae8f43dd 40%define __cc %{target}-gcc
41%define __cxx %{target}-g++
42
f155b15f
JB
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
ae8f43dd 50%description
51This package provides a C++ interface for GTK+ (the Gimp ToolKit) GUI
52library. The interface provides a convenient interface for C++
53programmers to create GUIs with GTK+'s flexible object-oriented
54framework. Features include type safe callbacks, widgets that are
55extensible using inheritance and over 110 classes that can be freely
56combined to quickly create complex user interfaces.
57
db814cdf
JB
58This package contains the cross version for Win32.
59
60%description -l pl.UTF-8
f155b15f 61gtkmm jest wrapperem C++ dla Gimp ToolKit (GTK). GTK+ jest biblioteką
db814cdf 62służącą do tworzenia graficznych interfejsów. W pakiecie znajduje się
f155b15f 63także biblioteka gdkmm - wrapper C++ dla GDK (General Drawing Kit).
db814cdf
JB
64
65Ten pakiet zawiera wersję skrośną dla Win32.
66
67%package static
b456b73a
JB
68Summary: Static gtkmm libraries (cross MinGW32 version)
69Summary(pl.UTF-8): Statyczne biblioteki gtkmm (wersja skrośna MinGW32)
db814cdf
JB
70Group: Development/Libraries
71Requires: %{name} = %{version}-%{release}
72
73%description static
b456b73a 74Static gtkmm libraries (cross MinGW32 version).
db814cdf
JB
75
76%description static -l pl.UTF-8
b456b73a 77Statyczne biblioteki gtkmm (wersja skrośna MinGW32).
db814cdf
JB
78
79%package dll
80Summary: DLL gtkmm libraries for Windows
81Summary(pl.UTF-8): Biblioteki DLL gtkmm dla Windows
82Group: Applications/Emulators
1560fce7 83Requires: crossmingw32-atkmm-dll >= 2.22.0
f155b15f 84Requires: crossmingw32-cairomm-dll >= 1.6.3
b456b73a
JB
85Requires: crossmingw32-gtk+2-dll >= 2.20.0
86Requires: crossmingw32-pangomm-dll >= 2.26.0
db814cdf
JB
87Requires: wine
88
89%description dll
90DLL gtkmm libraries for Windows.
91
92%description dll -l pl.UTF-8
93Biblioteki DLL gtkmm dla Windows.
ae8f43dd 94
ae8f43dd 95%prep
ab9cdddd 96%setup -q -n %{realname}-%{version}
ae8f43dd 97
98%build
3ce7b5a9 99export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig
ae8f43dd 100%{__libtoolize}
b456b73a 101%{__aclocal} -I build
ae8f43dd 102%{__autoconf}
b456b73a 103%{__autoheader}
ae8f43dd 104%{__automake}
ae8f43dd 105%configure \
106 --targe=%{target} \
107 --host=%{target} \
b456b73a 108 --disable-documentation \
ae8f43dd 109 --enable-static
110
111%{__make}
112
113%install
114rm -rf $RPM_BUILD_ROOT
ae8f43dd 115
116%{__make} install \
db814cdf
JB
117 DESTDIR=$RPM_BUILD_ROOT
118
119install -d $RPM_BUILD_ROOT%{_dlldir}
120mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
121
122%if 0%{!?debug:1}
123%{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
124%{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
125%endif
126
ae8f43dd 127%clean
128rm -rf $RPM_BUILD_ROOT
129
130%files
131%defattr(644,root,root,755)
b456b73a 132%doc AUTHORS ChangeLog NEWS PORTING README
ecea4436
JB
133%{_libdir}/libgdkmm-2.4.dll.a
134%{_libdir}/libgtkmm-2.4.dll.a
135%{_libdir}/libgdkmm-2.4.la
136%{_libdir}/libgtkmm-2.4.la
137%{_libdir}/gdkmm-2.4
138%{_libdir}/gtkmm-2.4
139%{_includedir}/gdkmm-2.4
140%{_includedir}/gtkmm-2.4
141%{_pkgconfigdir}/gdkmm-2.4.pc
142%{_pkgconfigdir}/gtkmm-2.4.pc
db814cdf
JB
143
144%files static
145%defattr(644,root,root,755)
ecea4436
JB
146%{_libdir}/libgdkmm-2.4.a
147%{_libdir}/libgtkmm-2.4.a
db814cdf
JB
148
149%files dll
150%defattr(644,root,root,755)
ecea4436
JB
151%{_dlldir}/libgdkmm-2.4-*.dll
152%{_dlldir}/libgtkmm-2.4-*.dll
This page took 0.098242 seconds and 4 git commands to generate.