gtkperf-0.40-1kkr2009.0.spec

%define name             gtkperf
%define version          0.40
%define release          %mkrel 1


Summary:        Application designed to test GTK+ performance
Summary(ja):    GTK+のパフォーマンスをテストするために設計されたアプリケーション
Name:           %{name}
Version:        %{version}
Release:        %{release}
Source0:        http://prdownloads.sourceforge.net/gtkperf/%{name}_%{version}.tar.gz
  # Size  : 402,982
  # MD5   : 4331dde4bb83865e15482885fcb0cc53
  # SHA-1 : 3656599ebcf781c3ba93aa2ae7a197c1dca15183
Source1:        %{name}.desktop
  # Size  : 301
  # MD5   : 351c7486833d17cab992bdbcfc29adfd
  # SHA-1 : 4cb726e72bf4c4b3d6ca1276f43c0a6aa1c28e77
URL:            http://gtkperf.sourceforge.net/
License:        GPLv2
Group:          System/X11
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-buildroot
Requires:       gtk2
BuildRequires:  gtk2-devel


%description
GtkPerf is an application designed to test GTK+ performance. The point is to create common testing platform to run predefined GTK+ widgets (opening comboboxes, toggling buttons, scrolling text yms.) and this way define the speed of device/platform.

%description -l ja
GtkPerfはGTK+のパフォーマンスをテストするために設計されたアプリケーションです。
定義済みのGTK+ウィジェットを動かす(コンボボックスを開いたり、ボタンをトグルしたり、テキストをスクロールしたりなど)ための共通したテストプラットフォームを作成するのが狙いで、デバイス/プラットフォームの速度を明確にします。


%prep
%setup -q -n %{name}
# install docs manually
%{__sed} -i 's:$(gtkperfdoc_DATA)::' Makefile.in


%build
%configure2_5x CC="%{__cc} %{optflags}"
%make


%install
%{__rm} %{buildroot} -fr
%makeinstall
%{__install} -D -p -m 644 %{SOURCE1} %{buildroot}/%{_datadir}/applications/%{name}.desktop
%{__lzma} AUTHORS ChangeLog README


%if %{mdkversion} < 200900
%post
%update_desktop_database
%update_mime_database
%endif


%if %{mdkversion} < 200900
%postun
%update_desktop_database
%clean_mime_database
%endif


%clean
%{__rm} %{buildroot} -fr


%files
%defattr(-, root, root)
%{_bindir}/gtkperf
%{_datadir}/pixmaps/duck.png
%{_datadir}/applications/%{name}.desktop
%doc AUTHORS* ChangeLog* README*


%changelog
* Thu Sep 24 2009 kakurasan <kakurasan AT gmail DOT com> 0.40-1kkr2009.0
- initial build