1 # define used dbus type [p2p, session, system]
2 %define dbus_type session
3 # enable debug features such as control environment variables
4 # WARNING! do not use for production builds as it will break security
8 Summary: GLib based Single Sign-On daemon
13 Source: %{name}-%{version}.tar.gz
15 Requires(post): /sbin/ldconfig
16 Requires(postun): /sbin/ldconfig
17 BuildRequires: pkgconfig(dbus-1)
18 BuildRequires: pkgconfig(glib-2.0) >= 2.30
19 BuildRequires: pkgconfig(gobject-2.0)
20 BuildRequires: pkgconfig(gio-2.0)
21 BuildRequires: pkgconfig(gio-unix-2.0)
22 BuildRequires: pkgconfig(gmodule-2.0)
23 BuildRequires: pkgconfig(sqlite3)
31 Summary: Development files for %{name}
32 Group: Development/Libraries
33 Requires: %{name} = %{version}-%{release}
40 %setup -q -n %{name}-%{version}
41 if [ -f = "gtk-doc.make" ]
50 %if %{debug_build} == 1
51 %configure --enable-dbus-type=%{dbus_type} --enable-debug
53 %configure --enable-dbus-type=%{dbus_type}
66 chmod u+s %{_bindir}/%{name}
69 %postun -p /sbin/ldconfig
73 %defattr(-,root,root,-)
74 %doc AUTHORS COPYING.LIB INSTALL NEWS README
76 %{_bindir}/%{name}-plugind
77 %{_libdir}/lib%{name}-*.so.*
78 %{_libdir}/%{name}/extensions/*.so*
79 %{_libdir}/%{name}/plugins/*.so*
80 %if %{dbus_type} != "p2p"
81 %{_datadir}/dbus-1/services/*SingleSignOn*.service
86 %defattr(-,root,root,-)
87 %{_includedir}/%{name}/*.h
88 %{_libdir}/lib%{name}-*.so
89 %{_libdir}/pkgconfig/%{name}.pc
90 %if %{dbus_type} != "p2p"
91 %{_datadir}/dbus-1/interfaces/*SSO*.xml