Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > 8d62ff5be31b3053742fe5a5ee79a5dc > files > 2

kgraphviewer-2.0.2-3mdv2009.0.src.rpm

%define version 2.0.2
%define rel	3

Summary:	A GraphViz dot graph viewer for KDE
Name:		kgraphviewer
Version: 	%{version}
Release: 	%mkrel %{rel}
Source0: 	http://download.gna.org/kgraphviewer/%{name}-%version-kde4.0.80.tar.bz2
License: 	GPLv2+
Group: 		Graphics	 	
Url: 		https://gna.org/projects/kgraphviewer
BuildRoot: 	%{_tmppath}/%{name}-%{version}-%{release}-buildroot
Requires:	graphviz
BuildRequires:	boost-devel
BuildRequires: 	kdepimlibs4-devel
BuildRequires:	desktop-file-utils
Obsoletes:      kde4-%name <= 2.0
Provides:       kde4-%name = %version

%description 
KGraphViewer is user-friendly KDE application for viewing dot graphs 
created for processing with GraphViz. Notable features provided include:

- loading of several graphs in tabs
- bird's-eye graph view
- zooming view
- simple printing
- context menu and toolbar for selecting layout algorithms
- session management

%post
%if %mdkversion < 200900
/sbin/ldconfig
%endif
%if %mdkversion < 200900
%update_menus
%endif

%postun
%if %mdkversion < 200900
/sbin/ldconfig
%endif
%if %mdkversion < 200900
%update_menus
%endif

%files -f %name.lang
%defattr(-,root,root)
%_kde_bindir/*
%_kde_libdir/kde4/*.so
%_kde_datadir/applications/kde4/*.desktop
%_kde_appsdir/*
%_kde_datadir/config.kcfg/*.kcfg
%_kde_iconsdir/*/*/*/*.png
%_kde_datadir/kde4/services/*.desktop

#--------------------------------------------------------------------

%prep
%setup -q -n %name-%version-kde4.0.80

%build
%cmake_kde4
%make

%install
rm -rf %{buildroot}
cd build
%{makeinstall_std}
cd -

desktop-file-install --vendor='' \
	--dir %buildroot%_kde_datadir/applications/kde4/ \
	--remove-key='Encoding' \
	--remove-category='Application' \
	--add-category='Qt;KDE;Graphics;2DGraphics;Viewer' \
	%buildroot%_kde_datadir/applications/kde4/kgraphviewer.desktop \
	%buildroot%_kde_datadir/applications/kde4/kgrapheditor.desktop

%find_lang %name --with-html

%clean
rm -rf %{buildroot}


%changelog
* Fri Jul 04 2008 Pixel <pixel@mandriva.com> 2.0.2-3mdv2009.0
+ Revision: 231503
- rpm filetriggers deprecates update_menus/update_scrollkeeper/update_mime_database/update_icon_cache/update_desktop_database/post_install_gconf_schemas
- do not call ldconfig in %%post/%%postun, it is now handled by filetriggers

* Fri May 30 2008 Funda Wang <fundawang@mandriva.org> 2.0.2-2mdv2009.0
+ Revision: 213224
- New version 2.0.2

* Tue May 13 2008 Funda Wang <fundawang@mandriva.org> 2.0.1-1mdv2009.0
+ Revision: 206552
- New version 2.0.1

  + Nicolas Lécureuil <neoclust@mandriva.org>
    - Fix provides // Obsoletes
      Fix File list to  fit kde4 policy
    - Rename spec file and fix spec file
    - Use new policy name

* Sat Mar 08 2008 Nicolas Lécureuil <neoclust@mandriva.org> 2.0-1mdv2008.1
+ Revision: 182322
- New version 2.0

* Sun Dec 30 2007 Funda Wang <fundawang@mandriva.org> 1.99.1-1mdv2008.1
+ Revision: 139425
- import SOURCES and SPECS
- create kde4-kgraphviewer


* Mon Jul 10 2006 Laurent MONTEL <lmontel@mandriva.com> 1.0.2-1 
- 1.0.2

* Sat Jun 24 2006 Laurent MONTEL <lmontel@mandriva.com> 1.0.1-1 
- 1.0.1

* Mon May 29 2006 Nicolas Lécureuil <neoclust@mandriva.org> 1.0-0.rc1.4mdv2007.0
- Add BuildRequires

* Mon May 29 2006 Laurent MONTEL <lmontel@mandriva.com> 1.0-0.rc1.3
- Add requires

* Sun May 28 2006 Laurent MONTEL <lmontel@mandriva.com> 1.0-0.rc1.2
- Fix buildrequires

* Sun May 28 2006 Laurent MONTEL <lmontel@mandriva.com> 1.0-0.rc1.1
- 1.0rc1

* Tue May 23 2006 Laurent MONTEL <lmontel@mandriva.com> 0.9-1
- 0.9

* Sun May 21 2006 Laurent MONTEL <lmontel@mandriva.com> 0.8-1
- I don't understand how this package was created previously... => fix spec file

* Sun Apr 23 2006 Lev Givon <lev@mandriva.org> 0.3.2-1mdk
- Initial Mandriva package.