]>
Commit | Line | Data |
---|---|---|
8df5f89a | 1 | # |
d1d622ab | 2 | # Conditional build: |
8dcfc624 | 3 | %bcond_without static_libs # don't build static library |
db10935c | 4 | %bcond_without tests # check target |
c47fea20 | 5 | %bcond_without docs # docs |
d1d622ab | 6 | # |
5133f76b | 7 | Summary: The Typesafe Signal Framework for C++ |
635b8004 | 8 | Summary(pl.UTF-8): Środowisko sygnałów z kontrolą typów dla C++ |
5133f76b | 9 | Name: libsigc++ |
d843bd3c | 10 | Version: 2.12.0 |
1e5c6e05 | 11 | Release: 1 |
c27f8333 | 12 | Epoch: 1 |
3c2e80c3 | 13 | License: LGPL v2.1+ |
5133f76b | 14 | Group: Libraries |
d843bd3c JB |
15 | Source0: https://download.gnome.org/sources/libsigc++/2.12/%{name}-%{version}.tar.xz |
16 | # Source0-md5: 943b7aef5d74fbc4f4a3bb67bcfaae02 | |
13e32c2e | 17 | URL: https://libsigcplusplus.github.io/libsigcplusplus/ |
3e00d680 | 18 | BuildRequires: autoconf >= 2.59 |
f3a3158c | 19 | BuildRequires: automake >= 1:1.9 |
730e4763 | 20 | BuildRequires: docbook-style-xsl-nons |
aa517bb1 | 21 | BuildRequires: doxygen >= 1:1.8.9 |
13e32c2e | 22 | BuildRequires: libstdc++-devel >= 6:4.7 |
1c773249 | 23 | BuildRequires: libtool >= 2:2.0 |
0764e6a0 | 24 | BuildRequires: m4 |
db10935c | 25 | BuildRequires: mm-common >= 0.9.10 |
b02845a0 | 26 | BuildRequires: perl-base |
d33e9e7d | 27 | BuildRequires: pkgconfig |
37440e06 | 28 | BuildRequires: rpm-build >= 4.6 |
6e5cfdbe JB |
29 | BuildRequires: tar >= 1:1.22 |
30 | BuildRequires: xz | |
d843bd3c | 31 | Obsoletes: libsigc++-examples < 1 |
8deca2bf | 32 | Conflicts: libsigc++ < 1.1.0 |
b02845a0 | 33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
c014a68e | 34 | |
35 | %description | |
ae7d4fa5 | 36 | This library implements a full callback system for use in widget |
37 | libraries, abstract interfaces, and general programming. Originally | |
a4ed2849 | 38 | part of the Gtk-- widget set, libsigc++ is now a seperate library to |
ae7d4fa5 | 39 | provide for more general use. It is the most complete library of its |
40 | kind with the ablity to connect an abstract callback to a class | |
41 | method, function, or function object. It contains adaptor classes for | |
42 | connection of dissimilar callbacks and has an ease of use unmatched by | |
43 | other C++ callback libraries. | |
c014a68e | 44 | |
e1f1abbc JR |
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. | |
45bd5da5 | 54 | |
c014a68e | 55 | %package devel |
45bd5da5 | 56 | Summary: Development tools for the Typesafe Signal Framework for C++ |
635b8004 | 57 | Summary(pl.UTF-8): Narzędzia programistyczne do środowiska libsig++ |
5133f76b | 58 | Group: Development/Libraries |
b02845a0 | 59 | Requires: %{name} = %{epoch}:%{version}-%{release} |
13e32c2e | 60 | Requires: libstdc++-devel >= 6:4.7 |
8deca2bf | 61 | Requires: m4 |
c014a68e | 62 | |
63 | %description devel | |
5133f76b | 64 | Development tools for the Typesafe Signal Framework for C++. |
c014a68e | 65 | |
e1f1abbc JR |
66 | %description devel -l pl.UTF-8 |
67 | Narzędzia programistyczne do środowiska libsigc++ - sygnałów z | |
68 | kontrolą typów. | |
45bd5da5 | 69 | |
5133f76b | 70 | %package static |
71 | Summary: Static Typesafe Signal Framework for C++ libraries | |
635b8004 | 72 | Summary(pl.UTF-8): Statyczna biblioteka libsigc++ |
5133f76b | 73 | Group: Development/Libraries |
b02845a0 | 74 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
c014a68e | 75 | |
5133f76b | 76 | %description static |
77 | Static Typesafe Signal Framework for C++ libraries. | |
c014a68e | 78 | |
e1f1abbc JR |
79 | %description static -l pl.UTF-8 |
80 | Statyczna biblioteka libsigc++ - środowiska sygnałów z kontrolą typów. | |
45bd5da5 | 81 | |
a5958e16 JB |
82 | %package doc |
83 | Summary: Reference documentation for libsigc++ | |
84 | Summary(pl.UTF-8): Szczegółowa dokumentacja dla libsigc++ | |
85 | Group: Documentation | |
37440e06 | 86 | BuildArch: noarch |
a5958e16 JB |
87 | |
88 | %description doc | |
89 | Reference documentation for libsigc++. | |
90 | ||
91 | %description doc -l pl.UTF-8 | |
92 | Szczegółowa dokumentacja dla libsigc++. | |
93 | ||
c014a68e | 94 | %prep |
95 | %setup -q | |
c014a68e | 96 | |
97 | %build | |
aa517bb1 | 98 | mm-common-prepare --copy --force |
a09c286c | 99 | %{__libtoolize} |
f3a3158c | 100 | %{__aclocal} -I build |
d91e70f5 | 101 | %{__autoconf} |
aa517bb1 | 102 | %{__autoheader} |
d91e70f5 | 103 | %{__automake} |
57120020 | 104 | %configure \ |
db10935c | 105 | --disable-silent-rules \ |
c47fea20 | 106 | %{!?with_docs:--disable-documentation} \ |
f3a3158c | 107 | %{?with_static_libs:--enable-static} |
db10935c JB |
108 | %{__make} |
109 | ||
110 | %if %{with tests} | |
111 | %{__make} check | |
112 | %endif | |
c014a68e | 113 | |
114 | %install | |
115 | rm -rf $RPM_BUILD_ROOT | |
0764e6a0 | 116 | |
bc7295d0 | 117 | %{__make} install \ |
f864fec3 | 118 | DESTDIR=$RPM_BUILD_ROOT |
5133f76b | 119 | |
2b119fbc JB |
120 | # obsoleted by pkg-config |
121 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libsigc-2.0.la | |
122 | ||
c014a68e | 123 | %clean |
124 | rm -rf $RPM_BUILD_ROOT | |
125 | ||
45bd5da5 JB |
126 | %post -p /sbin/ldconfig |
127 | %postun -p /sbin/ldconfig | |
128 | ||
c014a68e | 129 | %files |
5133f76b | 130 | %defattr(644,root,root,755) |
d843bd3c | 131 | %doc AUTHORS ChangeLog NEWS README.md |
3c2e80c3 | 132 | %attr(755,root,root) %{_libdir}/libsigc-2.0.so.*.*.* |
dec54bae | 133 | %attr(755,root,root) %ghost %{_libdir}/libsigc-2.0.so.0 |
c014a68e | 134 | |
135 | %files devel | |
5133f76b | 136 | %defattr(644,root,root,755) |
3c2e80c3 | 137 | %attr(755,root,root) %{_libdir}/libsigc-2.0.so |
3c2e80c3 JB |
138 | %{_includedir}/sigc++-2.0 |
139 | %{_libdir}/sigc++-2.0 | |
140 | %{_pkgconfigdir}/sigc++-2.0.pc | |
a4ed2849 | 141 | |
8dcfc624 | 142 | %if %{with static_libs} |
5133f76b | 143 | %files static |
ae7d4fa5 | 144 | %defattr(644,root,root,755) |
3c2e80c3 | 145 | %{_libdir}/libsigc-2.0.a |
57120020 | 146 | %endif |
3c2e80c3 | 147 | |
c47fea20 | 148 | %if %{with docs} |
3c2e80c3 JB |
149 | %files doc |
150 | %defattr(644,root,root,755) | |
0d133ba9 | 151 | %{_datadir}/devhelp/books/libsigc++-2.0 |
f3a3158c | 152 | %{_docdir}/libsigc++-2.0 |
c47fea20 | 153 | %endif |