diff --git a/attr.changes b/attr.changes index 9920c71..13263bc 100644 --- a/attr.changes +++ b/attr.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Sep 16 18:35:52 UTC 2011 - jengelh@medozas.de + +- Enable libattr-devel for all baselib arches +- Implement shlib package (libattr1) + ------------------------------------------------------------------- Wed May 18 09:32:06 UTC 2011 - coolo@novell.com diff --git a/attr.spec b/attr.spec index 295b7d5..3464a37 100644 --- a/attr.spec +++ b/attr.spec @@ -19,6 +19,7 @@ Name: attr +%define lname libattr1 Group: System/Filesystems AutoReqProv: on Summary: Commands for Manipulating Extended Attributes @@ -39,7 +40,7 @@ objects, in particular getfattr(1) and setfattr(1). An attr(1) command is also provided, which is largely compatible with the SGI IRIX tool of the same name. -%package -n libattr +%package -n %lname License: GPLv2+ ; LGPLv2.1+ Summary: A dynamic library for filesystem extended attribute support AutoReqProv: on @@ -49,8 +50,10 @@ Obsoletes: libattr-64bit %endif # Group: System/Libraries +Obsoletes: libattr < %version-%release +Provides: libattr = %version-%release -%description -n libattr +%description -n %lname This package contains the libattr.so dynamic library, which contains the extended attribute library functions. @@ -66,7 +69,7 @@ Obsoletes: attr-devel Obsoletes: libattr-devel-64bit %endif # -Requires: libattr = %{version} glibc-devel +Requires: %lname = %version, glibc-devel %description -n libattr-devel This package contains the libraries and header files needed to develop @@ -112,12 +115,9 @@ install -m 644 %_sourcedir/xattr.conf $RPM_BUILD_ROOT/%{_sysconfdir} chmod 755 $RPM_BUILD_ROOT/%{_lib}/libattr.so.1* %find_lang %name -%clean -rm -rf $RPM_BUILD_ROOT +%post -n %lname -p /sbin/ldconfig -%post -n libattr -p /sbin/ldconfig - -%postun -n libattr -p /sbin/ldconfig +%postun -n %lname -p /sbin/ldconfig %files -f %{name}.lang %defattr (-,root,root) @@ -153,7 +153,7 @@ rm -rf $RPM_BUILD_ROOT %doc %attr(644,root,root) %{_mandir}/man3/attr_removef.3.gz* %doc %attr(644,root,root) %{_mandir}/man3/attr_setf.3.gz* -%files -n libattr +%files -n %lname %defattr (-,root,root) /%{_lib}/libattr.so.1* %config %{_sysconfdir}/xattr.conf diff --git a/baselibs.conf b/baselibs.conf index eb5e911..da994f3 100644 --- a/baselibs.conf +++ b/baselibs.conf @@ -1,3 +1,7 @@ -libattr -arch ppc package libattr-devel -arch sparcv9 package libattr-devel +# obsoletes added in 2.4.46; change to just "<" in 2.4.47 or up +libattr1 + obsoletes "libattr- <= " + provides "libattr- = " +libattr-devel + requires -libattr- + requires "libattr1- = "