]> git.pld-linux.org Git - packages/eggdbus.git/blob - eggdbus.spec
- run gtkdocize
[packages/eggdbus.git] / eggdbus.spec
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:        1
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
35 Summary(pl.UTF-8):      Pliki programistyczne dla 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.
42
43 %description devel -l pl.UTF-8
44 Pliki programistyczne dla 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
64 %description apidocs
65 EggDBus API documentation.
66
67 %description apidocs -l pl.UTF-8
68 Dokumentacja API EggDBus.
69
70 %prep
71 %setup -q
72
73 %build
74 %{?with_apidocs:%{__gtkdocize}}
75 %{__libtoolize}
76 %{__aclocal}
77 %{__autoconf}
78 %{__autoheader}
79 %{__automake}
80 %configure \
81         --%{!?with_apidocs:dis}%{?with_apidocs:en}able-gtk-doc \
82         --with-html-dir=%{_gtkdocdir}
83
84 %{__make} -j1
85
86 %install
87 rm -rf $RPM_BUILD_ROOT
88
89 %{__make} install \
90         DESTDIR=$RPM_BUILD_ROOT
91
92 rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}/tests
93
94 %clean
95 rm -rf $RPM_BUILD_ROOT
96
97 %post   -p /sbin/ldconfig
98 %postun -p /sbin/ldconfig
99
100 %files
101 %defattr(644,root,root,755)
102 %doc AUTHORS
103 %attr(755,root,root) %{_libdir}/libeggdbus-1.so.*.*
104 %attr(755,root,root) %ghost %{_libdir}/libeggdbus-1.so.0
105
106 %files devel
107 %defattr(644,root,root,755)
108 %attr(755,root,root) %{_bindir}/*
109 %attr(755,root,root) %{_libdir}/libeggdbus-1.so
110 %{_libdir}/libeggdbus-1.la
111 %{_pkgconfigdir}/eggdbus-1.pc
112 %{_includedir}/eggdbus-1
113 %{_mandir}/man1/*.1*
114
115 %files static
116 %defattr(644,root,root,755)
117 %{_libdir}/libeggdbus-1.a
118
119 %if %{with apidocs}
120 %files apidocs
121 %defattr(644,root,root,755)
122 %{_gtkdocdir}/eggdbus
123 %endif
This page took 0.092572 seconds and 3 git commands to generate.