1 # define used dbus type [p2p, session, system]
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
11 Group: Security/Accounts
13 Source: %{name}-%{version}.tar.gz
14 URL: https://01.org/gsso
15 Source1001: %{name}.manifest
17 %if %{dbus_type} != "p2p"
20 Requires(post): /sbin/ldconfig
21 Requires(postun): /sbin/ldconfig
22 BuildRequires: pkgconfig(dbus-1)
23 BuildRequires: pkgconfig(glib-2.0) >= 2.30
24 BuildRequires: pkgconfig(gobject-2.0)
25 BuildRequires: pkgconfig(gio-2.0)
26 BuildRequires: pkgconfig(gio-unix-2.0)
27 BuildRequires: pkgconfig(gmodule-2.0)
28 BuildRequires: pkgconfig(sqlite3)
36 Summary: Development files for %{name}
37 Group: Development/Libraries
38 Requires: %{name} = %{version}-%{release}
45 Summary: Documentation files for %{name}
46 Group: Development/Libraries
47 Requires: %{name} = %{version}-%{release}
54 %setup -q -n %{name}-%{version}
58 %if %{debug_build} == 1
59 %configure --enable-dbus-type=%{dbus_type} --enable-debug
61 %configure --enable-dbus-type=%{dbus_type}
70 cp -a %{SOURCE1001} %{buildroot}%{_datadir}/%{name}.manifest
75 chmod u+s %{_bindir}/%{name}
76 getent group gsignond > /dev/null || /usr/sbin/groupadd -r gsignond
79 %postun -p /sbin/ldconfig
83 %defattr(-,root,root,-)
84 %manifest %{_datadir}/%{name}.manifest
85 %doc AUTHORS COPYING.LIB INSTALL NEWS README
87 %{_libdir}/lib%{name}-*.so.*
88 %{_libdir}/%{name}/extensions/*.so*
89 %{_libdir}/%{name}/gplugins/*.so*
90 %{_libdir}/%{name}/pluginloaders/%{name}-plugind
91 %if %{dbus_type} != "p2p"
92 %{_datadir}/dbus-1/services/*SingleSignOn*.service
94 %config(noreplace) %{_sysconfdir}/gsignond.conf
98 %defattr(-,root,root,-)
99 %{_includedir}/%{name}/*.h
100 %{_libdir}/lib%{name}-*.so
101 %{_libdir}/pkgconfig/%{name}.pc
102 %if %{dbus_type} != "p2p"
103 %{_datadir}/dbus-1/interfaces/*SSO*.xml
108 %defattr(-,root,root,-)
109 %{_datadir}/gtk-doc/html/gsignond/*