Accepting request 61148 from home:vuntz:branches:GNOME:Factory

Forwarding to openSUSE:Factory

OBS-URL: https://build.opensuse.org/request/show/61148
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/anjuta?expand=0&rev=77
This commit is contained in:
Vincent Untz 2011-02-14 11:24:44 +00:00 committed by Git OBS Bridge
parent 110dfe9528
commit 66fdb37cf3
2 changed files with 49 additions and 32 deletions

View File

@ -1,3 +1,20 @@
-------------------------------------------------------------------
Sun Feb 13 12:10:19 CET 2011 - vuntz@opensuse.org
- Call relevant macros in %post/%postun:
+ %desktop_database_post/postun because the package ships at
least one desktop file.
+ %icon_theme_cache_post/postun because the package ships themed
icons.
+ %mime_database_post/postun because the package ships a mime
type definition.
- Pass %{?no_lang_C} to %find_lang so that english documentation
can be packaged with the program, and not in the lang subpackage.
- Change Requires of lang subpackage to Recommends, since the
english documentation is not there anymore.
- Drop doc subpackage as it contained developer doc that should be
in the devel subpackage.
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Jan 7 17:39:13 CET 2011 - vuntz@opensuse.org Fri Jan 7 17:39:13 CET 2011 - vuntz@opensuse.org

View File

@ -20,6 +20,7 @@
Name: anjuta Name: anjuta
Version: 2.32.1.1 Version: 2.32.1.1
Release: 1 Release: 1
# NOTE: on upgrade to a new upstream version, change the doc Obsoletes from <= to <
License: GPLv2+ License: GPLv2+
Summary: Versatile Integrated Development Environment for GNOME Summary: Versatile Integrated Development Environment for GNOME
Url: http://anjuta.sourceforge.net/ Url: http://anjuta.sourceforge.net/
@ -58,7 +59,6 @@ BuildRequires: valgrind-devel
%endif %endif
BuildRequires: vte-devel BuildRequires: vte-devel
BuildRequires: pkgconfig(vala-0.10) BuildRequires: pkgconfig(vala-0.10)
Requires: %{name}-lang = %{version}
# Directly required by anjuta: # Directly required by anjuta:
Requires: autoconf Requires: autoconf
Requires: autogen Requires: autogen
@ -67,6 +67,7 @@ Requires: gettext
Requires: libtool Requires: libtool
# libgda-sqlite is needed by the symbol-db plugin. See bnc#624924. # libgda-sqlite is needed by the symbol-db plugin. See bnc#624924.
Requires: libgda-sqlite Requires: libgda-sqlite
Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%gconf_schemas_prereq %gconf_schemas_prereq
@ -104,6 +105,9 @@ License: GPLv2+
Summary: Versatile Integrated Development Environment for GNOME -- Development Files Summary: Versatile Integrated Development Environment for GNOME -- Development Files
Group: Development/Tools/IDE Group: Development/Tools/IDE
Requires: %{name} = %{version} Requires: %{name} = %{version}
Provides: %{name}-doc = %{version}
# Note: we keep <= (and a rpmlint warning...) until we get a version higher than 2.32.1.1 (when this provides/obsoletes was introduced)
Obsoletes: %{name}-doc <= %{version}
%description devel %description devel
Anjuta is a versatile Integrated Development Environment (IDE) for the Anjuta is a versatile Integrated Development Environment (IDE) for the
@ -114,21 +118,6 @@ an integrated Valgrind memory profiler, an integrated gprof performance
profiler, a class generator, a powerful source editor, source browsing, profiler, a class generator, a powerful source editor, source browsing,
and more. and more.
%package doc
License: GPLv2+
Summary: Versatile Integrated Development Environment for GNOME -- Developer Documentation
Group: Development/Tools/IDE
Requires: %{name} = %{version}
%description doc
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.
%lang_package %lang_package
%prep %prep
%setup -q %setup -q
@ -150,10 +139,10 @@ make %{?jobs:-j%jobs}
rm -r %{buildroot}%{_datadir}/doc rm -r %{buildroot}%{_datadir}/doc
DESTDIR=%{buildroot} mime-info-to-mime DESTDIR=%{buildroot} mime-info-to-mime
%suse_update_desktop_file anjuta %suse_update_desktop_file anjuta
%find_lang anjuta %find_lang anjuta %{?no_lang_C}
%find_lang anjuta-build-tutorial anjuta.lang %find_lang anjuta-build-tutorial %{?no_lang_C} anjuta.lang
%find_lang anjuta-faqs anjuta.lang %find_lang anjuta-faqs %{?no_lang_C} anjuta.lang
%find_lang anjuta-manual anjuta.lang %find_lang anjuta-manual %{?no_lang_C} anjuta.lang
%find_gconf_schemas %find_gconf_schemas
find %{buildroot} -type f -name "*.la" -delete -print find %{buildroot} -type f -name "*.la" -delete -print
# Fix permissions # Fix permissions
@ -170,15 +159,17 @@ rm -rf %{buildroot}
%post %post
/sbin/ldconfig /sbin/ldconfig
if test -x usr/bin/update-mime-database ; then %desktop_database_post
usr/bin/update-mime-database usr/share/mime >/dev/null %icon_theme_cache_post
fi %icon_theme_cache_post gnome
%mime_database_post
%postun %postun
/sbin/ldconfig /sbin/ldconfig
if test -x usr/bin/update-mime-database ; then %desktop_database_postun
usr/bin/update-mime-database usr/share/mime >/dev/null %icon_theme_cache_postun
fi %icon_theme_cache_postun gnome
%mime_database_postun
%posttrans -f %{name}.schemas_posttrans %posttrans -f %{name}.schemas_posttrans
@ -187,6 +178,17 @@ fi
%files -f %{name}.schemas_list %files -f %{name}.schemas_list
%defattr(-,root,root) %defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog FUTURE NEWS README doc/ScintillaDoc.html TODO %doc AUTHORS COPYING ChangeLog FUTURE NEWS README doc/ScintillaDoc.html TODO
%dir %{_datadir}/gnome/
%dir %{_datadir}/gnome/help/
%dir %{_datadir}/gnome/help/anjuta-build-tutorial/
%doc %{_datadir}/gnome/help/anjuta-build-tutorial/C/
%dir %{_datadir}/gnome/help/anjuta-faqs/
%doc %{_datadir}/gnome/help/anjuta-faqs/C/
%dir %{_datadir}/gnome/help/anjuta-manual/
%doc %{_datadir}/gnome/help/anjuta-manual/C/
%dir %{_datadir}/omf/
%dir %{_datadir}/omf/anjuta-manual/
%doc %{_datadir}/omf/anjuta-manual/anjuta-manual-C.omf
%{_bindir}/* %{_bindir}/*
%{_libdir}/anjuta %{_libdir}/anjuta
%{_libdir}/*.so.* %{_libdir}/*.so.*
@ -194,7 +196,8 @@ fi
%{_datadir}/applications/*.desktop %{_datadir}/applications/*.desktop
%{_datadir}/mime/packages/*.xml %{_datadir}/mime/packages/*.xml
%{_datadir}/pixmaps/anjuta %{_datadir}/pixmaps/anjuta
# Somehow I think that this is wrong. # When removing the gnome icon theme icons, don't forget to remove the %%icon_theme_cache_post(un) call for them
# Somehow I think that this is wrong:
%dir %{_datadir}/icons/gnome/*/mimetypes/ %dir %{_datadir}/icons/gnome/*/mimetypes/
%{_datadir}/icons/gnome/*/mimetypes/*.png %{_datadir}/icons/gnome/*/mimetypes/*.png
%{_datadir}/icons/gnome/scalable/mimetypes/*.svg %{_datadir}/icons/gnome/scalable/mimetypes/*.svg
@ -209,14 +212,11 @@ fi
%files devel %files devel
%defattr(-, root, root) %defattr(-, root, root)
%{_includedir}/libanjuta-1.0 %doc %{_datadir}/gtk-doc/html/libanjuta/
%{_includedir}/libanjuta-1.0/
%{_libdir}/*.so %{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc %{_libdir}/pkgconfig/*.pc
%files doc
%defattr(-, root, root)
%{_datadir}/gtk-doc/html/libanjuta
%files lang -f %name.lang %files lang -f %name.lang
%changelog %changelog