]>
Commit | Line | Data |
---|---|---|
dec16728 | 1 | # |
dec16728 | 2 | Summary: The Typesafe Signal Framework for C++ - Mingw32 cross version |
ebf05782 | 3 | Summary(pl.UTF-8): Środowisko sygnałów z kontrolą typów dla C++ - wersja skrośna dla Mingw32 |
a656c583 | 4 | %define _realname libsigc++ |
dec16728 | 5 | Name: crossmingw32-%{_realname} |
6 | Version: 2.0.17 | |
a656c583 | 7 | Release: 1 |
dec16728 | 8 | License: LGPL |
9 | Group: Libraries | |
10 | Source0: http://ftp.gnome.org/pub/gnome/sources/libsigc++/2.0/%{_realname}-%{version}.tar.bz2 | |
11 | # Source0-md5: fde0ee69e3125e982746d9fe005763e1 | |
12 | URL: http://libsigc.sourceforge.net/ | |
13 | BuildRequires: autoconf >= 2.59 | |
14 | BuildRequires: automake >= 1.9 | |
dec16728 | 15 | BuildRequires: libtool |
16 | BuildRequires: m4 | |
17 | BuildRequires: perl-base | |
18 | Obsoletes: libsigc++-examples | |
dec16728 | 19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
20 | ||
21 | %define no_install_post_strip 1 | |
22 | ||
23 | %define target i386-mingw32 | |
24 | %define target_platform i386-pc-mingw32 | |
25 | %define arch %{_prefix}/%{target} | |
26 | %define gccarch %{_prefix}/lib/gcc-lib/%{target} | |
27 | %define gcclib %{_prefix}/lib/gcc-lib/%{target}/%{version} | |
28 | ||
29 | %define _sysprefix /usr | |
30 | %define _prefix %{_sysprefix}/%{target} | |
31 | %define __cc %{target}-gcc | |
32 | %define __cxx %{target}-g++ | |
33 | ||
34 | %description | |
35 | This library implements a full callback system for use in widget | |
36 | libraries, abstract interfaces, and general programming. Originally | |
37 | part of the Gtk-- widget set, libsigc++ is now a seperate library to | |
38 | provide for more general use. It is the most complete library of its | |
39 | kind with the ablity to connect an abstract callback to a class | |
40 | method, function, or function object. It contains adaptor classes for | |
41 | connection of dissimilar callbacks and has an ease of use unmatched by | |
42 | other C++ callback libraries. | |
43 | ||
708b30c2 JB |
44 | This package contains cross Mingw32 version. |
45 | ||
a0719c45 JR |
46 | %description -l pl.UTF-8 |
47 | Ta biblioteka jest implementacją pełnego systemu callbacków do | |
48 | używania w bibliotekach widgetów, interfejsach abstrakcyjnych i | |
49 | ogólnym programowaniu. Oryginalnie była to część zestawu widgetów | |
50 | Gtk--, ale jest teraz oddzielną biblioteką ogólniejszego | |
51 | przeznaczenia. Jest to kompletna biblioteka tego typu z możliwością | |
52 | łączenia abstrakcyjnych callbacków z metodami klas, funkcjami lub | |
53 | obiektami funkcji. Zawiera klasy adapterów do łączenia różnych | |
54 | callbacków. | |
dec16728 | 55 | |
708b30c2 JB |
56 | Ten pakiet zawiera wersję skrośną Mingw32. |
57 | ||
dec16728 | 58 | %prep |
59 | %setup -q -n %{_realname}-%{version} | |
60 | ||
61 | %build | |
a656c583 | 62 | export PKG_CONFIG_PATH=%{_prefix}/lib/pkgconfig |
dec16728 | 63 | %{__libtoolize} |
64 | %{__aclocal} -I scripts | |
65 | %{__autoconf} | |
66 | %{__automake} | |
723599ec | 67 | |
dec16728 | 68 | %configure \ |
a656c583 | 69 | AR="%{target}-ar" \ |
70 | RANLIB="%{target}-ranlib" \ | |
dec16728 | 71 | --host=%{target_platform} \ |
a656c583 | 72 | --disable-static |
dec16728 | 73 | %{__make} all |
74 | ||
75 | %install | |
76 | rm -rf $RPM_BUILD_ROOT | |
77 | ||
78 | %{__make} install \ | |
79 | DESTDIR=$RPM_BUILD_ROOT | |
80 | ||
81 | %clean | |
82 | rm -rf $RPM_BUILD_ROOT | |
83 | ||
84 | %files | |
85 | %defattr(644,root,root,755) | |
86 | %doc AUTHORS ChangeLog NEWS README TODO | |
87 | %{_libdir}/lib*.a | |
88 | %{_libdir}/lib*.la | |
723599ec | 89 | %dir %{_includedir}/sigc++-2.0 |
90 | %{_includedir}/sigc++-2.0 | |
91 | %dir %{_libdir}/sigc++-2.0 | |
dec16728 | 92 | %{_libdir}/sigc++* |
a656c583 | 93 | %{_libdir}/pkgconfig/* |