File devilspie.spec of Package devilspie

#
# spec file for package devilspie (Version 0.18)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

Name:           devilspie
BuildRequires:  fdupes gnutls-devel gob2 libglade2-devel libgnomeprintui-devel libgnomeui-devel libwnck-devel libxslt perl-XML-Parser update-desktop-files
Summary:        Window-Matching Utility
Version:        0.18
Release:        112
License:        GPL v2 or later
Group:          System/X11/Utilities
Source0:        %{name}-%{version}.tar.bz2
Url:            http://www.burtonini.com/blog/computers/devilspie
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if %suse_version > 1020
Requires:       %{name}-lang = %{version}
%endif
AutoReq:        On

%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.



Authors:
--------
    Ross Burton <ross@burtonini.com>

%lang_package
%prep
%setup -q

%build
CFLAGS=$RPM_OPT_FLAGS ./configure --prefix=%_prefix --mandir=%_mandir --sysconfdir=/etc/devilspie
make 

%install
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/devilspie
make DESTDIR=$RPM_BUILD_ROOT install
%find_lang %{name}
%if %suse_version > 1020
%fdupes $RPM_BUILD_ROOT 
%endif

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, games)
%doc README TODO NEWS INSTALL ChangeLog COPYING AUTHORS
%_sysconfdir/%name
%_bindir/*
%_mandir/man1/*

%files lang -f %{name}.lang
%defattr(-, root, games)
%changelog
* Thu Oct 11 2007 - sbrabec@suse.cz
- Removed bogus dependency on mDNSResponder.
* Wed Aug 15 2007 - ro@suse.de
- add filelist section for lang subpackage
* Tue Aug 07 2007 - mauro@suse.de
- Split out a -lang subpackage
- Added %%fdupes stuff
* Thu Oct 26 2006 - hvogel@suse.de
- Update to 0.18
  * Port the opacity action
  * Add unminimise action
  * Fix (geometry) to handle negative offsets
  * Add sticky action
  * Add window_property action
  * Add unmaximise action
  * Add set viewport action
- Submitted to SP1 per FATE #301329
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Jan 11 2006 - hvogel@suse.de
- Update to version 0.16
* Wed Nov 02 2005 - dmueller@suse.de
- don't build as root
* Thu May 05 2005 - gekker@suse.de
- Update to version 0.10 [GNOME 2.10].
* Mon Mar 07 2005 - gekker@suse.de
- add patch to fix libwnck API breakage
* Thu Feb 10 2005 - hvogel@suse.de
- update to version 0.8
* Mon Dec 13 2004 - hvogel@suse.de
- update to version 0.7
* Tue Jun 29 2004 - hvogel@suse.de
- update to version 0.4
* Mon Feb 02 2004 - hvogel@suse.de
- Initial package, version 0.3.1
openSUSE Build Service is sponsored by