From ab94925bcc1e3079bc3de53532b3ca148bc9f52d Mon Sep 17 00:00:00 2001
From: Stephen Gallagher <sgallagh@redhat.com>
Date: Sat, 11 Apr 2009 10:21:19 -0400
Subject: [PATCH] Update RPM build for configuration changes

---
 Makefile  |    5 +++--
 sssd.spec |   11 ++++++++++-
 2 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index d8eb90a..deddebc 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
 PACKAGE_NAME = sssd
-PACKAGE_VERSION = 0.1.0
+PACKAGE_VERSION = 0.3.0
 TARGET ?= master
-SUBDIRS = server replace sss_client
+SUBDIRS = common server replace sss_client
 TARBALL_PREFIX = $(PACKAGE_NAME)-$(PACKAGE_VERSION)
 TARBALL = $(TARBALL_PREFIX).tar.gz
 LIBDIR ?= /usr/lib
@@ -15,6 +15,7 @@ clean:
 	rm -Rf $(RPMBUILD)
 
 realdistclean: clean
+	-make -C common maintainer-clean
 	-make -C server realdistclean
 
 archive:
diff --git a/sssd.spec b/sssd.spec
index e052966..7442e96 100644
--- a/sssd.spec
+++ b/sssd.spec
@@ -1,5 +1,5 @@
 Name: sssd
-Version: 0.2.1
+Version: 0.3.0
 Release: 1%{dist}
 Group: Applications/System
 Summary: System Security Services Daemon
@@ -47,6 +47,14 @@ services for projects like FreeIPA.
 %setup -q
 
 %build
+# common
+pushd common
+autoreconf -i -f
+%configure --disable-shared \
+           --enable-static
+
+make %{?_smp_mflags}
+popd
 
 # sssd
 pushd server
@@ -96,6 +104,7 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/ldb/memberof.so*
 %{_sharedstatedir}/sss/
 %config(noreplace) %{_sysconfdir}/dbus-1/system.d/org.freedesktop.sssd.infopipe.conf
+%config(noreplace) %{_sysconfdir}/sssd/sssd.conf
 %{_datadir}/%{name}/introspect/infopipe/org.freedesktop.sssd.infopipe.Introspect.xml
 /%{_lib}/libnss_sss.so
 /%{_lib}/libnss_sss.so.2
-- 
1.6.0.6

