1 Summary: The Typesafe Signal Framework for C++ - MinGW32 cross version
2 Summary(pl.UTF-8): Środowisko sygnałów z kontrolą typów dla C++ - wersja skrośna dla MinGW32
3 %define realname libsigc++
4 Name: crossmingw32-%{realname}
8 Group: Development/Libraries
9 Source0: http://ftp.gnome.org/pub/GNOME/sources/libsigc++/2.2/%{realname}-%{version}.tar.xz
10 # Source0-md5: 815d0c6d61601f51bbcaeef6826606b0
11 URL: http://libsigc.sourceforge.net/
12 BuildRequires: autoconf >= 2.59
13 BuildRequires: automake >= 1:1.9
14 BuildRequires: crossmingw32-gcc-c++
15 BuildRequires: libtool >= 2:2.0
17 BuildRequires: mm-common >= 0.7.2
18 BuildRequires: perl-base
19 BuildRequires: pkgconfig
20 BuildRequires: tar >= 1:1.22
22 Requires: crossmingw32-runtime
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 %define no_install_post_strip 1
27 %define target i386-mingw32
28 %define target_platform i386-pc-mingw32
30 %define _sysprefix /usr
31 %define _prefix %{_sysprefix}/%{target}
32 %define _libdir %{_prefix}/lib
33 %define _pkgconfigdir %{_prefix}/lib/pkgconfig
34 %define _dlldir /usr/share/wine/windows/system
35 %define __cc %{target}-gcc
36 %define __cxx %{target}-g++
39 # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
42 # -z options are invalid for mingw linker, most of -f options are Linux-specific
43 %define filterout_ld -Wl,-z,.*
44 %define filterout_c -f[-a-z0-9=]*
45 %define filterout_cxx -f[-a-z0-9=]*
48 This library implements a full callback system for use in widget
49 libraries, abstract interfaces, and general programming. Originally
50 part of the Gtk-- widget set, libsigc++ is now a seperate library to
51 provide for more general use. It is the most complete library of its
52 kind with the ablity to connect an abstract callback to a class
53 method, function, or function object. It contains adaptor classes for
54 connection of dissimilar callbacks and has an ease of use unmatched by
55 other C++ callback libraries.
57 This package contains cross MinGW32 version.
59 %description -l pl.UTF-8
60 Ta biblioteka jest implementacją pełnego systemu callbacków do
61 używania w bibliotekach widgetów, interfejsach abstrakcyjnych i
62 ogólnym programowaniu. Oryginalnie była to część zestawu widgetów
63 Gtk--, ale jest teraz oddzielną biblioteką ogólniejszego
64 przeznaczenia. Jest to kompletna biblioteka tego typu z możliwością
65 łączenia abstrakcyjnych callbacków z metodami klas, funkcjami lub
66 obiektami funkcji. Zawiera klasy adapterów do łączenia różnych
69 Ten pakiet zawiera wersję skrośną MinGW32.
72 Summary: Static libsigc++ library (cross MinGW32 version)
73 Summary(pl.UTF-8): Statyczna biblioteka libsigc++ (wersja skrośna MinGW32)
74 Group: Development/Libraries
75 Requires: %{name} = %{version}-%{release}
78 Static libsigc++ library (cross MinGW32 version).
80 %description static -l pl.UTF-8
81 Statyczna biblioteka libsigc++ (wersja skrośna MinGW32).
84 Summary: DLL libsigc++ library for Windows
85 Summary(pl.UTF-8): Biblioteka DLL libsigc++ dla Windows
86 Group: Applications/Emulators
90 DLL libsigc++ library for Windows.
92 %description dll -l pl.UTF-8
93 Biblioteka DLL libsigc++ dla Windows.
96 %setup -q -n %{realname}-%{version}
100 %{__aclocal} -I build
111 rm -rf $RPM_BUILD_ROOT
114 DESTDIR=$RPM_BUILD_ROOT
116 install -d $RPM_BUILD_ROOT%{_dlldir}
117 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
120 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
121 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
124 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/{devhelp,doc}
127 rm -rf $RPM_BUILD_ROOT
130 %defattr(644,root,root,755)
131 %doc AUTHORS ChangeLog NEWS README TODO
132 %{_libdir}/libsigc-2.0.dll.a
133 %{_libdir}/libsigc-2.0.la
134 %{_libdir}/sigc++-2.0
135 %{_includedir}/sigc++-2.0
136 %{_pkgconfigdir}/sigc++-2.0.pc
139 %defattr(644,root,root,755)
140 %{_libdir}/libsigc-2.0.a
143 %defattr(644,root,root,755)
144 %{_dlldir}/libsigc-2.0-*.dll