1 # define used dbus type [p2p, session, system]
2 %define dbus_type system
3 # enable debug features such as control environment variables
4 # WARNING! do not use for production builds as it will break security
9 Summary: User management daemon and client library
12 Group: System/Libraries
14 Source: %{name}-%{version}.tar.gz
15 URL: https://github.com/01org/gumd
16 %if %{dbus_type} != "p2p"
19 Requires(post): /sbin/ldconfig
20 Requires(postun): /sbin/ldconfig
21 BuildRequires: pkgconfig(systemd)
22 BuildRequires: pkgconfig(dbus-1)
23 BuildRequires: pkgconfig(gtk-doc)
24 BuildRequires: pkgconfig(glib-2.0) >= 2.30
25 BuildRequires: pkgconfig(gobject-2.0)
26 BuildRequires: pkgconfig(gio-2.0)
27 BuildRequires: pkgconfig(gio-unix-2.0)
28 BuildRequires: pkgconfig(gmodule-2.0)
35 %package -n libgum-common
36 Summary: User management common library
37 Group: System/Libraries
40 %description -n libgum-common
44 %package -n libgum-common-devel
45 Summary: Development files for user management common library
46 Group: Development/Libraries
47 Requires: libgum-common = %{version}-%{release}
50 %description -n libgum-common-devel
55 Summary: User management daemon
57 Requires: libgum-common = %{version}-%{release}
64 %package -n %{name}-devel
65 Summary: Development files for user management daemon
66 Group: Development/Daemons
67 Requires: %{name} = %{version}-%{release}
68 Requires: libgum-common-devel = %{version}-%{release}
70 %description -n %{name}-devel
75 Summary: User management client library
76 Group: System/Libraries
77 Requires: libgum-common = %{version}-%{release}
80 %description -n libgum
84 %package -n libgum-devel
85 Summary: Development files for user management client library
86 Group: Development/Libraries
87 Requires: libgum = %{version}-%{release}
88 Requires: libgum-common-devel = %{version}-%{release}
91 %description -n libgum-devel
96 Summary: Documentation files for %{name}
97 Group: Development/Libraries
98 Requires: libgum = %{version}-%{release}
106 %setup -q -n %{name}-%{version}
110 %if %{debug_build} == 1
111 %configure --enable-dbus-type=%{dbus_type} --enable-debug
113 %configure --enable-dbus-type=%{dbus_type}
127 chmod u+s %{_bindir}/%{name}
131 %postun -p /sbin/ldconfig
134 %files -n libgum-common
135 %defattr(-,root,root,-)
136 %{_libdir}/libgum-common*.so.*
139 %files -n libgum-common-devel
140 %defattr(-,root,root,-)
141 %{_includedir}/gum/common/*
142 %{_libdir}/libgum-common*.so
143 %{_libdir}/libgum-common*.la
144 %{_libdir}/pkgconfig/libgum-common.pc
145 %config(noreplace) %{_sysconfdir}/gum.conf
146 %if %{dbus_type} != "p2p"
147 %{_datadir}/dbus-1/interfaces/*UserManagement*.xml
152 %defattr(-,root,root,-)
153 %doc AUTHORS COPYING.LIB INSTALL NEWS README
155 %if %{dbus_type} == "session"
156 %dir %{_datadir}/dbus-1/services
157 %{_datadir}/dbus-1/services/*UserManagement*.service
158 %else if %{dbus_type} == "system"
159 %dir %{_datadir}/dbus-1/system-services
160 %{_datadir}/dbus-1/system-services/*UserManagement*.service
161 %dir %{_sysconfdir}/dbus-1
162 %dir %{_sysconfdir}/dbus-1/system.d
163 %config(noreplace) %{_sysconfdir}/dbus-1/system.d/gumd-dbus.conf
167 %files -n %{name}-devel
168 %defattr(-,root,root,-)
169 %{_libdir}/pkgconfig/%{name}.pc
173 %defattr(-,root,root,-)
174 %{_libdir}/libgum.so.*
177 %files -n libgum-devel
178 %defattr(-,root,root,-)
179 %{_includedir}/gum/*.h
182 %{_libdir}/pkgconfig/libgum.pc
183 %{_bindir}/gum-example
187 %defattr(-,root,root,-)
188 %{_datadir}/gtk-doc/html/gumd/*
192 * Mon Dec 23 2013 Imran Zaman <imran.zaman@intel.com>
193 - added test cases for error and dictionary objects
194 - utilized dictionary functions for get/set key-value pairs
195 - clean up generated coverage files on make clean
196 - enable tests by default if coverage is enabled
197 - exclude external and generated dbus files from code coverage calculation
199 * Fri Dec 20 2013 Imran Zaman <imran.zaman@intel.com>
200 - Corrected spec and changes file names
202 * Fri Dec 20 2013 Imran Zaman <imran.zaman@intel.com>
203 - Removed dist spec packaging folder from main source tree
205 * Fri Dec 20 2013 Imran Zaman <imran.zaman@intel.com>
206 - Release 0.0.1 (First release)
208 * Mon Sep 02 2013 Imran Zaman <imran.zaman@intel.com>
209 - Initial RPM packaging