diff --git a/anjuta.changes b/anjuta.changes index f9c5bae..178e69c 100644 --- a/anjuta.changes +++ b/anjuta.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Wed Oct 5 13:08:58 UTC 2011 - vuntz@opensuse.org + +- Apply shared library packaging policy (bnc#690233): + + Create libanjuta-3-0 subpackage. + + Change anjuta Requires in devel subpackage to libanjuta-3-0. + + Move calls to /sbin/ldconfig from %post/%postun of main + subpackage to those of the libanjuta-3-0 subpackage. ++ This became more important as gtkpod now uses this library and we + don't want to have gtkpod depend on the whole anjuta application. + ------------------------------------------------------------------- Sun Sep 25 23:07:28 UTC 2011 - vuntz@opensuse.org diff --git a/anjuta.spec b/anjuta.spec index accc4fb..8b32e50 100644 --- a/anjuta.spec +++ b/anjuta.spec @@ -83,6 +83,20 @@ an integrated Valgrind memory profiler, an integrated gprof performance profiler, a class generator, a powerful source editor, source browsing, and more. +%package -n libanjuta-3-0 +License: GPLv2+ +Summary: Libraries for developing Anjuta plugins +Group: System/Libraries + +%description -n libanjuta-3-0 +Anjuta is a versatile Integrated Development Environment (IDE) for the +GNOME desktop. It features a number of advanced programming facilities +includes project management, application wizards, an interactive +debugger, an integrated Glade UI designer, integrated Devhelp API help, +an integrated Valgrind memory profiler, an integrated gprof performance +profiler, a class generator, a powerful source editor, source browsing, +and more. + %package -n glade-catalog-anjuta License: GPLv2+ Summary: Versatile Integrated Development Environment for GNOME -- Catalog for Glade @@ -103,12 +117,11 @@ and more. This package provides a catalog for Glade, to allow the use the Anjuta widgets in Glade. - %package devel License: GPLv2+ -Summary: Versatile Integrated Development Environment for GNOME -- Development Files +Summary: Libraries for developing Anjuta plugins -- Development Files Group: Development/Tools/IDE -Requires: %{name} = %{version} +Requires: libanjuta-3-0 = %{version} Provides: %{name}-doc = %{version} Obsoletes: %{name}-doc < %{version} @@ -150,7 +163,6 @@ find %{buildroot} -type f -name "*.la" -delete -print %fdupes %{buildroot} %post -/sbin/ldconfig %glib2_gsettings_schema_post %desktop_database_post %icon_theme_cache_post @@ -158,13 +170,18 @@ find %{buildroot} -type f -name "*.la" -delete -print %mime_database_post %postun -/sbin/ldconfig %glib2_gsettings_schema_postun %desktop_database_postun %icon_theme_cache_postun %icon_theme_cache_postun gnome %mime_database_postun +%post -n libanjuta-3-0 +/sbin/ldconfig + +%postun -n libanjuta-3-0 +/sbin/ldconfig + %files %defattr(-,root,root) %doc AUTHORS COPYING ChangeLog FUTURE NEWS README doc/ScintillaDoc.html TODO @@ -180,9 +197,6 @@ find %{buildroot} -type f -name "*.la" -delete -print %{_bindir}/anjuta-launcher %{_bindir}/anjuta-tags %{_libdir}/anjuta/ -%{_libdir}/libanjuta-3.so.* -%{_libdir}/girepository-1.0/Anjuta-3.0.typelib -%{_libdir}/girepository-1.0/IAnjuta-3.0.typelib %{_datadir}/anjuta/ %{_datadir}/applications/*.desktop %{_datadir}/mime/packages/*.xml @@ -197,6 +211,12 @@ find %{buildroot} -type f -name "*.la" -delete -print %{_datadir}/icons/hicolor/scalable/apps/*.svg %doc %{_mandir}/man?/*.* +%files -n libanjuta-3-0 +%defattr(-, root, root) +%{_libdir}/libanjuta-3.so.* +%{_libdir}/girepository-1.0/Anjuta-3.0.typelib +%{_libdir}/girepository-1.0/IAnjuta-3.0.typelib + %files -n glade-catalog-anjuta %defattr(-, root, root) %{_libdir}/glade/modules/libgladeanjuta.so @@ -206,8 +226,8 @@ find %{buildroot} -type f -name "*.la" -delete -print %defattr(-, root, root) %doc %{_datadir}/gtk-doc/html/libanjuta/ %{_includedir}/libanjuta-3.0/ -%{_libdir}/*.so -%{_libdir}/pkgconfig/*.pc +%{_libdir}/libanjuta-3.so +%{_libdir}/pkgconfig/libanjuta-3.0.pc %{_datadir}/gir-1.0/*.gir %files lang -f %name.lang