Sophie

Sophie

distrib > * > 2008.0 > x86_64 > by-pkgid > 9952e510b5a024c9da696ff400b23fd0 > files > 2

kdbus-0.8.6-5mdv2007.0.src.rpm

%define name	kdbus
%define version 0.8.6
%define release %mkrel 5

Name:		%name
Summary:	Kdbus is a D-BUS service browser for KDE. Like kdcop, but for D-BUS instead
Version:	%version
Release:	%release
License:	GPL
Group:		Networking/WWW
Source0:	http://rohanpm.net/files/%name-%version.tar.bz2
BuildRoot:	%{_tmppath}/%{name}-root
URL:		http://rohanpm.net/kdbus
BuildRequires:  kdelibs-devel

%description
kdbus is a D-BUS service browser for KDE. Like kdcop, but for D-BUS instead.

%prep
%setup -q
%build
%configure --disable-rpath
%make 


%install
rm -rf %{buildroot}
%makeinstall 

#Fix dandling symlinks
mkdir -p ${RPM_BUILD_ROOT}/usr/share/doc/HTML/en/common
rm -f ${RPM_BUILD_ROOT}/usr/share/doc/HTML/en/kdbus/common 
ln -s ../common ${RPM_BUILD_ROOT}/usr/share/doc/HTML/en/kdbus/common

install -d $RPM_BUILD_ROOT%{_menudir}
kdedesktop2mdkmenu.pl %{name} "System/Configuration/Other" $RPM_BUILD_ROOT%{_datadir}/applications/kde/kdbus.desktop $RPM_BUILD_ROOT%{_menudir}/%{name}

%clean
rm -rf %{buildroot}


%files 
%defattr(-,root,root,0755)
%{_bindir}/kdbus
%_menudir/*
%{_datadir}/applications/kde/kdbus.desktop
%{_datadir}/apps/kdbus/kdbusui.rc

%dir %{_docdir}/HTML/en/kdbus
%{_docdir}/HTML/en/kdbus/common
%{_docdir}/HTML/en/kdbus/*.bz2
%{_docdir}/HTML/en/kdbus/*.docbook

%{_iconsdir}/hicolor/128x128/apps/kdbus.png
%{_iconsdir}/hicolor/16x16/apps/kdbus.png
%{_iconsdir}/hicolor/22x22/apps/kdbus.png
%{_iconsdir}/hicolor/32x32/apps/kdbus.png
%{_iconsdir}/hicolor/48x48/apps/kdbus.png
%{_iconsdir}/hicolor/64x64/apps/kdbus.png


%post
%{update_menus}
%if %mdkversion > 200600
%update_icon_cache hicolor
%endif
 
%postun
%{clean_menus}
%if %mdkversion > 200600
%clean_icon_cache hicolor
%endif


%changelog
* Fri Aug 04 2006 Nicolas Lécureuil <neoclust@mandriva.org>
+ 2006-08-04 13:04:48 (51734)
- Rebuild for new DBUS

* Wed Jun 21 2006 Nicolas Lécureuil <neoclust@mandriva.org>
+ 2006-06-21 22:25:51 (37796)
- Increase release
- Fix menu
- Use Macro (for icons)

* Tue Jun 20 2006 Nicolas Lécureuil <neoclust@mandriva.org>
+ 2006-06-20 23:48:12 (37705)
- Increase release
- Rebuild against new menu

* Tue Jun 20 2006 Nicolas Lécureuil <neoclust@mandriva.org>
+ 2006-06-20 23:45:18 (37703)
- import kdbus-0.8.6-2mdk

* Sat May 20 2006 Laurent MONTEL <lmontel@mandriva.com> 0.8.6-2
- Add menu entry

* Mon Feb 20 2006 Nicolas Lécureuil <neoclust@mandriva.org> 0.8.6-1mdk
- New release 0.8.6

* Thu Feb 16 2006 Nicolas Lécureuil <neoclust@mandriva.org> 0.8.5-2mdk
- Add BuildRequires

* Tue Feb 14 2006 Nicolas Lécureuil <neoclust@mandriva.org> 0.8.5-1mdk
- First Mandriva release