Accepting request 83777 from home:jengelh:bl

Resubmit of 82561 after adding provides/obsoletes.
- Implement shlib package (libacl1)
- Enable libacl-devel on all baselib arches

OBS-URL: https://build.opensuse.org/request/show/83777
OBS-URL: https://build.opensuse.org/package/show/Base:System/acl?expand=0&rev=18
This commit is contained in:
Stephan Kulow 2011-09-20 12:45:58 +00:00 committed by Git OBS Bridge
parent f7b00b4143
commit ecf50d4a23
3 changed files with 23 additions and 12 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
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,7 +70,7 @@ 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
@ -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>"