]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without apidocs # build without apidocs | |
4 | ||
5 | Summary: Experimental D-Bus bindings for GObject | |
6 | Summary(pl.UTF-8): Eksperymentalne wiązania D-Busa do GObject | |
7 | Name: eggdbus | |
8 | Version: 0.6 | |
9 | Release: 4 | |
10 | License: LGPL v2+ | |
11 | Group: Libraries | |
12 | Source0: http://hal.freedesktop.org/releases/%{name}-%{version}.tar.gz | |
13 | # Source0-md5: b43d2a6c523fcb8b9d0b0300c4222386 | |
14 | URL: http://cgit.freedesktop.org/~david/eggdbus | |
15 | BuildRequires: autoconf >= 2.60 | |
16 | BuildRequires: automake | |
17 | BuildRequires: dbus-devel >= 1.0.0 | |
18 | BuildRequires: dbus-glib-devel >= 0.73 | |
19 | BuildRequires: docbook-dtd412-xml | |
20 | BuildRequires: glib2-devel >= 1:2.20.0 | |
21 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.3} | |
22 | BuildRequires: libtool | |
23 | BuildRequires: libxslt-progs | |
24 | BuildRequires: pkgconfig | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
28 | Experimental D-Bus bindings for GObject. | |
29 | ||
30 | %description -l pl.UTF-8 | |
31 | Eksperymentalne wiązania D-Busa do GObject. | |
32 | ||
33 | %package devel | |
34 | Summary: Development files for EggDBus library | |
35 | Summary(pl.UTF-8): Pliki programistyczne biblioteki EggDBus | |
36 | Group: Development/Libraries | |
37 | Requires: %{name} = %{version}-%{release} | |
38 | Requires: glib2-devel >= 1:2.20.0 | |
39 | ||
40 | %description devel | |
41 | Development files for EggDBus library. | |
42 | ||
43 | %description devel -l pl.UTF-8 | |
44 | Pliki programistyczne biblioteki EggDBus. | |
45 | ||
46 | %package static | |
47 | Summary: Static EggDBus library | |
48 | Summary(pl.UTF-8): Statyczna biblioteka EggDBus | |
49 | Group: Development/Libraries | |
50 | Requires: %{name}-devel = %{version}-%{release} | |
51 | ||
52 | %description static | |
53 | Static EggDBus library. | |
54 | ||
55 | %description static -l pl.UTF-8 | |
56 | Statyczna biblioteka EggDBus. | |
57 | ||
58 | %package apidocs | |
59 | Summary: EggDBus API documentation | |
60 | Summary(pl.UTF-8): Dokumentacja API EggDBus | |
61 | Group: Documentation | |
62 | Requires: gtk-doc-common | |
63 | BuildArch: noarch | |
64 | ||
65 | %description apidocs | |
66 | EggDBus API documentation. | |
67 | ||
68 | %description apidocs -l pl.UTF-8 | |
69 | Dokumentacja API EggDBus. | |
70 | ||
71 | %prep | |
72 | %setup -q | |
73 | ||
74 | %build | |
75 | %{?with_apidocs:%{__gtkdocize}} | |
76 | %{__libtoolize} | |
77 | %{__aclocal} | |
78 | %{__autoconf} | |
79 | %{__autoheader} | |
80 | %{__automake} | |
81 | %configure \ | |
82 | --%{!?with_apidocs:dis}%{?with_apidocs:en}able-gtk-doc \ | |
83 | --with-html-dir=%{_gtkdocdir} | |
84 | ||
85 | %{__make} -j1 | |
86 | ||
87 | %install | |
88 | rm -rf $RPM_BUILD_ROOT | |
89 | ||
90 | %{__make} install \ | |
91 | DESTDIR=$RPM_BUILD_ROOT | |
92 | ||
93 | rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}/tests | |
94 | ||
95 | %clean | |
96 | rm -rf $RPM_BUILD_ROOT | |
97 | ||
98 | %post -p /sbin/ldconfig | |
99 | %postun -p /sbin/ldconfig | |
100 | ||
101 | %files | |
102 | %defattr(644,root,root,755) | |
103 | %doc AUTHORS | |
104 | %attr(755,root,root) %{_libdir}/libeggdbus-1.so.*.* | |
105 | %attr(755,root,root) %ghost %{_libdir}/libeggdbus-1.so.0 | |
106 | ||
107 | %files devel | |
108 | %defattr(644,root,root,755) | |
109 | %attr(755,root,root) %{_bindir}/eggdbus-binding-tool | |
110 | %attr(755,root,root) %{_bindir}/eggdbus-glib-genmarshal | |
111 | %attr(755,root,root) %{_libdir}/libeggdbus-1.so | |
112 | %{_libdir}/libeggdbus-1.la | |
113 | %{_includedir}/eggdbus-1 | |
114 | %{_pkgconfigdir}/eggdbus-1.pc | |
115 | %{_mandir}/man1/eggdbus-binding-tool.1* | |
116 | ||
117 | %files static | |
118 | %defattr(644,root,root,755) | |
119 | %{_libdir}/libeggdbus-1.a | |
120 | ||
121 | %if %{with apidocs} | |
122 | %files apidocs | |
123 | %defattr(644,root,root,755) | |
124 | %{_gtkdocdir}/eggdbus | |
125 | %endif |