Accepting request 182412 from home:jengelh:branches:Base:System

- Implement shlib package naming guidelines

OBS-URL: https://build.opensuse.org/request/show/182412
OBS-URL: https://build.opensuse.org/package/show/Base:System/libnscd?expand=0&rev=12
This commit is contained in:
Dr. Werner Fink 2013-07-07 17:41:33 +00:00 committed by Git OBS Bridge
parent d83c3673a5
commit 5393617291
3 changed files with 34 additions and 18 deletions

View File

@ -1 +1,3 @@
libnscd libnscd1
obsoletes "libnscd-<targettype> < <version>"
provides "libnscd-<targettype> = <version>"

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sat Jul 6 16:51:11 UTC 2013 - jengelh@inai.de
- Implement shlib package naming guidelines
- Remove redundant %clean section
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Feb 7 05:31:45 UTC 2012 - crrodriguez@opensuse.org Tue Feb 7 05:31:45 UTC 2012 - crrodriguez@opensuse.org

View File

@ -1,7 +1,7 @@
# #
# spec file for package libnscd # spec file for package libnscd
# #
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -17,32 +17,44 @@
Name: libnscd Name: libnscd
# bug437293 %define lname libnscd1
%ifarch ppc64
Obsoletes: libnscd-64bit
%endif
#
Version: 2.0.2 Version: 2.0.2
Release: 0 Release: 0
Summary: Library to Allow Applications to Communicate with nscd Summary: Library to Allow Applications to Communicate with nscd
License: LGPL-2.1 License: LGPL-2.1
Group: System/Libraries Group: Development/Libraries/C and C++
Source: libnscd-%{version}.tar.bz2
Source: http://ftp.suse.com/pub/people/kukuk/libnscd/libnscd-%version.tar.bz2
Source2: baselibs.conf Source2: baselibs.conf
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
# bug437293
%ifarch ppc64
Obsoletes: libnscd-64bit
%endif
%description %description
This library provides an interface for applications to NSCD (Name This library provides an interface for applications to NSCD (Name
Service Cache Daemon) and allows those applications, to flush the cache Service Cache Daemon) and allows those applications, to flush the cache
for special services, if they have the necessary permissions. for special services, if they have the necessary permissions.
%package -n %lname
Summary: Library to Allow Applications to Communicate with nscd
License: LGPL-2.1
Group: System/Libraries
# O/P added for 13.1
Obsoletes: libnscd < %version-%release
Provides: libnscd = %version-%release
%description -n %lname
This library provides an interface for applications to NSCD (Name
Service Cache Daemon) and allows those applications, to flush the
cache for special services, if they have the necessary permissions.
%package devel %package devel
Summary: Include Files and Libraries for Development. Summary: Include Files and Libraries for Development
License: LGPL-2.1+ License: LGPL-2.1+
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: libnscd = %{version} Requires: %lname = %version
# bug437293 # bug437293
%ifarch ppc64 %ifarch ppc64
Obsoletes: libnscd-devel-64bit Obsoletes: libnscd-devel-64bit
@ -70,14 +82,10 @@ make install DESTDIR=$RPM_BUILD_ROOT
%{__mkdir_p} %{buildroot}%{_libdir} %{__mkdir_p} %{buildroot}%{_libdir}
rm -fv %{buildroot}%{_libdir}/*.la rm -fv %{buildroot}%{_libdir}/*.la
%clean %post -n %lname -p /sbin/ldconfig
rm -rf $RPM_BUILD_ROOT %postun -n %lname -p /sbin/ldconfig
%post -p /sbin/ldconfig %files -n %lname
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root) %defattr(-,root,root)
%doc COPYING.LIB README NEWS %doc COPYING.LIB README NEWS
%{_libdir}/libnscd.so.* %{_libdir}/libnscd.so.*