#
# spec file for package anjuta (Version 2.25.903.0)
#
# Copyright (c) 2009 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           anjuta
BuildRequires:  autogen
BuildRequires:  binutils-devel
BuildRequires:  devhelp-devel
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  gdl-devel
BuildRequires:  gnome-common
BuildRequires:  gnome-doc-utils-devel
BuildRequires:  gnome-icon-theme
BuildRequires:  graphviz-devel
BuildRequires:  gtk-doc
BuildRequires:  gtksourceview-devel
BuildRequires:  intltool
BuildRequires:  libapr-util1-devel
BuildRequires:  libapr1-devel
BuildRequires:  libgda-4_0-devel
BuildRequires:  libglade2-devel
BuildRequires:  libgladeui-1_0-devel
BuildRequires:  libgnomeui-devel
BuildRequires:  libneon-devel
BuildRequires:  libwnck-devel
BuildRequires:  libxslt-devel
BuildRequires:  pcre-devel
BuildRequires:  perl-gettext
BuildRequires:  shared-mime-info
BuildRequires:  subversion-devel
BuildRequires:  unique-devel
BuildRequires:  update-desktop-files
%ifnarch ia64 s390 s390x
BuildRequires:  valgrind-devel
%endif
BuildRequires:  vte-devel
# FIXME: Introduced by other packages:
BuildRequires:  sqlite-devel
License:        GPL v2 or later
Group:          Development/Tools/IDE
# Directly required by anjuta:
Requires:       autogen
Requires:       automake
Requires:       autoconf
Requires:       libtool
Requires:       gettext
Requires:       alsa-devel
Requires:       audiofile
Requires:       devhelp
Requires:       esound-devel
Requires:       gconf2-devel
Requires:       gnome-terminal
Requires:       gnome-vfs2-devel
Requires:       libart_lgpl-devel
Requires:       libbonobo-devel
Requires:       libbonoboui-devel
Requires:       libglade2-devel
Requires:       libgnome-devel
Requires:       libgnomecanvas-devel
Requires:       libgnomeui-devel
Requires:       libwnck-devel
Requires:       libxml2-devel
Requires:       openssl-devel
Requires:       orbit2-devel
Requires:       popt-devel
Requires:       yelp
Requires:       gnome-doc-utils
Recommends:     gconf2-doc
Recommends:     gnome-vfs2-doc
Recommends:     libbonobo-doc
Recommends:     libbonoboui-doc
Recommends:     libglade2-doc
Recommends:     libgnome-doc
Recommends:     libgnomecanvas-doc
Recommends:     libgnomeui-doc
Version:        2.25.903.0
Release:        1
Requires:       %{name}-lang = %{version}
Summary:        GNOME IDE for C and C++
Source:         anjuta-%{version}.tar.bz2
Url:            http://anjuta.sourceforge.net/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%gconf_schemas_prereq

%description
Anjuta is a versatile integrated development environment (IDE) for C
and C++. It has been written for GTK and GNOME and features a number of
advanced programming facilities. It is basically a GUI interface for
the collection of command line programming utilities and tools
available for the GNU system. These are usually run via a text console
and can be unfriendly to use.



Authors:
--------
    Naba kumar <naba@gnome.org>
    St�phane D�murget <demurgets@free.fr>
    Andy Piper <andy.piper@freeuk.com>
    Hector Rivera Falu <misha@phreaker.net>
    Luca Bellonda <lbell@tsc4.com>
    Biswapesh Chattopadhyay <biswapesh_chatterjee@tcscal.co.in>

%package devel
License:        GPL v2 or later
Summary:        GNOME IDE for C and C++
Group:          Development/Tools/IDE
Requires:       %{name} = %{version} gdl-devel libglade2-devel libgnomeui-devel

%description devel
Anjuta is a versatile integrated development environment (IDE) for C
and C++. It has been written for GTK and GNOME and features a number of
advanced programming facilities. It is basically a GUI interface for
the collection of command line programming utilities and tools
available for the GNU system. These are usually run via a text console
and can be unfriendly to use.



Authors:
--------
    Naba kumar <naba@gnome.org>
    St�phane D�murget <demurgets@free.fr>
    Andy Piper <andy.piper@freeuk.com>
    Hector Rivera Falu <misha@phreaker.net>
    Luca Bellonda <lbell@tsc4.com>
    Biswapesh Chattopadhyay <biswapesh_chatterjee@tcscal.co.in>

%package doc
License:        GPL v2 or later
Summary:        GNOME IDE for C and C++
Group:          Development/Tools/IDE
Requires:       %{name} = %{version}

%description doc
Anjuta is a versatile integrated development environment (IDE) for C
and C++. It has been written for GTK and GNOME and features a number of
advanced programming facilities. It is basically a GUI interface for
the collection of command line programming utilities and tools
available for the GNU system. These are usually run via a text console
and can be unfriendly to use.



Authors:
--------
    Naba kumar <naba@gnome.org>
    St�phane D�murget <demurgets@free.fr>
    Andy Piper <andy.piper@freeuk.com>
    Hector Rivera Falu <misha@phreaker.net>
    Luca Bellonda <lbell@tsc4.com>
    Biswapesh Chattopadhyay <biswapesh_chatterjee@tcscal.co.in>

%lang_package
%prep
%setup -q

%build
%configure\
	--disable-scrollkeeper
make

%install
%makeinstall
# These should go to defaultdocdir.
rm -r $RPM_BUILD_ROOT%{_datadir}/doc
DESTDIR=$RPM_BUILD_ROOT mime-info-to-mime
rm -r $RPM_BUILD_ROOT/%{_libdir}/*.*a
%suse_update_desktop_file -C "" -D anjuta/anjuta-manual.xml -G "Integrated Development Environment" anjuta Development IDE GNOME
%find_lang anjuta
%find_lang anjuta-faqs anjuta.lang
%find_lang anjuta-manual anjuta.lang
%find_gconf_schemas
%fdupes $RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%pre -f %{name}.schemas_pre

%post
/sbin/ldconfig
if test -x usr/bin/update-mime-database ; then
  usr/bin/update-mime-database usr/share/mime >/dev/null
fi

%postun
/sbin/ldconfig
if test -x usr/bin/update-mime-database ; then
  usr/bin/update-mime-database usr/share/mime >/dev/null
fi
%posttrans -f %{name}.schemas_posttrans

%preun -f %{name}.schemas_preun

%files -f %{name}.schemas_list
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog FUTURE NEWS README doc/ScintillaDoc.html TODO
%{_bindir}/*
%{_libdir}/anjuta
%{_libdir}/*.so.*
%{_datadir}/anjuta
%{_datadir}/applications/*.desktop
%{_datadir}/mime/packages/*.xml
%{_datadir}/pixmaps/anjuta
# Somehow I think that this is wrong.
%dir %{_datadir}/icons/gnome/48x48/mimetypes/
%{_datadir}/icons/gnome/48x48/mimetypes/*.png
%{_datadir}/icons/gnome/scalable/mimetypes/*.svg
%{_datadir}/icons/hicolor/48x48/apps/*.png
%{_datadir}/icons/hicolor/scalable/apps/*.svg
%dir %{_datadir}/omf/anjuta-manual
%{_datadir}/omf/anjuta-manual/*.omf
%{_datadir}/gnome/help/anjuta-build-tutorial
%doc %{_mandir}/man?/*.*
%{_libdir}/glade3/modules/*
%{_datadir}/glade3/catalogs/*

%files devel
%defattr(-, root, root)
%{_includedir}/libanjuta-1.0
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

%files doc
%defattr(-, root, root)
%{_datadir}/gtk-doc/html/libanjuta

%files lang -f %name.lang

%changelog
* Fri Mar 06 2009 vuntz@novell.com
- Update to version 2.25.903.0:
  + Valgrind memory fixes
  + Documentation fixes and updates
  + Fixes in the glade plugin
  + Version control integration fixes
  + Auto-indentation fixes
  + bgo#564282 – configure error: source directory already
  configured
  + bgo#567513 – Running configure doesn't make anjuta be aware
  that the project doesn't need a configure stage in its menus
  + bgo#565170 – Invalid read in plugin.c
  + bgo#573326 – Debug misfunction
  + bgo#572637 – Valgrind shows some errors in symbol-db
  + bgo#567068 – autocomplete box should vanish on backspace
  + bgo#564306 – don't ask which program to run if project has only
  one target
  + bgo#559806 – Anjuta crashes when closing unsaved file
  + bgo#556970 – Swap .h/.c doesn't work for C header files (*.h)
  + bgo#555895 – Save configure options for build configuration
  + bgo#572608 – crash clicking on 'find in files...' results.
  + bgo#572451 - crash on closing project
  + bgo#571760 – Find & Replace is broken (due to my previous
  changes)
  + bgo#511589 - remove missed includes
  + bgo#572289 – Make code less ambiguous
  + bgo#564891 – Crash when closing editor window
- Do not call autoreconf.
- Drop anjuta-fix-undefined-operation.patch: fixed upstream.
* Tue Feb 17 2009 vuntz@novell.com
- Update to version 2.25.902:
  + Updates:
    - Code completion
    - Searching
    - Project Management
  + Bugs fixed:
    - bgo#570820 - problem with gtk+ trunk
    - bgo#564942 - display project-relative path in search results
  pane
    - bgo#571381 - Seach button disabled if no files opened.
    - bgo#571733 - file manager should sort files
  case-insensitively
    - bgo#571233 - Uncorrect loading of subversion plugin
    - bgo#571215 - doesn't indent function declarations correctly
    - bgo#570492 - Some criticals in the terminal plugin
    - bgo#556148 - it's impossible to remove project variables
    - bgo#571262 - gbf-am: treat tail slash as a package
    - bgo#566991 - list project modules in sorted order
    - bgo#571114 - Crash after clicking on Edit/Preferences with
  open document
    - bgo#571143 - Double free crasher of path string.
    - bgo#563704 - Anjuta displays column/line numbers after edit
  windows closed
    - bgo#556970 - Swap .h/.c doesn't work for C header files (*.h)
    - bgo#570720 - There are warnings in some cases when I press
  cancel in program arguments dialog
    - bgo#566785 - Anjuta crashes after enabling and disabling a
  plugin often
    - bgo#567606 - Auto-indentation in Anjuta gets tab indentation
  wrong for function paramaters
    - bgo#565015 - duplicate matches in search results pane
    - bgo#539580 - Uncorrect pass search result to
    - bgo#570614 - outdated download addresses
    - bgo#566531 - Find & Replace results in wrong result for files
  containing multi-byte UTF-8 sequences
    - bgo#570877 - symbol-db doesn't scan user-added packages.
    - bgo#570929 - initialize widgets before add watches.
    - bgo#566987 - display tooltip with prototype when calling
  function in project.
    - bgo#570245 - gbf gio-critical g_file_query_exists
    - bgo#566693 - Code completion of symbols usually not working
    - bgo#570492 - Canot open editor - crash
    - bgo#567100 - opening Find dialog causes GtkSpinButton warning
    - bgo#570444 - can't change numbers in preferences dialog
    - bgo#566987 - display tooltip with prototype when calling
  function in project
- Add anjuta-fix-undefined-operation.patch to fix a build error.
- Remove BuildRequires: gnome-build-devel, gnutls-devel,
  libgnomeprintui-devel, perl-XML-Parser, scrollkeeper
- Add BuildRequires: unique-devel.
- Remove Requires: libgnomeprint-devel, libgnomeprintui-devel
- Remove Recommends: libgnomeprint-doc, libgnomeprintui-doc
- Drop README.SuSE: I can't find any other mention of
  anjuta_update_global_tags, so I assume this is obsolete.
- Cleanup file list.
- Cleanup obsolete comments.
* Fri Feb 06 2009 hfiguiere@suse.de
- Revert some .spec change causing a breakage.
* Wed Feb 04 2009 hfiguiere@suse.de
- Update to 2.25.901
  + A large number of changes and fixes.
  + File-browser shows version control status for subversion using
  emblems
  + Remote debugging support using gdbserver
  + New bookmark interface
  + gnome-build merge into anjuta
  + Starter plugin for fast access to common actions
  + Symbol-db plugin now default and working, old ctags code and
  symbol-browser removed
  + Glade integration work (GSoc) merged
  + Support for scratchbox2
- Added perl-gettext and libgda-4_0-devel in the build requires.
* Fri Dec 26 2008 mboman@suse.de
- Use gtksourceview-devel instead of gtksourceview18-devel.
  Fixes bnc#461287
* Tue Nov 25 2008 ro@suse.de
- do not buildrequire valgrind on ia64 s390 s390x
  (does not exist on these platforms)
* Mon Oct 20 2008 mboman@suse.de
- Update to version 2.24.1:
  + bgo#545668 - new file are not added correctly to the project
  + bgo#545668 - file's icon not correctly updated on tabs-right-click
  + bgo#556053 - closing file tabs disable 'save button'
  + bgo#554684 - Cursor column number is not updated when typing text
  + Debugger was unable to start if build and source directory are different
  + Subversion: Make sure the repository URL given to the switch command is
  canonicalized.
  + bgo#554337 could not find glade file while executing a program
  + Translation updates
* Mon Sep 29 2008 mboman@suse.de
- Update to version 2.24.0.1:
  + New version of symbol-db plugin beta
  + Fix warnings, some documents could have no associated file
  + Fix bgo#529468: Use weak pointers to avoid acting on widgets that have
  been destroyed.
  + Fix bgo#551574 Project names and descriptions are not translatable
  + Fix bgo#551684: Wrong AC substitutions in anjuta-version.h.
  + Fixed a problem with async file loading.
  + Fix libanjuta API documentation
  + Imported new symbol icons from MonoDevelop.
  + Fix bgo#550322 - Newlines should be placed at the end of error messages
  lines
  + Fix bgo#550470 - Crash: Executing file through popup menu
  + Use the View->Editor->* menu items for view spaces, view eol and
  line wrap (new) option instead of the preferences.
  + Fix bgo#549950 - crash while saving a file
  + Translation updates
* Thu Sep 04 2008 maw@suse.de
- Update to version 2.23.91:
  + The large version bump is due to Anjuta synchronizing its
  version numbers with those of GNOME at large
  + Many bugfixes, updated translations, etc; for a fuller account
  see the included NEWS file.
* Tue Jul 15 2008 coolo@suse.de
- removing linking against shared bfd library, this makes updating
  bintuils impossible. If there is a bug in the static library,
  it should be fixed there
* Wed Apr 02 2008 vuntz@suse.de
- Remove -fno-strict-aliasing
- Add gdl-devel to Requires for the devel package
- Move *-doc from Requires to Recommends
- Clean up Requires by removing libraries when the devel package of
  the libraries are already in Requires
- Run ldconfig in %%post(un)
* Mon Mar 31 2008 vuntz@suse.de
- Updated to version 2.4.0. Too many changes and bugfixes to list
  here.
- Remove anjuta-64bit-warning.patch (fixed upstream),
  anjuta-svn-no-svn-config.patch (fixed upstream),
  anjuta-uninitalized-vars.patch (fixed upstream), abuild.patch
  (fixed upstream)
* Wed Feb 06 2008 rodrigo@suse.de
- Added patches to fix build failures
* Mon Feb 04 2008 ro@suse.de
- disable parallel make for the moment
* Mon Feb 04 2008 rodrigo@suse.de
- Fixed path for Glade catalog files
* Fri Feb 01 2008 rodrigo@suse.de
- Update to version 2.3.3:
  * http://ftp.acc.umu.se/pub/GNOME/sources/anjuta/2.3/anjuta-2.3.3.news
* Thu Jan 31 2008 sbrabec@suse.cz
- Devhelp documentation moved to the separate package (bnc#248813).
* Thu Nov 01 2007 sbrabec@suse.cz
- Build with gtksourceview18.
* Fri Oct 26 2007 sbrabec@suse.cz
- Require autogen (#336176).
- Fixed shared libbfd detection.
* Wed Oct 24 2007 sbrabec@suse.cz
- Build all optional plugins except GtkSourceView: subversion,
  glade, class inheritance, performance profiler, Valgrind.
* Tue Oct 23 2007 maw@suse.de
- Update to version 2.2.2:
  + Bugs (bugzilla.gnome.org) fixed: #477976, #427104, #479020,
  [#478238], #456465, #466031, #343522, #487112, #486597, #482067,
  [#477976], #427104, #487854, #474811, #488061, and #488928.
* Wed Oct 17 2007 maw@suse.de
- Add gdl-devel and libxslt-devel to the list of build requirements
- Remove configure.patch
- Don't attempt to install files that don't exist
- Split out a -devel subpackage
- Add abuild.patch
- Add no-bins-in-usrshare.patch
- Minor .spec cleanups.
* Thu Oct 11 2007 sbrabec@suse.cz
- Removed bogus dependency on mDNSResponder.
* Mon Oct 08 2007 mauro@suse.de
- Update to version 2.2.1:
  * Fixed lots of memory leaks (thanks valgrind)
  * Fixed crasher on shutdown
  * Avoid an endless loop if clearing all breakpoints while the programm
  is running
  * Fixed help activation (bug #451557).
  * Fixed compiler warnings.
  * Fixed #423467 (View->Tasks menu items are not checked on startup)
  * Fixed anjuta-plugin template plugin by moving the "\" out of the [IF] block
  * Fixes bug #433552: crash in Anjuta IDE: add file test.h in project on
  generic Makefile.
  * Disables 'Add to project' in wizards for projects that can not add sources.
  * Fixed bug #450217: Refreshing tree brings to random crashes
  * Fixed bug 453931 - crash in Anjuta IDE: Trying some c++ exampled
  * Fixed bug 457093 - crash in Anjuta IDE: just typed in some text
* Fri Aug 10 2007 coolo@suse.de
- put the Version before the use of %%version
* Mon Aug 06 2007 maw@suse.de
- Split out a -lang subpackage
- Use %%fupes.
* Mon Jun 18 2007 maw@suse.de
- Add abuild.patch (#241836).
* Mon Apr 23 2007 pgajdos@suse.cz
- fixed new gcc warnings
- literal-comparsion.patch
* Wed Apr 18 2007 pgajdos@suse.cz
- fixed 'array subscript is above array bounds' [#248868]
- array-index.patch
* Thu Jan 04 2007 sbrabec@suse.cz
- Prefix changed to /usr.
- Spec file cleanup.
* Sun Oct 15 2006 schwab@suse.de
- Make sure config.rpath is present.
* Fri Feb 24 2006 sbrabec@suse.cz
- Improved Categories.
* Fri Feb 17 2006 sreeves@suse.de
- Update .desktop file (Name, GenericName, Comment, DocPath)
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Jan 18 2006 sbrabec@suse.cz
- Updated to version 1.2.4a.
* Wed Nov 02 2005 dmueller@suse.de
- don't build as root
* Wed Oct 26 2005 sbrabec@suse.cz
- Updated to version 1.2.4 (#118228).
* Tue Aug 02 2005 ro@suse.de
- intltoolize with force
* Mon Jun 20 2005 sbrabec@suse.cz
- Removed mkinstalldirs patch - fixed upstream (#56985).
* Mon May 16 2005 sbrabec@suse.cz
- Updated to version 1.2.3.
* Wed Apr 27 2005 meissner@suse.de
- fixed buffer overflow and one aliasing issue.
* Tue Apr 05 2005 sbrabec@suse.cz
- Do not require linc.
* Sun Nov 07 2004 ro@suse.de
- make it build with new intltool
* Tue Oct 26 2004 ro@suse.de
- locale rename: no -> nb
* Tue Sep 07 2004 sbrabec@suse.cz
- Generated shared mime info.
* Mon Jul 12 2004 sbrabec@suse.cz
- Fixed default applications for GNOME2 (bug #42852).
  http://sourceforge.net/tracker/index.php?func=detail&aid=987912&group_id=14222&atid=314222
- Added gnome-terminal, yelp and devhelp to Requires.
- Added *-doc GNOME developer documentation to Requires.
* Tue Jun 15 2004 sbrabec@suse.cz
- Worked around missing mkinstalldirs (#42037, #41985).
* Thu Jun 10 2004 sbrabec@suse.cz
- Updated to version 1.2.2.
- Fixed IA64 crash on start (#41854).
* Mon Apr 26 2004 ro@suse.de
- fix function return type to void
* Wed Mar 17 2004 sbrabec@suse.cz
- Fixed scrollkeeper calling conventions (#36215).
* Mon Mar 15 2004 sbrabec@suse.cz
- FHS 2.3 fix (mandir, infodir, #35821).
* Mon Mar 15 2004 sbrabec@suse.cz
- Added package set sufficient for compilation to requirements (#35900),
* Thu Feb 19 2004 ro@suse.de
- fix plugindir for lib64
* Thu Feb 12 2004 sbrabec@suse.cz
- Updated to version 1.2.1 (GNOME2).
- Added anjuta_update_global_tags.
* Sat Aug 16 2003 adrian@suse.de
- add Categories
* Thu Jul 24 2003 hhetter@suse.de
- %%_lib fixes
* Mon Jul 14 2003 sbrabec@suse.cz
- GNOME prefix change to /opt/gnome.
* Thu Jun 19 2003 ro@suse.de
- added directory to filelist
* Mon Jun 02 2003 ro@suse.de
- add manpages to filelist
- remove unpackaged files from buildroot
* Mon Nov 11 2002 ro@suse.de
- changed neededforbuild <jade_dsl> to <openjade>
- changed neededforbuild <sp> to <opensp>
* Wed Nov 06 2002 hhetter@suse.de
- update to version 1.0.0
- package split en/ja documentation and translation
- completed scrollkeeper installation
- use correct kde datadir
- fix docbook usage
- full filelist rework
* Fri Sep 27 2002 ro@suse.de
- Added alsa alsa-devel to neededforbuild (esound)
* Thu Aug 15 2002 ro@suse.de
- removed gnome-utils from neededforbuild
* Tue Aug 13 2002 hhetter@suse.de
- fix neededforbuild
* Fri Jul 26 2002 adrian@suse.de
- fix neededforbuild
* Mon Jul 01 2002 meissner@suse.de
- auto* rerun, added intltool to neededforbuild
* Mon Jul 01 2002 hhetter@suse.de
- updated to version 0.1.9
* Mon May 27 2002 ro@suse.de
- removed gpc from neededforbuild
* Fri Feb 01 2002 ro@suse.de
- changed neededforbuild <libpng> to <libpng-devel-packages>
* Wed Dec 05 2001 hhetter@suse.de
- update to version 0.1.8
  * first version after merging with gIDE
* Fri Aug 24 2001 hhetter@suse.de
- update to version 0.1.7, changes include:
  * translation and documentation updates
  * fixed bugs preventing use of the wizard
  * cleaned up user-interface
- filelist corrections and updates
- functionality test on i386
* Mon Aug 13 2001 hhetter@suse.de
- removed no longer needed patch
- updated to version 0.1.6
* Wed Jun 20 2001 hhetter@suse.de
- fixed redundand docdir
* Thu Apr 05 2001 uli@suse.de
- ditched reimplementation of strcasestr (harmful with recent gccs)
- fixed passing of RPM_OPT_FLAGS
* Thu Mar 29 2001 hhetter@suse.de
- update to version 0.1.4
- use bz2
- filelist review
* Wed Mar 14 2001 hhetter@suse.de
- changed docdir from gnome/anjuta/ to anjuta/
- filelist corrections
* Mon Mar 12 2001 hhetter@suse.de
- Update to version 0.1.3
- filelist corrections/updates
- testrun on 7.1
* Mon Jan 22 2001 hhetter@suse.de
- inital build