File pessulus.spec of Package pessulus
#
# spec file for package pessulus (Version 2.28.0)
#
# Copyright (c) 2009 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/
#
# norootforbuild
Name: pessulus
BuildRequires: fdupes
BuildRequires: gnome-python-desktop
BuildRequires: intltool
BuildRequires: python-gtk-devel
BuildRequires: update-desktop-files
Version: 2.28.0
Release: 1
Url: http://live.gnome.org/Pessulus
Group: System/GUI/GNOME
License: GPL v2 or later
Summary: Lockdown editor for GNOME
Source: %{name}-%{version}.tar.bz2
# PATCH-FIX-OPENSUSE pessulus-gconf-path.patch vuntz@novell.com -- Fix detection of the mandatory source
Patch0: pessulus-gconf-path.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: gnome-python-desktop
Requires: %{name}-lang = %{version}
%py_requires
%if %suse_version <= 1110
%define python_sitelib %{py_sitedir}
%endif
%description
Pessulus is a lockdown editor for GNOME.
%lang_package
%prep
%setup -q
%patch0 -p1
%build
autoreconf -f -i
%configure
make %{?jobs:-j%jobs}
%install
%makeinstall
%suse_update_desktop_file pessulus GNOME Lockdown X-SuSE-ControlCenter-LookAndFeel
%find_lang %{name}
%fdupes $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr (-, root, root)
%doc AUTHORS COPYING ChangeLog HACKING NEWS README TODO
%{_bindir}/pessulus
%{_datadir}/applications/pessulus.desktop
%{_datadir}/pessulus
%{_datadir}/icons/hicolor/*x*/apps/*.png
%{_datadir}/icons/hicolor/scalable/apps/*.svg
%{python_sitelib}/Pessulus
%files lang -f %{name}.lang
%changelog