From 82be103fa0ad2d1bfa1174fb320ad857f842bca95a13940b6bc7ba0d9516ed83 Mon Sep 17 00:00:00 2001 From: Ralf Haferkamp Date: Wed, 31 Mar 2010 07:59:04 +0000 Subject: [PATCH] don't package unused libs OBS-URL: https://build.opensuse.org/package/show/network:ldap/sssd?expand=0&rev=12 --- sssd.changes | 5 ++-- sssd.spec | 83 +++++++++------------------------------------------- 2 files changed, 17 insertions(+), 71 deletions(-) diff --git a/sssd.changes b/sssd.changes index 9b4169f..7110fbd 100644 --- a/sssd.changes +++ b/sssd.changes @@ -1,5 +1,5 @@ ------------------------------------------------------------------- -Tue Mar 30 14:28:19 UTC 2010 - rhafer@novell.com +Wed Mar 31 07:57:25 UTC 2010 - rhafer@novell.com - Updated to 1.1.0 * Support for IPv6 @@ -8,7 +8,8 @@ Tue Mar 30 14:28:19 UTC 2010 - rhafer@novell.com * Fix for the long-standing cache cleanup performance issues * libini_config, libcollection, libdhash, libref_array and libpath_utils are now built as shared libraries for general - consumption + consumption (libref_array and libpath_utils are currently not + packaged, as no component in sssd links against them) * Users get feedback from PAM if they authenticated offline * Native local backend now has a utility to show nested memberships (sss_groupshow) diff --git a/sssd.spec b/sssd.spec index bfac3b6..0026435 100644 --- a/sssd.spec +++ b/sssd.spec @@ -121,25 +121,6 @@ License: LGPLv3+ A hash table which will dynamically resize to achieve optimal storage & access time properties -%package -n libpath_utils1 -Summary: Filesystem Path Utilities -Group: Development/Libraries/C and C++ -Version: %{path_utils_version} -License: LGPLv3+ - -%description -n libpath_utils1 -Utility functions to manipulate filesystem pathnames - -%package -n libpath_utils-devel -Summary: Development files for libpath_utils -Group: Development/Libraries/C and C++ -Version: %{path_utils_version} -Requires: libpath_utils1 = %{path_utils_version}-%{release} -License: LGPLv3+ - -%description -n libpath_utils-devel -Utility functions to manipulate filesystem pathnames - %package -n libcollection1 Summary: Collection data-type for C Group: Development/Libraries/C and C++ @@ -182,26 +163,6 @@ License: LGPLv3+ Library to process config files in INI format into a libcollection data structure -%package -n libref_array1 -Summary: A refcounted array for C -Group: Development/Libraries/C and C++ -Version: %{refarray_version} -License: LGPLv3+ - -%description -n libref_array1 -A dynamically-growing, reference-counted array - -%package -n libref_array-devel -Summary: Development files for libref_array -Group: Development/Libraries/C and C++ -Version: %{refarray_version} -Requires: libref_array1 = %{refarray_version}-%{release} -License: LGPLv3+ - -%description -n libref_array-devel -A dynamically-growing, reference-counted array - - %prep %setup -q %patch1 -p1 @@ -251,11 +212,23 @@ rm -f \ rm $RPM_BUILD_ROOT/%{_libdir}/*.a %find_lang sss_daemon +#%find_lang sss_client +#cat sss_client.lang >> sss_daemon.lang install -d $RPM_BUILD_ROOT/%{_docdir}/dhash mv $RPM_BUILD_ROOT/%{_datarootdir}/doc/dhash/* $RPM_BUILD_ROOT/%{_docdir}/dhash -#%find_lang sss_client -#cat sss_client.lang >> sss_daemon.lang + +# remove currently unused libraries +rm -f \ + $RPM_BUILD_ROOT/%{_libdir}/libref_array.* \ + $RPM_BUILD_ROOT/%{_libdir}/pkgconfig/ref_array.pc \ + $RPM_BUILD_ROOT/%{_prefix}/include/ref_array*.h \ + $RPM_BUILD_ROOT/%{_libdir}/libpath_utils.* \ + $RPM_BUILD_ROOT/%{_libdir}/pkgconfig/path_utils.pc \ + $RPM_BUILD_ROOT/%{_prefix}/include/path_utils.h + + + %clean rm -rf $RPM_BUILD_ROOT @@ -278,18 +251,10 @@ rm -rf $RPM_BUILD_ROOT %postun -n libcollection1 -p /sbin/ldconfig -%post -n libref_array1 -p /sbin/ldconfig - -%postun -n libref_array1 -p /sbin/ldconfig - %post -n libini_config1 -p /sbin/ldconfig %postun -n libini_config1 -p /sbin/ldconfig -%post -n libpath_utils1 -p /sbin/ldconfig - -%postun -n libpath_utils1 -p /sbin/ldconfig - %files -f sss_daemon.lang %defattr(-,root,root,-) %doc COPYING @@ -360,16 +325,6 @@ rm -rf $RPM_BUILD_ROOT %{_prefix}/include/dhash.h %doc %{_docdir}/dhash -%files -n libpath_utils1 -%defattr(-,root,root,-) -%{_libdir}/libpath_utils.so.* - -%files -n libpath_utils-devel -%defattr(-,root,root,-) -%{_libdir}/libpath_utils.so -%{_libdir}/pkgconfig/path_utils.pc -%{_prefix}/include/path_utils.h - %files -n libini_config1 %defattr(-,root,root,-) %{_libdir}/libini_config.so.* @@ -390,14 +345,4 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/pkgconfig/collection.pc %{_prefix}/include/collection*.h -%files -n libref_array1 -%defattr(-,root,root,-) -%{_libdir}/libref_array.so.* - -%files -n libref_array-devel -%defattr(-,root,root,-) -%{_libdir}/libref_array.so -%{_libdir}/pkgconfig/ref_array.pc -%{_prefix}/include/ref_array*.h - %changelog