File kscope.spec of Package kscope

#
# spec file for package kscope (Version 1.6.2)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           kscope
License:        BSD 3-Clause
Group:          Development/Tools/Navigators
AutoReqProv:    on
BuildRequires:  bison flex graphviz-devel kdebase3-devel kdelibs3-devel qt3-devel
Version:        1.6.2
Release:        1
Summary:        Interactive Tool for Browsing C Source Code
Recommends:     cscope ctags graphviz
Enhances:       cscope
Enhances:       ctags
Source:         %{name}-%{version}.tar.bz2
Patch:          kscope-desktop.patch
Url:            http://kscope.sourceforge.net
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
KScope is a KDE front-end to Cscope. It provides a source-editing
environment for large C projects, such as the Linux kernel.



Authors:
--------
    Elad Lahav < elad_lahav@users.sf.net>

%prep
%setup -q
%patch

%build
CFLAGS="$RPM_OPT_FLAGS" \
CXXFLAGS="$RPM_OPT_FLAGS" \
./configure --includedir=/usr/include/graphviz
make

%install
mkdir -p $RPM_BUILD_ROOT%{_prefix}/bin
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
make install DESTDIR=$RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc TODO COPYING ChangeLog AUTHORS README NEWS INSTALL
/opt/kde3/bin/kscope
/opt/kde3/share/apps/kscope/
%doc %lang(en) /opt/kde3/share/doc/HTML/en/kscope/
/opt/kde3/share/icons/*
/opt/kde3/share/applnk/Development/kscope.desktop
/opt/kde3/share/locale/zh_CN/LC_MESSAGES/kscope.mo

%changelog
* Tue Jul 29 2008 pnemec@suse.cz
- update to 1.6.2
  * New: Support for hidden project folders under the source root
  * New: Support for case-insensitive queries
  * New: Per-project Ctags command line (for advanced users only)
  * Bug fix: Make the configuration script sh-friendly
  * Bug fix: Handle unicode characters on gcc's output
  * Bug fix: KScope crashes when clicking on empty area in the tree view
  * Bug fix: Do not show the "Function" column in the error list
  * Bug fix: Do not close KScope when choosing "Cancel" in the "Save Files?"
  message box
  * Bug fix: Stop queries when their result windows are destroyed
  * Bug fix: Query results sorted by line numbers are sorted numerically
  * Translation: Chinese
  add ctags as suggest
- added ctags cscope and graphviz as Recommends [bnc#398093]
* Fri May 23 2008 crrodriguez@suse.de
- need to export CXXFLAGS to use RPM_OPT_FLAGS properly
* Fri Jul 13 2007 pnemec@suse.cz
- update to 1.6.0
  Improved: Updated the documentation
  Improved: Implemented multiple-call nodes in the call-graph
  Improved: Workspace toolbar buttons re-arranged
  Improved: Hitting Enter in the "Open Project" dialogue's list of
  recent projects opens the selected project
  Bug fix: Prevent infinite loops in the file finder in the presence of
  recursive symbolic links
  Bug fix: Child windows should not disappear when dialogues are invoked
  Bug fix: Added padding to the call graph, to avoid chopped-off drawing
  of nodes close to the borders
  Bug fix: Honour the preferred font when drawing the graph
  Bug fix: Delete temporary dot files used for drawing graphs
  Bug fix: Save call-tree files when a project is closed
  Bug fix: Clean-up a project's directory name after it is created
* Fri Jun 01 2007 coolo@suse.de
- include directories
* Fri Mar 30 2007 stbinner@suse.de
- add bison and flex to build requires
* Wed Feb 07 2007 pnemec@suse.cz
- updated to 1.5.0
  New: Make front-end (Rudimentary)
  New: Global bookmarks list
  New: Support for Cscope's -c and -D command-line options (-D requires a patch to Cscope)
  Improved: Detect Cscope's executable and capabilities on each load
  Improved: Graph windows are no longer top-level (can be minimised or hidden behind the main window)
  Improved: Do not automatically open a project if it was already loaded by another instance of KScope
  Improved: Show #include directives in the tag list
  Bug fix: Better calculation of the area defined by a graph arrow
  Bug fix: Files could not be found in the file list when using a common root ($)
* Tue Oct 17 2006 pnemec@suse.cz
- update to 1.4.~
  New: Tool-tips for the project's file list
  New: "Find Definition" entry in the query-results popup menu
  Improved: Added '*.S' (kernel assembly files) to the list of standard
  file types
  Improved: Some code clean-ups in the query-results popup menu
  Bug fix: All query results following a global definition were omitted
* Tue Sep 19 2006 pnemec@suse.cz
- update to 1.4.1
  updated documentation
  many bugfixes
  fixed memory leaks
  ...
- fixed desktop file
* Tue Aug 29 2006 stbinner@suse.de
- fix build for < 10.1
* Tue May 09 2006 pnemec@suse.cz
- created package kscope
- patch for desktop file