# define used dbus type [p2p, session, system] %define dbus_type p2p # enable debug features such as control environment variables # WARNING! do not use for production builds as it will break security %define debug_build 0 Name: gsignond Summary: GLib based Single Sign-On daemon Version: 0.0.2 Release: 9 Group: System/Daemons License: LGPL Source: %{name}-%{version}.tar.gz %if %{dbus_type} != "p2p" Requires: dbus-1 %endif Requires(post): /sbin/ldconfig Requires(postun): /sbin/ldconfig BuildRequires: pkgconfig(dbus-1) BuildRequires: pkgconfig(glib-2.0) >= 2.30 BuildRequires: pkgconfig(gobject-2.0) BuildRequires: pkgconfig(gio-2.0) BuildRequires: pkgconfig(gio-unix-2.0) BuildRequires: pkgconfig(gmodule-2.0) BuildRequires: pkgconfig(sqlite3) %description %{summary}. %package devel Summary: Development files for %{name} Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel %{summary}. %prep %setup -q -n %{name}-%{version} if [ -f = "gtk-doc.make" ] then rm gtk-doc.make fi touch gtk-doc.make autoreconf -f -i %build %if %{debug_build} == 1 %configure --enable-dbus-type=%{dbus_type} --enable-debug %else %configure --enable-dbus-type=%{dbus_type} %endif make %{?_smp_mflags} %install rm -rf %{buildroot} %make_install %post /sbin/ldconfig chmod u+s %{_bindir}/%{name} %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %doc AUTHORS COPYING.LIB INSTALL NEWS README %{_bindir}/%{name} %{_bindir}/%{name}-plugind %{_libdir}/lib%{name}-*.so.* %{_libdir}/%{name}/extensions/*.so* %{_libdir}/%{name}/plugins/*.so* %if %{dbus_type} != "p2p" %{_datadir}/dbus-1/services/*SingleSignOn*.service %endif %files devel %defattr(-,root,root,-) %{_includedir}/%{name}/*.h %{_libdir}/lib%{name}-*.so %{_libdir}/pkgconfig/%{name}.pc %if %{dbus_type} != "p2p" %{_datadir}/dbus-1/interfaces/*SSO*.xml %endif