File devilspie.spec of Package devilspie

# spec file for package devilspie
# Copyright (c) 2011 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

Name:           devilspie
Summary:        Window-Matching Utility
Version:        0.22
Release:        15
License:        GPL-2.0+
Group:          System/X11/Utilities
Source0:        %{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM devilspie-no-disable-deprecated.patch bgo#636890 -- Accept usage of deprecated API. Not really the right fix for upstream, though. But certainly good enough for a package.
Patch0:         devilspie-no-disable-deprecated.patch
# feel free to improve following patch and please upstream it
Patch1:         devilspie-no-copy-dt-needed-entries.patch
BuildRequires:  fdupes
BuildRequires:  pkgconfig(libwnck-1.0)
BuildRequires:  translation-update-upstream
# added because of autoreconf -fi (GNOME_COMPILE_WARNINGS macro)
BuildRequires:  gnome-common
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       %{name}-lang = %{version}

Devil's Pie can be configured to detect windows as they are created and
match the window to a set of rules. If the window matches the rules, it
can perform a series of actions on that window.

%setup -q
%patch0 -p1
%patch1 -p1

# autoreconf added because of no-copy-dt-needed-entries.patch
autoreconf -fi
make %{?_smp_mflags}

mkdir -p %{buildroot}%{_sysconfdir}/devilspie
%find_lang %{name}
%fdupes %{buildroot}


%files lang -f %{name}.lang