SHA256
1
0
forked from pool/acl

Accepting request 84220 from Base:System

- Fix provides/Obsoletes 

- Implement shlib package (libacl1)
- Enable libacl-devel on all baselib arches

OBS-URL: https://build.opensuse.org/request/show/84220
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/acl?expand=0&rev=24
This commit is contained in:
Sascha Peilicke 2011-09-21 15:35:15 +00:00 committed by Git OBS Bridge
commit 379cdd4573
3 changed files with 30 additions and 14 deletions

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Tue Sep 20 14:17:28 UTC 2011 - crrodriguez@opensuse.org
- Fix provides/Obsoletes
-------------------------------------------------------------------
Fri Sep 16 18:37:51 UTC 2011 - jengelh@medozas.de
- Implement shlib package (libacl1)
- Enable libacl-devel on all baselib arches
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Apr 19 18:05:44 UTC 2011 - bphilips@novell.com Tue Apr 19 18:05:44 UTC 2011 - bphilips@novell.com

View File

@ -19,6 +19,7 @@
Name: acl Name: acl
%define lname libacl1
BuildRequires: libattr-devel BuildRequires: libattr-devel
Group: System/Filesystems Group: System/Filesystems
AutoReqProv: on AutoReqProv: on
@ -42,7 +43,7 @@ Authors:
Andreas Gruenbacher <a.gruenbacher@computer.org> Andreas Gruenbacher <a.gruenbacher@computer.org>
SGI SGI
%package -n libacl %package -n %lname
License: GPLv2+ ; LGPLv2.1+ License: GPLv2+ ; LGPLv2.1+
Summary: A dynamic library for accessing POSIX Access Control Lists Summary: A dynamic library for accessing POSIX Access Control Lists
Group: System/Libraries Group: System/Libraries
@ -51,8 +52,10 @@ Group: System/Libraries
Obsoletes: libacl-64bit Obsoletes: libacl-64bit
%endif %endif
# #
Provides: libacl = %version-%release
Obsoletes: libacl < %version-%release
%description -n libacl %description -n %lname
This package contains the libacl.so dynamic library which contains the This package contains the libacl.so dynamic library which contains the
POSIX 1003.1e draft standard 17 functions for manipulating access POSIX 1003.1e draft standard 17 functions for manipulating access
control lists. control lists.
@ -67,11 +70,11 @@ License: GPLv2+ ; LGPLv2.1+
Summary: Include Files and Libraries mandatory for Development Summary: Include Files and Libraries mandatory for Development
AutoReqProv: on AutoReqProv: on
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: libacl = %{version} glibc-devel Requires: %lname = %version, glibc-devel
# the .so file references libattr.so.x, so require libattr-devel # the .so file references libattr.so.x, so require libattr-devel
Requires: libattr-devel Requires: libattr-devel
Provides: acl-devel Provides: acl-devel = %{version}
Obsoletes: acl-devel Obsoletes: acl-devel < %{version}
# bug437293 # bug437293
%ifarch ppc64 %ifarch ppc64
Obsoletes: libacl-devel-64bit Obsoletes: libacl-devel-64bit
@ -121,12 +124,9 @@ export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV DIST_INSTALL_LIB
%{__rm} -v %{buildroot}/%{_lib}/lib%{name}.{la,so} %{__rm} -v %{buildroot}/%{_lib}/lib%{name}.{la,so}
%find_lang %name %find_lang %name
%clean %post -n %lname -p /sbin/ldconfig
rm -rf $RPM_BUILD_ROOT
%post -n libacl -p /sbin/ldconfig %postun -n %lname -p /sbin/ldconfig
%postun -n libacl -p /sbin/ldconfig
%files -f %name.lang %files -f %name.lang
%defattr(-,root,root) %defattr(-,root,root)
@ -190,7 +190,7 @@ rm -rf $RPM_BUILD_ROOT
%doc %attr(644,root,root) %{_mandir}/man3/acl_valid.3.gz %doc %attr(644,root,root) %{_mandir}/man3/acl_valid.3.gz
%doc %attr(644,root,root) %{_mandir}/man3/acl_extended_file_nofollow.3.gz %doc %attr(644,root,root) %{_mandir}/man3/acl_extended_file_nofollow.3.gz
%files -n libacl %files -n %lname
%defattr(755,root,root,755) %defattr(755,root,root,755)
/%{_lib}/libacl.so.1* /%{_lib}/libacl.so.1*

View File

@ -1,3 +1,8 @@
libacl # added in 2.2.51; change to just "<" with 2.2.52 or up.
arch ppc package libacl-devel libacl1
arch sparcv9 package libacl-devel obsoletes "libacl-<targettype> <= <version>"
provides "libacl-<targettype> = <version>"
libacl-devel
requires -libacl-<targettype>
requires "libacl1-<targettype> = <version>"