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 http://bugs.opensuse.org/
#
Name: devilspie
Summary: Window-Matching Utility
Version: 0.22
Release: 15
License: GPLv2+
Group: System/X11/Utilities
Url: http://www.burtonini.com/blog/computers/devilspie
Source0: %{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM devilspie-no-disable-deprecated.patch bgo#636890 vuntz@opensuse.org -- 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}
%description
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.
%lang_package
%prep
%setup -q
translation-update-upstream
%patch0 -p1
%patch1 -p1
%build
# autoreconf added because of no-copy-dt-needed-entries.patch
autoreconf -fi
%configure
make %{?_smp_mflags}
%install
mkdir -p %{buildroot}%{_sysconfdir}/devilspie
%makeinstall
%find_lang %{name}
%fdupes %{buildroot}
%files
%defattr(-,root,root)
%doc README TODO NEWS INSTALL ChangeLog COPYING AUTHORS
%{_sysconfdir}/%name
%{_bindir}/*
%{_mandir}/man?/*.*
%files lang -f %{name}.lang
%changelog