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++
37 %define __pkgconfig_provides %{nil}
40 # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
43 # -z options are invalid for mingw linker, most of -f options are Linux-specific
44 %define filterout_ld -Wl,-z,.*
45 %define filterout_c -f[-a-z0-9=]*
46 %define filterout_cxx -f[-a-z0-9=]*
49 This library implements a full callback system for use in widget
50 libraries, abstract interfaces, and general programming. Originally
51 part of the Gtk-- widget set, libsigc++ is now a seperate library to
52 provide for more general use. It is the most complete library of its
53 kind with the ablity to connect an abstract callback to a class
54 method, function, or function object. It contains adaptor classes for
55 connection of dissimilar callbacks and has an ease of use unmatched by
56 other C++ callback libraries.
58 This package contains cross MinGW32 version.
60 %description -l pl.UTF-8
61 Ta biblioteka jest implementacją pełnego systemu callbacków do
62 używania w bibliotekach widgetów, interfejsach abstrakcyjnych i
63 ogólnym programowaniu. Oryginalnie była to część zestawu widgetów
64 Gtk--, ale jest teraz oddzielną biblioteką ogólniejszego
65 przeznaczenia. Jest to kompletna biblioteka tego typu z możliwością
66 łączenia abstrakcyjnych callbacków z metodami klas, funkcjami lub
67 obiektami funkcji. Zawiera klasy adapterów do łączenia różnych
70 Ten pakiet zawiera wersję skrośną MinGW32.
73 Summary: Static libsigc++ library (cross MinGW32 version)
74 Summary(pl.UTF-8): Statyczna biblioteka libsigc++ (wersja skrośna MinGW32)
75 Group: Development/Libraries
76 Requires: %{name} = %{version}-%{release}
79 Static libsigc++ library (cross MinGW32 version).
81 %description static -l pl.UTF-8
82 Statyczna biblioteka libsigc++ (wersja skrośna MinGW32).
85 Summary: DLL libsigc++ library for Windows
86 Summary(pl.UTF-8): Biblioteka DLL libsigc++ dla Windows
87 Group: Applications/Emulators
91 DLL libsigc++ library for Windows.
93 %description dll -l pl.UTF-8
94 Biblioteka DLL libsigc++ dla Windows.
97 %setup -q -n %{realname}-%{version}
101 %{__aclocal} -I build
112 rm -rf $RPM_BUILD_ROOT
115 DESTDIR=$RPM_BUILD_ROOT
117 install -d $RPM_BUILD_ROOT%{_dlldir}
118 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
121 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
122 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
125 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/{devhelp,doc}
128 rm -rf $RPM_BUILD_ROOT
131 %defattr(644,root,root,755)
132 %doc AUTHORS ChangeLog NEWS README TODO
133 %{_libdir}/libsigc-2.0.dll.a
134 %{_libdir}/libsigc-2.0.la
135 %{_libdir}/sigc++-2.0
136 %{_includedir}/sigc++-2.0
137 %{_pkgconfigdir}/sigc++-2.0.pc
140 %defattr(644,root,root,755)
141 %{_libdir}/libsigc-2.0.a
144 %defattr(644,root,root,755)
145 %{_dlldir}/libsigc-2.0-*.dll