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