From 9177cfff5f6783bd6951a3c3f082c9131d8bf1e61742cd11cccf180c37ec48bd Mon Sep 17 00:00:00 2001 From: Fuminobu Takeyama Date: Sun, 20 Jul 2014 02:20:12 +0000 Subject: [PATCH] Accepting request 241626 from home:jengelh:branches:M17N - Utilize shared library package naming guidelines OBS-URL: https://build.opensuse.org/request/show/241626 OBS-URL: https://build.opensuse.org/package/show/M17N/fribidi?expand=0&rev=11 --- baselibs.conf | 2 +- fribidi.changes | 7 +++++++ fribidi.spec | 31 ++++++++++++++++++++----------- 3 files changed, 28 insertions(+), 12 deletions(-) diff --git a/baselibs.conf b/baselibs.conf index 7991ad6..11ca852 100644 --- a/baselibs.conf +++ b/baselibs.conf @@ -1 +1 @@ -fribidi +libfribidi0 diff --git a/fribidi.changes b/fribidi.changes index 6a6f001..14c86d4 100644 --- a/fribidi.changes +++ b/fribidi.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Sat Jul 19 21:30:39 UTC 2014 - jengelh@inai.de + +- Utilize shared library package naming guidelines +- Drop Requires:pkg-config for fribidi-devel, it is implicit + (due to .pc file being picked up by rpm find-requires) + ------------------------------------------------------------------- Tue Mar 26 14:16:49 UTC 2013 - mmeister@suse.com diff --git a/fribidi.spec b/fribidi.spec index 935a925..c9e846e 100644 --- a/fribidi.spec +++ b/fribidi.spec @@ -1,7 +1,7 @@ # # spec file for package fribidi # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,11 +17,12 @@ Name: fribidi +%define lname libfribidi0 Version: 0.19.2 Release: 0 -Summary: Free Implementation of BiDi Algorithm +Summary: Free Implementation of Unicode BiDi Algorithm License: LGPL-2.1 -Group: System/Libraries +Group: Development/Libraries/C and C++ Url: http://fribidi.org/ # bug437293 %ifarch ppc64 @@ -35,7 +36,15 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: pkg-config %description -This library implements the algorithm as described in the "Unicode +This library implements the algorithm as described in "Unicode +Standard Annex #9, the Bidirectional Algorithm". + +%package -n %lname +Summary: Free Implementation of the Unicode BiDi Algorithm +Group: System/Libraries + +%description -n %lname +This library implements the algorithm as described in "Unicode Standard Annex #9, the Bidirectional Algorithm, http://www.unicode.org/unicode/reports/tr9/". FriBidi is exhaustively tested against the Bidi Reference Code and, to the best of the @@ -49,7 +58,6 @@ adding BiDi support to Mozilla. Summary: Development Files for FriBiDi Group: Development/Libraries/C and C++ Requires: %{name} = %{version} -Requires: pkg-config %description devel This package provides headers and manual files for FriBiDi. @@ -71,20 +79,21 @@ This package provides headers and manual files for FriBiDi. %clean %__rm -rf %buildroot -%post -p /sbin/ldconfig - -%postun -p /sbin/ldconfig +%post -n %lname -p /sbin/ldconfig +%postun -n %lname -p /sbin/ldconfig %files %defattr(-,root,root) %{_bindir}/fribidi -%{_libdir}/libfribidi.so.* %doc AUTHORS COPYING ChangeLog INSTALL NEWS README THANKS TODO +%files -n %lname +%defattr(-,root,root) +%{_libdir}/libfribidi.so.0* + %files devel %defattr(-, root, root) -%dir %{_includedir}/fribidi -%{_includedir}/fribidi/* +%{_includedir}/fribidi/ %{_libdir}/libfribidi.so %{_libdir}/pkgconfig/fribidi.pc %doc %{_mandir}/man3/fribidi_*