File pessulus.spec of Package pessulus

#
# spec file for package pessulus
#
# 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/
#

# norootforbuild


Name:           pessulus
Version:        2.30.4
Release:        8
Url:            http://live.gnome.org/Pessulus
Group:          System/GUI/GNOME
License:        GPLv2+
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
BuildRequires:  fdupes
BuildRequires:  intltool
BuildRequires:  python-gtk-devel
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
Requires:       python-bonobo
Requires:       python-gconf
Requires:       python-gtk
Recommends:     %{name}-lang
Suggests:       python-bugbuddy
%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
translation-update-upstream
%patch0 -p1

%build
autoreconf -f -i
%configure
make %{?jobs:-j%jobs}

%install
%makeinstall
%if 0%{?suse_version} <= 1120
%{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/*
%endif
%suse_update_desktop_file pessulus GNOME Lockdown X-SuSE-ControlCenter-LookAndFeel
%find_lang %{name} %{?no_lang_C}
%fdupes $RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%post
%desktop_database_post
%icon_theme_cache_post

%postun
%desktop_database_postun
%icon_theme_cache_postun

%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
openSUSE Build Service is sponsored by