-# $Revision: 1.2 $
-Summary: gtranslator is a comfortable po file editor with many bells and whistles
-Summary(pl): gtranslator jest wygodnym edytorem plików po z ró¿nymi wodotryskami
-Name: gtranslator
-Version: 0.43
-Release: 1
-License: GPL
-Vendor: GNOME Project
-Group: Development/Tools
-Source: http://www.gtranslator.org/download/releases/%{version}/%{name}-%{version}.tar.gz
-URL: http://www.gtranslator.org/
-BuildRequires: GConf-devel >= 1.0
-BuildRequires: ORBit-devel >= 0.5.3
-BuildRequires: docbook-dtd31-sgml
-BuildRequires: docbook-utils
-BuildRequires: gal-devel >= 0.10.99
-BuildRequires: glib-devel >= 1.2.8
-BuildRequires: gnome-doc-tools
-BuildRequires: gnome-libs-devel >= 1.2.8
-BuildRequires: gnome-print-devel
-BuildRequires: gnome-vfs-devel >= 0.4.1
-BuildRequires: gtk+-devel >= 1.2.8
-BuildRequires: imlib-devel
+Summary: gtranslator - a comfortable po file editor with many bells and whistles
+Summary(pl): gtranslator - wygodny edytor plików po z ró¿nymi wodotryskami
+Name: gtranslator
+Version: 1.0.1
+Release: 1
+Epoch: 1
+License: GPL
+Vendor: GNOME Project
+Group: Development/Tools
+Source0: http://dl.sourceforge.net/gtranslator/%{name}-%{version}.tar.gz
+# Source0-md5: 7ea83b138063fa4d82e11f0dd4a6b341
+Patch0: %{name}-configure_in.patch
+URL: http://gtranslator.sf.net/
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: gnome-common
+BuildRequires: gnome-vfs2-devel
BuildRequires: intltool
-BuildRequires: libxml-devel => 1.8.9
+BuildRequires: libbonoboui-devel
+BuildRequires: libgnomeui-devel
+BuildRequires: libxml2-devel >= 2.4.12
BuildRequires: scrollkeeper
-Requires(post,postun): scrollkeeper
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%define _prefix /usr/X11R6
-%define _omf_dest_dir %(scrollkeeper-config --omfdir)
-
%description
gtranslator is a comfortable po file editor with many bells and
whistles. It features many useful function which ease the work of
translators of po files immenantly.
%description -l pl
-gtranslator jest wygodnym edytorem plików po z wielma wodotryskami.
+gtranslator jest wygodnym edytorem plików po z wieloma wodotryskami.
Dostarcza du¿o u¿ytecznych funkcji u³atwiaj±cych pracê przy
t³umaczeniach plików po.
%prep
%setup -q
+%patch -p1
%build
-rm -f missing
-%{__libtoolize}
-%{__gettextize}
-xml-i18n-toolize --copy --force
-aclocal -I macros
-%{__autoconf}
+glib-gettextize --copy --force
+intltoolize
+%{__aclocal} -I /usr/share/aclocal/gnome2-macros
+%{__autoheader}
%{__automake}
+%{__autoconf}
%configure
%{__make}
%{__make} check
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT \
- Developmentdir=%{__applnkdir}/Development \
- omf_dest_dir=%{_omf_dest_dir}/%{name}
+ Applicationdir=%{_desktopdir}
-%find_lang %{name}
+%find_lang %{name} --with-gnome
%clean
rm -rf $RPM_BUILD_ROOT
-%post
-scrollkeeper-update
-
-%postun
-scrollkeeper-update
+%post -p /usr/bin/scrollkeeper-update
+%postun -p /usr/bin/scrollkeeper-update
%files -f %{name}.lang
%defattr(644,root,root,755)
-%doc AUTHORS ChangeLog DEPENDS INSTALL NEWS README THANKS TODO
+%doc AUTHORS ChangeLog DEPENDS HACKING NEWS README THANKS TODO
%attr(755,root,root) %{_bindir}/*
-%dir %{_libdir}/gtranslator
-%dir %{_libdir}/gtranslator/backends
-%{_libdir}/gtranslator/backends/*.xml
-%attr(755,root,root) %{_libdir}/gtranslator/backends/docbook
-%attr(755,root,root) %{_libdir}/gtranslator/backends/text
-%dir %{_datadir}/gtranslator
-%{_datadir}/gtranslator/colorschemes
-%dir %{_datadir}/gtranslator/etspecs
-%{_datadir}/gtranslator/etspecs/*etspec
-%attr(755,root,root) %{_datadir}/gtranslator/scripts
+%dir %{_datadir}/%{name}
+%{_datadir}/%{name}/colorschemes
+%{_datadir}/%{name}/dtd
+%attr(755,root,root) %{_datadir}/%{name}/scripts
+%{_datadir}/mime-info/*
+%{_pixmapsdir}/*
+%{_desktopdir}/*.desktop
+%{_mandir}/man1/*
%{_omf_dest_dir}/%{name}
-%{_datadir}/mime-info/gtranslator.*
-%{_pixmapsdir}/*.png
-%{_pixmapsdir}/gtranslator
-%{_datadir}/gnome/help/gtranslator
-%{_datadir}/gnome/apps/Development/gtranslator*
-%{_mandir}/man1/gtranslator*
-%{_mandir}/man1/pozilla*