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

View File

@ -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

View File

@ -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-<targettype> <= <version>"
provides "libattr-<targettype> = <version>"
libattr-devel
requires -libattr-<targettype>
requires "libattr1-<targettype> = <version>"