]>
Commit | Line | Data |
---|---|---|
1c170856 | 1 | # |
99b93f6d | 2 | %define dbus_version 0.93 |
1c170856 | 3 | %define expat_version 1:1.95.5 |
4 | %define glib_version 1:2.10.1 | |
5 | # | |
6 | Summary: GLib-based library for using D-BUS | |
071c2493 | 7 | Summary(pl.UTF-8): Biblioteka do używania D-BUS oparta o GLib |
1c170856 | 8 | Name: dbus-glib |
32772841 PZ |
9 | Version: 0.76 |
10 | Release: 1 | |
1c170856 | 11 | License: AFL v2.1 or GPL v2 |
12 | Group: Libraries | |
2ce682cc | 13 | Source0: http://dbus.freedesktop.org/releases/dbus-glib/%{name}-%{version}.tar.gz |
32772841 | 14 | # Source0-md5: d3b716a7e798faa1c6a867675f00306a |
0c68a254 | 15 | Source1: dbus-bus-introspect.xml |
090e7484 | 16 | Patch0: %{name}-configure.patch |
bcfa4573 | 17 | Patch1: %{name}-nolibs.patch |
13631981 | 18 | URL: http://www.freedesktop.org/Software/DBusBindings |
1c170856 | 19 | BuildRequires: autoconf >= 2.52 |
2ce682cc | 20 | BuildRequires: automake >= 1:1.9 |
1c170856 | 21 | BuildRequires: dbus-devel >= %{dbus_version} |
22 | BuildRequires: expat-devel >= %{expat_version} | |
23 | BuildRequires: glib2-devel >= %{glib_version} | |
090e7484 | 24 | BuildRequires: libtool |
1c170856 | 25 | BuildRequires: pkgconfig |
2ce682cc | 26 | BuildRequires: rpmbuild(macros) >= 1.98 |
1c170856 | 27 | Requires: dbus-libs >= %{dbus_version} |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
29 | ||
30 | %description | |
31 | D-BUS add-on library to integrate the standard D-BUS library with the | |
32 | GLib thread abstraction and main loop. | |
33 | ||
ddd70749 | 34 | %description -l pl.UTF-8 |
1c170856 | 35 | Dodatkowa biblioteka D-BUS do integracji standardowej biblioteki D-BUS |
ddd70749 | 36 | z abstrakcją wątków i główną pętlą GLib. |
1c170856 | 37 | |
38 | %package devel | |
39 | Summary: Header files for GLib-based library for using D-BUS | |
071c2493 | 40 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki do używania D-BUS opartej o GLib |
1c170856 | 41 | Group: Development/Libraries |
42 | Requires: %{name} = %{version}-%{release} | |
43 | Requires: dbus-devel >= %{dbus_version} | |
44 | Requires: glib2-devel >= %{glib2_version} | |
45 | ||
46 | %description devel | |
47 | Header files for GLib-based library for using D-BUS. | |
48 | ||
ddd70749 JR |
49 | %description devel -l pl.UTF-8 |
50 | Pliki nagłówkowe biblioteki do używania D-BUS opartej o GLib. | |
1c170856 | 51 | |
52 | %package static | |
53 | Summary: Static GLib-based library for using D-BUS | |
071c2493 | 54 | Summary(pl.UTF-8): Statyczna biblioteka do używania D-BUS oparta o GLib |
1c170856 | 55 | Group: Development/Libraries |
56 | Requires: %{name}-devel = %{version}-%{release} | |
57 | ||
58 | %description static | |
59 | Static GLib-based library for using D-BUS. | |
60 | ||
ddd70749 JR |
61 | %description static -l pl.UTF-8 |
62 | Statyczna biblioteka do używania D-BUS oparta o GLib. | |
1c170856 | 63 | |
2ce682cc JB |
64 | %package apidocs |
65 | Summary: D-BUS-GLib API documentation | |
071c2493 | 66 | Summary(pl.UTF-8): Dokumentacja API D-BUS-GLib |
2ce682cc JB |
67 | Group: Documentation |
68 | Requires: gtk-doc-common | |
69 | ||
70 | %description apidocs | |
71 | D-BUS-GLib API documentation. | |
72 | ||
ddd70749 | 73 | %description apidocs -l pl.UTF-8 |
2ce682cc JB |
74 | Dokumentacja API D-BUS-GLib. |
75 | ||
1c170856 | 76 | %prep |
77 | %setup -q | |
090e7484 | 78 | %patch0 -p1 |
bcfa4573 | 79 | %patch1 -p1 |
1c170856 | 80 | |
81 | %build | |
82 | %{__libtoolize} | |
83 | %{__aclocal} | |
84 | %{__autoconf} | |
85 | %{__autoheader} | |
86 | %{__automake} | |
87 | %configure \ | |
2ce682cc | 88 | --with-html-dir=%{_gtkdocdir} \ |
1c170856 | 89 | --with-xml=expat |
090e7484 | 90 | |
0c68a254 | 91 | cp %{SOURCE1} tools |
92 | ||
1c170856 | 93 | %{__make} |
94 | ||
95 | %install | |
96 | rm -rf $RPM_BUILD_ROOT | |
97 | ||
98 | %{__make} install \ | |
99 | DESTDIR=$RPM_BUILD_ROOT | |
100 | ||
101 | %clean | |
102 | rm -rf $RPM_BUILD_ROOT | |
103 | ||
104 | %post -p /sbin/ldconfig | |
105 | %postun -p /sbin/ldconfig | |
106 | ||
107 | %files | |
108 | %defattr(644,root,root,755) | |
6421e4e3 JB |
109 | # AFL not in common-licenses, so COPYING included |
110 | %doc AUTHORS COPYING ChangeLog NEWS README | |
1c170856 | 111 | %attr(755,root,root) %{_libdir}/libdbus-glib-1.so.*.*.* |
d4a11bac | 112 | %attr(755,root,root) %ghost %{_libdir}/libdbus-glib-1.so.2 |
1c170856 | 113 | |
114 | %files devel | |
115 | %defattr(644,root,root,755) | |
116 | %attr(755,root,root) %{_bindir}/dbus-binding-tool | |
117 | %attr(755,root,root) %{_libdir}/libdbus-glib-1.so | |
118 | %{_libdir}/libdbus-glib-1.la | |
119 | %{_includedir}/dbus*/dbus/dbus-glib*.h | |
120 | %{_includedir}/dbus*/dbus/dbus-gtype-specialized.h | |
121 | %{_pkgconfigdir}/dbus-glib-1.pc | |
122 | ||
123 | %files static | |
124 | %defattr(644,root,root,755) | |
125 | %{_libdir}/libdbus-glib-1.a | |
2ce682cc JB |
126 | |
127 | %files apidocs | |
128 | %defattr(644,root,root,755) | |
129 | %{_gtkdocdir}/dbus-glib |