/[packages]/updates/1/dbus-glib/current/SPECS/dbus-glib.spec
ViewVC logotype

Contents of /updates/1/dbus-glib/current/SPECS/dbus-glib.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8498 - (show annotations) (download)
Thu Jan 13 05:26:32 2011 UTC (13 years, 3 months ago) by ahmad
Original Path: cauldron/dbus-glib/current/SPECS/dbus-glib.spec
File size: 2810 byte(s)
imported package dbus-glib
1 %if %mandriva_branch == Cooker
2 # Cooker
3 %define release %mkrel 1
4 %else
5 # Old distros
6 %define subrel 2
7 %define release %mkrel 1
8 %endif
9 %define glib2_version 2.6.0
10 %define dbus_version 0.94
11
12 %define lib_major 2
13 %define lib_api 1
14 %define lib_name %mklibname dbus-glib- %{lib_api} %{lib_major}
15
16 %define git_url git://git.freedesktop.org/git/dbus/dbus-glib
17
18
19 Summary: D-Bus message bus
20 Name: dbus-glib
21 Version: 0.88
22 Release: %release
23 URL: http://www.freedesktop.org/Software/dbus
24 Source0: http://dbus.freedesktop.org/releases/%name/%{name}-%{version}.tar.gz
25 License: AFL and GPLv2
26 Group: System/Libraries
27 BuildRoot: %{_tmppath}/%{name}-%{version}-root
28 BuildRequires: glib2-devel >= %{glib2_version}
29 BuildRequires: dbus-devel >= %{dbus_version}
30 BuildRequires: libxml2-devel
31 BuildRequires: libexpat-devel
32 # needed by patch0
33 BuildRequires: gtk-doc
34
35 %description
36 D-Bus add-on library to integrate the standard D-Bus library with
37 the GLib thread abstraction and main loop.
38
39 %package -n %{lib_name}
40 Summary: GLib-based library for using D-Bus
41 Group: System/Libraries
42 Provides: dbus-glib = %{version}-%{release}
43 # keep this provides to be able Mdv 2007.0 using urpmi
44 Provides: libdbus-glib = %{version}-%{release}
45
46 %description -n %{lib_name}
47 D-Bus add-on library to integrate the standard D-Bus library with
48 the GLib thread abstraction and main loop.
49
50 %package -n %{lib_name}-devel
51 Summary: Libraries and headers for D-Bus
52 Group: Development/C
53 Requires: %{lib_name} = %{version}
54 Provides: lib%{name}-1-devel = %{version}-%{release}
55 Provides: lib%{name}-devel = %{version}-%{release}
56 Provides: %{name}-devel = %{version}-%{release}
57
58 %description -n %{lib_name}-devel
59 Headers and static libraries for D-Bus.
60
61
62 %prep
63 %setup -q
64
65 %build
66
67 %configure2_5x \
68 --disable-tests \
69 --disable-verbose-mode \
70 --disable-asserts
71
72 %make
73
74 %check
75 make check
76
77 %install
78 rm -rf %{buildroot}
79
80 %makeinstall_std
81
82 #remove unpackaged file
83 rm -f %{buildroot}%{_libdir}/*.la
84
85 %clean
86 rm -rf %{buildroot}
87
88 %if %mdkversion < 200900
89 %post -n %{lib_name} -p /sbin/ldconfig
90 %endif
91 %if %mdkversion < 200900
92 %postun -n %{lib_name} -p /sbin/ldconfig
93 %endif
94
95 %files -n %{lib_name}
96 %defattr(-,root,root)
97 %{_libdir}/*glib*.so.%{lib_major}*
98
99 %files -n %{lib_name}-devel
100 %defattr(-,root,root)
101 %{_bindir}/dbus-binding-tool
102 %{_sysconfdir}/bash_completion.d/dbus-bash-completion.sh
103 %{_libdir}/dbus-bash-completion-helper
104 %{_libdir}/libdbus-glib-%{lib_api}.a
105 %{_libdir}/libdbus-glib-%{lib_api}.so
106 %{_libdir}/pkgconfig/dbus-glib-%{lib_api}.pc
107 %{_includedir}/dbus-1.0/dbus/dbus-glib-bindings.h
108 %{_includedir}/dbus-1.0/dbus/dbus-gtype-specialized.h
109 %{_includedir}/dbus-1.0/dbus/dbus-glib-error-enum.h
110 %{_includedir}/dbus-1.0/dbus/dbus-glib-lowlevel.h
111 %{_includedir}/dbus-1.0/dbus/dbus-glib.h
112 %{_datadir}/gtk-doc/html/dbus-glib/
113 %{_mandir}/man1/*
114
115

  ViewVC Help
Powered by ViewVC 1.1.30