]> git.pld-linux.org Git - packages/libsigc++.git/blame - libsigc++.spec
- allow building without docs
[packages/libsigc++.git] / libsigc++.spec
CommitLineData
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 7Summary: The Typesafe Signal Framework for C++
635b8004 8Summary(pl.UTF-8): Środowisko sygnałów z kontrolą typów dla C++
5133f76b 9Name: libsigc++
d843bd3c 10Version: 2.12.0
1e5c6e05 11Release: 1
c27f8333 12Epoch: 1
3c2e80c3 13License: LGPL v2.1+
5133f76b 14Group: Libraries
d843bd3c
JB
15Source0: https://download.gnome.org/sources/libsigc++/2.12/%{name}-%{version}.tar.xz
16# Source0-md5: 943b7aef5d74fbc4f4a3bb67bcfaae02
13e32c2e 17URL: https://libsigcplusplus.github.io/libsigcplusplus/
3e00d680 18BuildRequires: autoconf >= 2.59
f3a3158c 19BuildRequires: automake >= 1:1.9
730e4763 20BuildRequires: docbook-style-xsl-nons
aa517bb1 21BuildRequires: doxygen >= 1:1.8.9
13e32c2e 22BuildRequires: libstdc++-devel >= 6:4.7
1c773249 23BuildRequires: libtool >= 2:2.0
0764e6a0 24BuildRequires: m4
db10935c 25BuildRequires: mm-common >= 0.9.10
b02845a0 26BuildRequires: perl-base
d33e9e7d 27BuildRequires: pkgconfig
37440e06 28BuildRequires: rpm-build >= 4.6
6e5cfdbe
JB
29BuildRequires: tar >= 1:1.22
30BuildRequires: xz
d843bd3c 31Obsoletes: libsigc++-examples < 1
8deca2bf 32Conflicts: libsigc++ < 1.1.0
b02845a0 33BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
c014a68e 34
35%description
ae7d4fa5 36This library implements a full callback system for use in widget
37libraries, abstract interfaces, and general programming. Originally
a4ed2849 38part of the Gtk-- widget set, libsigc++ is now a seperate library to
ae7d4fa5 39provide for more general use. It is the most complete library of its
40kind with the ablity to connect an abstract callback to a class
41method, function, or function object. It contains adaptor classes for
42connection of dissimilar callbacks and has an ease of use unmatched by
43other C++ callback libraries.
c014a68e 44
e1f1abbc
JR
45%description -l pl.UTF-8
46Ta biblioteka jest implementacją pełnego systemu callbacków do
47używania w bibliotekach widgetów, interfejsach abstrakcyjnych i
48ogólnym programowaniu. Oryginalnie była to część zestawu widgetów
49Gtk--, ale jest teraz oddzielną biblioteką ogólniejszego
50przeznaczenia. Jest to kompletna biblioteka tego typu z możliwością
51łączenia abstrakcyjnych callbacków z metodami klas, funkcjami lub
52obiektami funkcji. Zawiera klasy adapterów do łączenia różnych
53callbacków.
45bd5da5 54
c014a68e 55%package devel
45bd5da5 56Summary: Development tools for the Typesafe Signal Framework for C++
635b8004 57Summary(pl.UTF-8): Narzędzia programistyczne do środowiska libsig++
5133f76b 58Group: Development/Libraries
b02845a0 59Requires: %{name} = %{epoch}:%{version}-%{release}
13e32c2e 60Requires: libstdc++-devel >= 6:4.7
8deca2bf 61Requires: m4
c014a68e 62
63%description devel
5133f76b 64Development tools for the Typesafe Signal Framework for C++.
c014a68e 65
e1f1abbc
JR
66%description devel -l pl.UTF-8
67Narzędzia programistyczne do środowiska libsigc++ - sygnałów z
68kontrolą typów.
45bd5da5 69
5133f76b 70%package static
71Summary: Static Typesafe Signal Framework for C++ libraries
635b8004 72Summary(pl.UTF-8): Statyczna biblioteka libsigc++
5133f76b 73Group: Development/Libraries
b02845a0 74Requires: %{name}-devel = %{epoch}:%{version}-%{release}
c014a68e 75
5133f76b 76%description static
77Static Typesafe Signal Framework for C++ libraries.
c014a68e 78
e1f1abbc
JR
79%description static -l pl.UTF-8
80Statyczna biblioteka libsigc++ - środowiska sygnałów z kontrolą typów.
45bd5da5 81
a5958e16
JB
82%package doc
83Summary: Reference documentation for libsigc++
84Summary(pl.UTF-8): Szczegółowa dokumentacja dla libsigc++
85Group: Documentation
37440e06 86BuildArch: noarch
a5958e16
JB
87
88%description doc
89Reference documentation for libsigc++.
90
91%description doc -l pl.UTF-8
92Szczegółowa dokumentacja dla libsigc++.
93
c014a68e 94%prep
95%setup -q
c014a68e 96
97%build
aa517bb1 98mm-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
115rm -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
124rm -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
This page took 0.177401 seconds and 4 git commands to generate.