]>
Commit | Line | Data |
---|---|---|
8df5f89a | 1 | # |
d1d622ab | 2 | # Conditional build: |
8dcfc624 | 3 | %bcond_without static_libs # don't build static library |
d1d622ab | 4 | # |
5133f76b | 5 | Summary: The Typesafe Signal Framework for C++ |
635b8004 | 6 | Summary(pl.UTF-8): Środowisko sygnałów z kontrolą typów dla C++ |
5133f76b | 7 | Name: libsigc++ |
6e5cfdbe | 8 | Version: 2.2.10 |
76d4c456 | 9 | Release: 1 |
c27f8333 | 10 | Epoch: 1 |
3c2e80c3 | 11 | License: LGPL v2.1+ |
5133f76b | 12 | Group: Libraries |
6e5cfdbe JB |
13 | Source0: http://ftp.gnome.org/pub/GNOME/sources/libsigc++/2.2/%{name}-%{version}.tar.xz |
14 | # Source0-md5: 73419b477f3bb9ddb9905c88a92f4b4c | |
e9650dc1 | 15 | URL: http://libsigc.sourceforge.net/ |
3e00d680 | 16 | BuildRequires: autoconf >= 2.59 |
f3a3158c | 17 | BuildRequires: automake >= 1:1.9 |
5133f76b | 18 | BuildRequires: libstdc++-devel |
20f4a460 | 19 | BuildRequires: libtool |
0764e6a0 | 20 | BuildRequires: m4 |
f3a3158c | 21 | BuildRequires: mm-common >= 0.7.2 |
b02845a0 | 22 | BuildRequires: perl-base |
d33e9e7d | 23 | BuildRequires: pkgconfig |
6e5cfdbe JB |
24 | BuildRequires: tar >= 1:1.22 |
25 | BuildRequires: xz | |
d0f81991 | 26 | Obsoletes: libsigc++-examples |
8deca2bf | 27 | Conflicts: libsigc++ < 1.1.0 |
b02845a0 | 28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
c014a68e | 29 | |
30 | %description | |
ae7d4fa5 | 31 | This library implements a full callback system for use in widget |
32 | libraries, abstract interfaces, and general programming. Originally | |
a4ed2849 | 33 | part of the Gtk-- widget set, libsigc++ is now a seperate library to |
ae7d4fa5 | 34 | provide for more general use. It is the most complete library of its |
35 | kind with the ablity to connect an abstract callback to a class | |
36 | method, function, or function object. It contains adaptor classes for | |
37 | connection of dissimilar callbacks and has an ease of use unmatched by | |
38 | other C++ callback libraries. | |
c014a68e | 39 | |
e1f1abbc JR |
40 | %description -l pl.UTF-8 |
41 | Ta biblioteka jest implementacją pełnego systemu callbacków do | |
42 | używania w bibliotekach widgetów, interfejsach abstrakcyjnych i | |
43 | ogólnym programowaniu. Oryginalnie była to część zestawu widgetów | |
44 | Gtk--, ale jest teraz oddzielną biblioteką ogólniejszego | |
45 | przeznaczenia. Jest to kompletna biblioteka tego typu z możliwością | |
46 | łączenia abstrakcyjnych callbacków z metodami klas, funkcjami lub | |
47 | obiektami funkcji. Zawiera klasy adapterów do łączenia różnych | |
48 | callbacków. | |
45bd5da5 | 49 | |
c014a68e | 50 | %package devel |
45bd5da5 | 51 | Summary: Development tools for the Typesafe Signal Framework for C++ |
635b8004 | 52 | Summary(pl.UTF-8): Narzędzia programistyczne do środowiska libsig++ |
5133f76b | 53 | Group: Development/Libraries |
b02845a0 | 54 | Requires: %{name} = %{epoch}:%{version}-%{release} |
c3338043 | 55 | Requires: libstdc++-devel |
8deca2bf | 56 | Requires: m4 |
c014a68e | 57 | |
58 | %description devel | |
5133f76b | 59 | Development tools for the Typesafe Signal Framework for C++. |
c014a68e | 60 | |
e1f1abbc JR |
61 | %description devel -l pl.UTF-8 |
62 | Narzędzia programistyczne do środowiska libsigc++ - sygnałów z | |
63 | kontrolą typów. | |
45bd5da5 | 64 | |
5133f76b | 65 | %package static |
66 | Summary: Static Typesafe Signal Framework for C++ libraries | |
635b8004 | 67 | Summary(pl.UTF-8): Statyczna biblioteka libsigc++ |
5133f76b | 68 | Group: Development/Libraries |
b02845a0 | 69 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
c014a68e | 70 | |
5133f76b | 71 | %description static |
72 | Static Typesafe Signal Framework for C++ libraries. | |
c014a68e | 73 | |
e1f1abbc JR |
74 | %description static -l pl.UTF-8 |
75 | Statyczna biblioteka libsigc++ - środowiska sygnałów z kontrolą typów. | |
45bd5da5 | 76 | |
a5958e16 JB |
77 | %package doc |
78 | Summary: Reference documentation for libsigc++ | |
79 | Summary(pl.UTF-8): Szczegółowa dokumentacja dla libsigc++ | |
80 | Group: Documentation | |
81 | ||
82 | %description doc | |
83 | Reference documentation for libsigc++. | |
84 | ||
85 | %description doc -l pl.UTF-8 | |
86 | Szczegółowa dokumentacja dla libsigc++. | |
87 | ||
c014a68e | 88 | %prep |
89 | %setup -q | |
c014a68e | 90 | |
91 | %build | |
a09c286c | 92 | %{__libtoolize} |
f3a3158c | 93 | %{__aclocal} -I build |
d91e70f5 | 94 | %{__autoconf} |
95 | %{__automake} | |
57120020 | 96 | %configure \ |
f3a3158c | 97 | %{?with_static_libs:--enable-static} |
1e481335 | 98 | %{__make} -j1 all check |
c014a68e | 99 | |
100 | %install | |
101 | rm -rf $RPM_BUILD_ROOT | |
0764e6a0 | 102 | |
bc7295d0 | 103 | %{__make} install \ |
f864fec3 | 104 | DESTDIR=$RPM_BUILD_ROOT |
5133f76b | 105 | |
c014a68e | 106 | %clean |
107 | rm -rf $RPM_BUILD_ROOT | |
108 | ||
45bd5da5 JB |
109 | %post -p /sbin/ldconfig |
110 | %postun -p /sbin/ldconfig | |
111 | ||
c014a68e | 112 | %files |
5133f76b | 113 | %defattr(644,root,root,755) |
a4ed2849 | 114 | %doc AUTHORS ChangeLog NEWS README TODO |
3c2e80c3 | 115 | %attr(755,root,root) %{_libdir}/libsigc-2.0.so.*.*.* |
dec54bae | 116 | %attr(755,root,root) %ghost %{_libdir}/libsigc-2.0.so.0 |
c014a68e | 117 | |
118 | %files devel | |
5133f76b | 119 | %defattr(644,root,root,755) |
3c2e80c3 JB |
120 | %attr(755,root,root) %{_libdir}/libsigc-2.0.so |
121 | %{_libdir}/libsigc-2.0.la | |
122 | %{_includedir}/sigc++-2.0 | |
123 | %{_libdir}/sigc++-2.0 | |
124 | %{_pkgconfigdir}/sigc++-2.0.pc | |
a4ed2849 | 125 | |
8dcfc624 | 126 | %if %{with static_libs} |
5133f76b | 127 | %files static |
ae7d4fa5 | 128 | %defattr(644,root,root,755) |
3c2e80c3 | 129 | %{_libdir}/libsigc-2.0.a |
57120020 | 130 | %endif |
3c2e80c3 JB |
131 | |
132 | %files doc | |
133 | %defattr(644,root,root,755) | |
0d133ba9 | 134 | %{_datadir}/devhelp/books/libsigc++-2.0 |
f3a3158c | 135 | %{_docdir}/libsigc++-2.0 |