]> git.pld-linux.org Git - packages/crossmingw32-libsigc++.git/blob - crossmingw32-libsigc++.spec
ecb9db1f30fc13e7358d59c65ef05c5735fe6ba4
[packages/crossmingw32-libsigc++.git] / crossmingw32-libsigc++.spec
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}
5 Version:        2.0.18
6 Release:        1
7 License:        LGPL v2.1+
8 Group:          Development/Libraries
9 Source0:        http://ftp.gnome.org/pub/GNOME/sources/libsigc++/2.0/%{realname}-%{version}.tar.bz2
10 # Source0-md5:  ddebf5aafc8525d10366a8724abc9f28
11 URL:            http://libsigc.sourceforge.net/
12 BuildRequires:  autoconf >= 2.59
13 BuildRequires:  automake >= 1.9
14 BuildRequires:  crossmingw32-gcc-c++
15 BuildRequires:  libtool
16 BuildRequires:  m4
17 BuildRequires:  perl-base
18 Requires:       crossmingw32-runtime
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
26 %define         _sysprefix              /usr
27 %define         _prefix                 %{_sysprefix}/%{target}
28 %define         _pkgconfigdir           %{_libdir}/pkgconfig
29 %define         _dlldir                 /usr/share/wine/windows/system
30 %define         __cc                    %{target}-gcc
31 %define         __cxx                   %{target}-g++
32
33 %description
34 This library implements a full callback system for use in widget
35 libraries, abstract interfaces, and general programming. Originally
36 part of the Gtk-- widget set, libsigc++ is now a seperate library to
37 provide for more general use. It is the most complete library of its
38 kind with the ablity to connect an abstract callback to a class
39 method, function, or function object. It contains adaptor classes for
40 connection of dissimilar callbacks and has an ease of use unmatched by
41 other C++ callback libraries.
42
43 This package contains cross Mingw32 version.
44
45 %description -l pl.UTF-8
46 Ta biblioteka jest implementacją pełnego systemu callbacków do
47 używania w bibliotekach widgetów, interfejsach abstrakcyjnych i
48 ogólnym programowaniu. Oryginalnie była to część zestawu widgetów
49 Gtk--, ale jest teraz oddzielną biblioteką ogólniejszego
50 przeznaczenia. Jest to kompletna biblioteka tego typu z możliwością
51 łączenia abstrakcyjnych callbacków z metodami klas, funkcjami lub
52 obiektami funkcji. Zawiera klasy adapterów do łączenia różnych
53 callbacków.
54
55 Ten pakiet zawiera wersję skrośną Mingw32.
56
57 %package static
58 Summary:        Static libsigc++ library (cross mingw32 version)
59 Summary(pl.UTF-8):      Statyczna biblioteka libsigc++ (wersja skrośna mingw32)
60 Group:          Development/Libraries
61 Requires:       %{name} = %{version}-%{release}
62
63 %description static
64 Static libsigc++ library (cross mingw32 version).
65
66 %description static -l pl.UTF-8
67 Statyczna biblioteka libsigc++ (wersja skrośna mingw32).
68
69 %package dll
70 Summary:        DLL libsigc++ library for Windows
71 Summary(pl.UTF-8):      Biblioteka DLL libsigc++ dla Windows
72 Group:          Applications/Emulators
73 Requires:       wine
74
75 %description dll
76 DLL libsigc++ library for Windows.
77
78 %description dll -l pl.UTF-8
79 Biblioteka DLL libsigc++ dla Windows.
80
81 %prep
82 %setup -q -n %{realname}-%{version}
83
84 %build
85 %{__libtoolize}
86 %{__aclocal} -I scripts
87 %{__autoconf}
88 %{__automake}
89 %configure \
90         --target=%{target} \
91         --host=%{target} \
92         --enable-shared \
93         --enable-static
94
95 %{__make} all
96
97 %install
98 rm -rf $RPM_BUILD_ROOT
99
100 %{__make} install \
101         DESTDIR=$RPM_BUILD_ROOT
102
103 install -d $RPM_BUILD_ROOT%{_dlldir}
104 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
105
106 %if 0%{!?debug:1}
107 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
108 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
109 %endif
110
111 rm -rf $RPM_BUILD_ROOT%{_datadir}/doc
112
113 %clean
114 rm -rf $RPM_BUILD_ROOT
115
116 %files
117 %defattr(644,root,root,755)
118 %doc AUTHORS ChangeLog NEWS README TODO
119 %{_libdir}/libsigc-2.0.dll.a
120 %{_libdir}/libsigc-2.0.la
121 %{_libdir}/sigc++-2.0
122 %{_includedir}/sigc++-2.0
123 %{_pkgconfigdir}/sigc++-2.0.pc
124
125 %files static
126 %defattr(644,root,root,755)
127 %{_libdir}/libsigc-2.0.a
128
129 %files dll
130 %defattr(644,root,root,755)
131 %{_dlldir}/libsigc-2.0-*.dll
This page took 0.064892 seconds and 3 git commands to generate.