summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2011-09-06 13:53:10 -0400
committerStephen Gallagher <sgallagh@redhat.com>2011-09-06 14:28:06 -0400
commit7ad4202cbb7b0fd302a2fb586c431d7dd8375460 (patch)
treec5b07c4a772c8dc898ec7ac3b9fa23d03d3541a9 /contrib
parent9b5c5f041e92802aa074037d283674cb6eca1a23 (diff)
downloadsssd-7ad4202cbb7b0fd302a2fb586c431d7dd8375460.tar.gz
sssd-7ad4202cbb7b0fd302a2fb586c431d7dd8375460.tar.xz
sssd-7ad4202cbb7b0fd302a2fb586c431d7dd8375460.zip
Remove all libtool .la files from RPM
Diffstat (limited to 'contrib')
-rw-r--r--contrib/sssd.spec.in15
1 files changed, 2 insertions, 13 deletions
diff --git a/contrib/sssd.spec.in b/contrib/sssd.spec.in
index 9aa54a154..d212cadc8 100644
--- a/contrib/sssd.spec.in
+++ b/contrib/sssd.spec.in
@@ -94,6 +94,7 @@ BuildRequires: nscd
BuildRequires: gettext-devel
BuildRequires: pkgconfig
BuildRequires: libunistring-devel
+BuildRequires: findutils
%description
Provides a set of daemons to manage access to remote directories and
@@ -207,19 +208,7 @@ mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/rwtab.d
install -m644 src/examples/rwtab $RPM_BUILD_ROOT%{_sysconfdir}/rwtab.d/sssd
# 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/%{ldb_modulesdir}/memberof.la \
- $RPM_BUILD_ROOT/%{_libdir}/sssd/libsss_ldap.la \
- $RPM_BUILD_ROOT/%{_libdir}/sssd/libsss_proxy.la \
- $RPM_BUILD_ROOT/%{_libdir}/sssd/libsss_krb5.la \
- $RPM_BUILD_ROOT/%{_libdir}/sssd/libsss_ipa.la \
- $RPM_BUILD_ROOT/%{_libdir}/sssd/libsss_simple.la \
- $RPM_BUILD_ROOT/%{_libdir}/krb5/plugins/libkrb5/sssd_krb5_locator_plugin.la \
- $RPM_BUILD_ROOT/%{_libdir}/libipa_hbac.la \
- $RPM_BUILD_ROOT/%{python_sitearch}/pysss.la \
- $RPM_BUILD_ROOT/%{python_sitearch}/pyhbac.la
+find $RPM_BUILD_ROOT -name "*.la" -exec rm -f {} \;
# Older versions of rpmbuild can only handle one -f option
# So we need to append to the sssd.lang file