From 5c56429d2e929c72c0ee9e26ce95146efe09c4a8ffc235e565d83ad434af56a5 Mon Sep 17 00:00:00 2001 From: OBS User buildservice-autocommit Date: Thu, 16 Jun 2011 07:04:00 +0000 Subject: [PATCH 1/2] Updating link to change in openSUSE:Factory/attr revision 23.0 OBS-URL: https://build.opensuse.org/package/show/Base:System/attr?expand=0&rev=09c716ea3b544a9804f738635b264249 --- attr.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/attr.spec b/attr.spec index aa7eb33..295b7d5 100644 --- a/attr.spec +++ b/attr.spec @@ -1,7 +1,7 @@ # -# spec file for package attr (Version 2.4.45) +# spec file for package attr # -# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed From e93aea2016334a9f97d6b0d3f3d8df351e81caf52490ac7d613ce2001de30bac Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Wed, 21 Sep 2011 14:57:47 +0000 Subject: [PATCH 2/2] Accepting request 83998 from home:jengelh:bl Resubmit of #83921 after convicing Greg :) - Enable libattr-devel for all baselib arches - Implement shlib package (libattr1) OBS-URL: https://build.opensuse.org/request/show/83998 OBS-URL: https://build.opensuse.org/package/show/Base:System/attr?expand=0&rev=18 --- attr.changes | 6 ++++++ attr.spec | 18 +++++++++--------- baselibs.conf | 10 +++++++--- 3 files changed, 22 insertions(+), 12 deletions(-) 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- = "