summaryrefslogtreecommitdiffstats
path: root/sssd.spec.in
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2009-05-21 09:03:01 -0400
committerSimo Sorce <ssorce@redhat.com>2009-05-26 09:10:45 -0400
commit419d4579bcb84a3b10d8b5048df2087a3f55544f (patch)
treee36310049957f423bc9afa0d9ec7a1f056ac3274 /sssd.spec.in
parent23cb08ee2f1e3b597742281e475350039247d9d8 (diff)
downloadsssd-419d4579bcb84a3b10d8b5048df2087a3f55544f.tar.gz
sssd-419d4579bcb84a3b10d8b5048df2087a3f55544f.tar.xz
sssd-419d4579bcb84a3b10d8b5048df2087a3f55544f.zip
Clean up automake build to work on older versions of libtool
LT_INIT is supported only on Libtool >= 2.0, so I reverted it to using AC_PROG_LIBTOOL. Also reorganized how the common libraries were being built. Now they are treated as libtool convenience libraries instead of installable libraries (the --with-singlelib configure flag can still be used to generate a combined, installable DSO) I cleaned up the set of files being installed by automake, so the list of things we need to remove before packaging the RPM is now only the .la files associated with our own plugins.
Diffstat (limited to 'sssd.spec.in')
-rw-r--r--sssd.spec.in42
1 files changed, 15 insertions, 27 deletions
diff --git a/sssd.spec.in b/sssd.spec.in
index 94981b828..6945b1e33 100644
--- a/sssd.spec.in
+++ b/sssd.spec.in
@@ -1,6 +1,6 @@
Name: @PACKAGE_NAME@
Version: @PACKAGE_VERSION@
-Release: 0%{?dist}
+Release: 1%{?dist}
Group: Applications/System
Summary: System Security Services Daemon
# The entire source code is GPLv3+ except replace/ which is LGPLv3+
@@ -63,42 +63,30 @@ services for projects like FreeIPA.
make %{?_smp_mflags}
+# Remove .la files created by libtool
+rm -f \
+ $RPM_BUILD_ROOT/%{_lib}/libnss_sss.la \
+ $RPM_BUILD_ROOT/%{_lib}/security/pam_sss.la \
+ $RPM_BUILD_ROOT/%{_libdir}/ldb/memberof.la \
+ $RPM_BUILD_ROOT/%{_libdir}/sssd/libsss_ldap.la \
+ $RPM_BUILD_ROOT/%{_libdir}/sssd/libsss_proxy.la
+
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
-# Delete files that we do not want to package for now
-# Eventually some of these will be added to a -devel package
+# Copy default sssd.conf file
+mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/sssd
+install -m600 server/examples/sssd.conf $RPM_BUILD_ROOT%{_sysconfdir}/sssd/sssd.conf
+
+# Remove .la files created by libtool
rm -f \
$RPM_BUILD_ROOT/%{_lib}/libnss_sss.la \
$RPM_BUILD_ROOT/%{_lib}/security/pam_sss.la \
- $RPM_BUILD_ROOT/%{_includedir}/collection.h \
- $RPM_BUILD_ROOT/%{_includedir}/collection_tools.h \
- $RPM_BUILD_ROOT/%{_includedir}/dhash.h \
- $RPM_BUILD_ROOT/%{_includedir}/ini_config.h \
- $RPM_BUILD_ROOT/%{_includedir}/trace.h \
- $RPM_BUILD_ROOT/%{_libdir}/ldb/memberof.a \
$RPM_BUILD_ROOT/%{_libdir}/ldb/memberof.la \
- $RPM_BUILD_ROOT/%{_libdir}/libcollection.a \
- $RPM_BUILD_ROOT/%{_libdir}/libcollection.la \
- $RPM_BUILD_ROOT/%{_libdir}/libdhash.a \
- $RPM_BUILD_ROOT/%{_libdir}/libdhash.la \
- $RPM_BUILD_ROOT/%{_libdir}/libini_config.a \
- $RPM_BUILD_ROOT/%{_libdir}/libini_config.la \
- $RPM_BUILD_ROOT/%{_libdir}/pkgconfig/collection.pc \
- $RPM_BUILD_ROOT/%{_libdir}/pkgconfig/dhash.pc \
- $RPM_BUILD_ROOT/%{_libdir}/pkgconfig/ini_config.pc \
- $RPM_BUILD_ROOT/%{_libdir}/sssd/libsss_ldap.a \
$RPM_BUILD_ROOT/%{_libdir}/sssd/libsss_ldap.la \
- $RPM_BUILD_ROOT/%{_libdir}/sssd/libsss_proxy.a \
- $RPM_BUILD_ROOT/%{_libdir}/sssd/libsss_proxy.la \
- $RPM_BUILD_ROOT/%{_docdir}/dhash/examples/dhash_example.c \
- $RPM_BUILD_ROOT/%{_docdir}/dhash/examples/dhash_test.c
-
-# Copy default sssd.conf file
-mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/sssd
-install -m600 server/examples/sssd.conf $RPM_BUILD_ROOT%{_sysconfdir}/sssd/sssd.conf
+ $RPM_BUILD_ROOT/%{_libdir}/sssd/libsss_proxy.la
%clean
rm -rf $RPM_BUILD_ROOT