File gtk-dilatory.spec of Package gtk-dilatory
#
# spec file for package gtk-dilatory
#
# Copyright (c) 2014 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/
#
Name: gtk-dilatory
%if 0%{?suse_version} > 1200
%define HAS_GTK3 1
%else
%define HAS_GTK3 0
%endif
Version: 0.2
Release: 0
Summary: Run GTK+ Applications Slowly
License: LGPL-2.1+
Group: System/GUI/GNOME
Url: http://ftp.suse.com/pub/people/sbrabec/gtk-dilatory/
Source: %{name}-%{version}.tar.bz2
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gtk2-devel
BuildRequires: libtool
%if %HAS_GTK3
BuildRequires: gtk3-devel
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This is a small debugging utility, which allows to experience slow GTK+
applications and delays in event processing.
%prep
%setup -q
%build
mkdir gtk2 gtk3
cd gtk2
%if 0%{?suse_version} > 1200
%define _configure ../configure
%configure\
%else
ln -s ../configure
%configure\
%endif
--with-gtk2
make %{?_smp_mflags}
%if %HAS_GTK3
cd ../gtk3
%configure
make %{?_smp_mflags}
%endif
%install
cd gtk2
make DESTDIR=%{buildroot} install %{?_smp_mflags}
find %{buildroot} -type f -name "*.la" -delete -print
%if %HAS_GTK3
cd ../gtk3
make DESTDIR=%{buildroot} install %{?_smp_mflags}
find %{buildroot} -type f -name "*.la" -delete -print
%endif
%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README
%{_bindir}/*
%{_libdir}/gtk-2.0/modules/*.so
%if %HAS_GTK3
%{_libdir}/gtk-3.0/modules/*.so
%endif
%changelog