]> git.pld-linux.org Git - packages/dbus-glib.git/blame - dbus-glib.spec
- updated for 0.80
[packages/dbus-glib.git] / dbus-glib.spec
CommitLineData
1c170856 1#
b3146ec0
KK
2# Conditional build:
3%bcond_without apidocs # disable gtk-doc
b0b8dd9c 4%bcond_without static_libs # don't build static library
b3146ec0 5#
398aca1a 6%define dbus_version 1.1
1c170856 7%define expat_version 1:1.95.5
8%define glib_version 1:2.10.1
9#
10Summary: GLib-based library for using D-BUS
071c2493 11Summary(pl.UTF-8): Biblioteka do używania D-BUS oparta o GLib
1c170856 12Name: dbus-glib
0fa525ef 13Version: 0.80
32772841 14Release: 1
1c170856 15License: AFL v2.1 or GPL v2
16Group: Libraries
2ce682cc 17Source0: http://dbus.freedesktop.org/releases/dbus-glib/%{name}-%{version}.tar.gz
0fa525ef 18# Source0-md5: 86ea60ba2118a1b9deafe8257f6a6a1a
0c68a254 19Source1: dbus-bus-introspect.xml
090e7484 20Patch0: %{name}-configure.patch
398aca1a 21Patch1: %{name}-as-needed.patch
13631981 22URL: http://www.freedesktop.org/Software/DBusBindings
1c170856 23BuildRequires: autoconf >= 2.52
2ce682cc 24BuildRequires: automake >= 1:1.9
1c170856 25BuildRequires: dbus-devel >= %{dbus_version}
26BuildRequires: expat-devel >= %{expat_version}
b3146ec0 27BuildRequires: gettext-devel
1c170856 28BuildRequires: glib2-devel >= %{glib_version}
b3146ec0 29%{?with_apidocs:BuildRequires: gtk-doc-automake >= 1.8}
090e7484 30BuildRequires: libtool
1c170856 31BuildRequires: pkgconfig
2ce682cc 32BuildRequires: rpmbuild(macros) >= 1.98
1c170856 33Requires: dbus-libs >= %{dbus_version}
34BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35
36%description
37D-BUS add-on library to integrate the standard D-BUS library with the
38GLib thread abstraction and main loop.
39
ddd70749 40%description -l pl.UTF-8
1c170856 41Dodatkowa biblioteka D-BUS do integracji standardowej biblioteki D-BUS
ddd70749 42z abstrakcją wątków i główną pętlą GLib.
1c170856 43
44%package devel
45Summary: Header files for GLib-based library for using D-BUS
071c2493 46Summary(pl.UTF-8): Pliki nagłówkowe biblioteki do używania D-BUS opartej o GLib
1c170856 47Group: Development/Libraries
48Requires: %{name} = %{version}-%{release}
49Requires: dbus-devel >= %{dbus_version}
50Requires: glib2-devel >= %{glib2_version}
51
52%description devel
53Header files for GLib-based library for using D-BUS.
54
ddd70749
JR
55%description devel -l pl.UTF-8
56Pliki nagłówkowe biblioteki do używania D-BUS opartej o GLib.
1c170856 57
58%package static
59Summary: Static GLib-based library for using D-BUS
071c2493 60Summary(pl.UTF-8): Statyczna biblioteka do używania D-BUS oparta o GLib
1c170856 61Group: Development/Libraries
62Requires: %{name}-devel = %{version}-%{release}
63
64%description static
65Static GLib-based library for using D-BUS.
66
ddd70749
JR
67%description static -l pl.UTF-8
68Statyczna biblioteka do używania D-BUS oparta o GLib.
1c170856 69
2ce682cc
JB
70%package apidocs
71Summary: D-BUS-GLib API documentation
071c2493 72Summary(pl.UTF-8): Dokumentacja API D-BUS-GLib
2ce682cc
JB
73Group: Documentation
74Requires: gtk-doc-common
75
76%description apidocs
77D-BUS-GLib API documentation.
78
ddd70749 79%description apidocs -l pl.UTF-8
2ce682cc
JB
80Dokumentacja API D-BUS-GLib.
81
398aca1a
JB
82%package -n bash-completion-dbus
83Summary: bash-completion for dbus-send
84Summary(pl.UTF-8): Bashowe uzupełnianie poleceń dla dbus-send
85Group: Applications/Shells
86Requires: bash-completion
87
88%description -n bash-completion-dbus
89This package provides bash-completion for dbus-send.
90
91%description -n bash-completion-dbus -l pl.UTF-8
92Ten pakiet dostarcza bashowe uzupełnianie poleceń dla dbus-send.
93
1c170856 94%prep
95%setup -q
090e7484 96%patch0 -p1
bcfa4573 97%patch1 -p1
1c170856 98
398aca1a 99%if %{without apidocs}
b3146ec0
KK
100echo 'EXTRA_DIST=' > gtk-doc.make
101echo 'AC_DEFUN([GTK_DOC_CHECK],[])' >> acinclude.m4
102%endif
103
1c170856 104%build
105%{__libtoolize}
106%{__aclocal}
107%{__autoconf}
108%{__autoheader}
109%{__automake}
110%configure \
b3146ec0
KK
111 %{!?with_apidocs:--disable-gtk-doc} \
112 %{?with_apidocs:--with-html-dir=%{_gtkdocdir}} \
b0b8dd9c 113 %{!?with_static_libs:--disable-static} \
1c170856 114 --with-xml=expat
090e7484 115
0c68a254 116cp %{SOURCE1} tools
117
1c170856 118%{__make}
119
120%install
121rm -rf $RPM_BUILD_ROOT
122
123%{__make} install \
398aca1a
JB
124 DESTDIR=$RPM_BUILD_ROOT \
125 profiledir=/etc/bash_completion.d
126
127mv -f $RPM_BUILD_ROOT/etc/bash_completion.d/{dbus-bash-completion.sh,dbus}
1c170856 128
129%clean
130rm -rf $RPM_BUILD_ROOT
131
132%post -p /sbin/ldconfig
133%postun -p /sbin/ldconfig
134
135%files
136%defattr(644,root,root,755)
6421e4e3
JB
137# AFL not in common-licenses, so COPYING included
138%doc AUTHORS COPYING ChangeLog NEWS README
1c170856 139%attr(755,root,root) %{_libdir}/libdbus-glib-1.so.*.*.*
d4a11bac 140%attr(755,root,root) %ghost %{_libdir}/libdbus-glib-1.so.2
1c170856 141
142%files devel
143%defattr(644,root,root,755)
144%attr(755,root,root) %{_bindir}/dbus-binding-tool
145%attr(755,root,root) %{_libdir}/libdbus-glib-1.so
146%{_libdir}/libdbus-glib-1.la
147%{_includedir}/dbus*/dbus/dbus-glib*.h
148%{_includedir}/dbus*/dbus/dbus-gtype-specialized.h
149%{_pkgconfigdir}/dbus-glib-1.pc
150
b0b8dd9c 151%if %{with static_libs}
1c170856 152%files static
153%defattr(644,root,root,755)
154%{_libdir}/libdbus-glib-1.a
b0b8dd9c 155%endif
2ce682cc 156
b3146ec0 157%if %{with apidocs}
2ce682cc
JB
158%files apidocs
159%defattr(644,root,root,755)
160%{_gtkdocdir}/dbus-glib
b3146ec0 161%endif
398aca1a
JB
162
163%files -n bash-completion-dbus
164%defattr(644,root,root,755)
165/etc/bash_completion.d/dbus
166%attr(755,root,root) %{_libdir}/dbus-bash-completion-helper
This page took 0.081535 seconds and 4 git commands to generate.