SHA256
1
0
forked from pool/attr

Accepting request 84221 from Base:System

- Enable libattr-devel for all baselib arches
- Implement shlib package (libattr1)

OBS-URL: https://build.opensuse.org/request/show/84221
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/attr?expand=0&rev=24
This commit is contained in:
Sascha Peilicke 2011-09-21 15:35:29 +00:00 committed by Git OBS Bridge
commit b28918bac5
3 changed files with 22 additions and 12 deletions

View File

@ -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 Wed May 18 09:32:06 UTC 2011 - coolo@novell.com

View File

@ -19,6 +19,7 @@
Name: attr Name: attr
%define lname libattr1
Group: System/Filesystems Group: System/Filesystems
AutoReqProv: on AutoReqProv: on
Summary: Commands for Manipulating Extended Attributes 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 is also provided, which is largely compatible with the SGI IRIX tool of
the same name. the same name.
%package -n libattr %package -n %lname
License: GPLv2+ ; LGPLv2.1+ License: GPLv2+ ; LGPLv2.1+
Summary: A dynamic library for filesystem extended attribute support Summary: A dynamic library for filesystem extended attribute support
AutoReqProv: on AutoReqProv: on
@ -49,8 +50,10 @@ Obsoletes: libattr-64bit
%endif %endif
# #
Group: System/Libraries 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 This package contains the libattr.so dynamic library, which contains
the extended attribute library functions. the extended attribute library functions.
@ -66,7 +69,7 @@ Obsoletes: attr-devel
Obsoletes: libattr-devel-64bit Obsoletes: libattr-devel-64bit
%endif %endif
# #
Requires: libattr = %{version} glibc-devel Requires: %lname = %version, glibc-devel
%description -n libattr-devel %description -n libattr-devel
This package contains the libraries and header files needed to develop 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* chmod 755 $RPM_BUILD_ROOT/%{_lib}/libattr.so.1*
%find_lang %name %find_lang %name
%clean %post -n %lname -p /sbin/ldconfig
rm -rf $RPM_BUILD_ROOT
%post -n libattr -p /sbin/ldconfig %postun -n %lname -p /sbin/ldconfig
%postun -n libattr -p /sbin/ldconfig
%files -f %{name}.lang %files -f %{name}.lang
%defattr (-,root,root) %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_removef.3.gz*
%doc %attr(644,root,root) %{_mandir}/man3/attr_setf.3.gz* %doc %attr(644,root,root) %{_mandir}/man3/attr_setf.3.gz*
%files -n libattr %files -n %lname
%defattr (-,root,root) %defattr (-,root,root)
/%{_lib}/libattr.so.1* /%{_lib}/libattr.so.1*
%config %{_sysconfdir}/xattr.conf %config %{_sysconfdir}/xattr.conf

View File

@ -1,3 +1,7 @@
libattr # obsoletes added in 2.4.46; change to just "<" in 2.4.47 or up
arch ppc package libattr-devel libattr1
arch sparcv9 package libattr-devel obsoletes "libattr-<targettype> <= <version>"
provides "libattr-<targettype> = <version>"
libattr-devel
requires -libattr-<targettype>
requires "libattr1-<targettype> = <version>"