Summary: Lockdown editor for GNOME
-Summary(pl): Edytor blokad dla GNOME
+Summary(pl.UTF-8): Edytor blokad dla GNOME
Name: pessulus
-Version: 0.10.4
+Version: 2.24.0
Release: 1
License: GPL v2
-Group: Applications
-Source0: http://ftp.gnome.org/pub/GNOME/sources/pessulus/0.10/%{name}-%{version}.tar.gz
-# Source0-md5: bd3a3c8e022669f6120ef469c5601359
-Patch0: %{name}-desktop.patch
-URL: http://www.gnome.org/~vuntz/pessulus/
-BuildRequires: GConf2-devel >= 2.14.0
-BuildRequires: automake
-BuildRequires: intltool >= 0.35
-BuildRequires: python-gnome-devel >= 2.15.4
+Group: X11/Applications
+Source0: http://ftp.gnome.org/pub/GNOME/sources/pessulus/2.24/%{name}-%{version}.tar.bz2
+# Source0-md5: 5cbdb0f6e97444a2ddb93f40ad10df90
+URL: http://live.gnome.org/Pessulus
+BuildRequires: GConf2-devel >= 2.24.0
+BuildRequires: autoconf >= 2.53
+BuildRequires: automake >= 1:1.7
+BuildRequires: gettext-devel
+BuildRequires: intltool >= 0.40.0
+BuildRequires: pkgconfig
+BuildRequires: python-gnome-desktop-devel >= 2.24.0
+BuildRequires: python-gnome-devel >= 2.22.0
+BuildRequires: python-pygtk-devel >= 2:2.12.0
%pyrequires_eq python-modules
-Requires: python-gnome >= 2.15.4
+BuildRequires: rpmbuild(macros) >= 1.311
+Requires(post,postun): gtk+2
+Requires: python-gnome-desktop >= 2.24.0
+Requires: python-gnome-gconf >= 2.22.0
+# sr@Latn vs. sr@latin
+Conflicts: glibc-misc < 6:2.7
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
can not change these settings. Use of pessulus can be useful on
computers that are open to use by everyone, e.g. in an internet cafe.
-%description -l pl
+%description -l pl.UTF-8
Pessulus jest napisanym w pythonie edytorem blokad dla GNOME.
-Umo¿liwia administratorowi wprowadzenie obowi±zkowych ustawieñ w
-GConfie, które nie bêd± mog³y byæ zmienione przez u¿ytkownika. U¿ycie
-pessulusa mo¿e byæ przydatne na ogólnodostêpnych komputerach, np. w
+Umożliwia administratorowi wprowadzenie obowiązkowych ustawień w
+GConfie, które nie będą mogły być zmienione przez użytkownika. Użycie
+pessulusa może być przydatne na ogólnodostępnych komputerach, np. w
kawiarenkach internetowych.
%prep
%setup -q
-%patch0 -p1
%build
-cp -f /usr/share/automake/config.sub .
+%{__intltoolize}
+%{__aclocal}
+%{__autoconf}
+%{__automake}
%configure
%{__make}
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
-rm -f $RPM_BUILD_ROOT%{py_sitedir}/Pessulus/*.py
+# not supported
+rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/bal
+
+%py_postclean
%find_lang %{name}
%clean
rm -rf $RPM_BUILD_ROOT
+%post
+%update_icon_cache hicolor
+
+%postun
+%update_icon_cache hicolor
+
%files -f %{name}.lang
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog NEWS README TODO
-%attr(755,root,root) %{_bindir}/*
-%dir %{py_sitedir}/Pessulus
-%{py_sitedir}/Pessulus/*.py[co]
+%attr(755,root,root) %{_bindir}/pessulus
+%dir %{py_sitescriptdir}/Pessulus
+%{py_sitescriptdir}/Pessulus/*.py[co]
+%{_iconsdir}/hicolor/*/*/*
%{_datadir}/pessulus
%{_desktopdir}/*.desktop