]> git.pld-linux.org Git - packages/gtranslator.git/blobdiff - gtranslator.spec
- remove " (Rarian version..." from "scrollkeeper-config --version" output
[packages/gtranslator.git] / gtranslator.spec
index 914b16467ccfd1dcd91f405b2d9da38d63ad281b..04ac9be0d4625d325ee8c7c5b1730db1e4393dba 100644 (file)
@@ -1,98 +1,85 @@
-# $Revision: 1.1 $
-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: gal-devel >= 0.10.99
-BuildRequires: gnome-vfs-devel >= 0.4.1
-BuildRequires: imlib-devel
-BuildRequires: GConf-devel >= 1.0
-BuildRequires:  glib-devel >= 1.2.8
-BuildRequires:  gtk+-devel >= 1.2.8
-BuildRequires: gnome-libs-devel >= 1.2.8
-BuildRequires: ORBit-devel >= 0.5.3
-BuildRequires: libxml-devel => 1.8.9
-BuildRequires: gnome-doc-tools
-BuildRequires: docbook-utils
-BuildRequires: docbook-dtd31-sgml
+Summary:       gtranslator - a comfortable po file editor with many bells and whistles
+Summary(pl.UTF-8):     gtranslator - wygodny edytor plików po z różnymi wodotryskami
+Name:          gtranslator
+Version:       1.1.7
+Release:       1
+Epoch:         1
+License:       GPL
+Group:         Development/Tools
+Source0:       http://ftp.gnome.org/pub/GNOME/sources/gtranslator/1.1/%{name}-%{version}.tar.bz2
+# Source0-md5: 47531195b74b22a6284dad609377cbb0
+Patch0:                %{name}-configure_in.patch
+Patch1:                %{name}-locale_names.patch
+URL:           http://gtranslator.sourceforge.net/
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: gettext-devel
+BuildRequires: gnome-common >= 2.8.0
+BuildRequires: gnome-vfs2-devel >= 2.0.0
+BuildRequires: gtk+2-devel >= 1:2.0.0
+BuildRequires: gtkspell-devel >= 2.0.2
+BuildRequires: intltool
+BuildRequires: libbonoboui-devel >= 2.0.0
+BuildRequires: libgnomeui-devel >= 2.0.0
+BuildRequires: libxml2-devel >= 2.4.12
+BuildRequires: pkgconfig
 BuildRequires: scrollkeeper
-Prereq:                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.
+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. 
-Dostarcza du¿o u¿ytecznych funkcji u³atwiaj±cych pracê przy t³umazeniach
-plików po.
+%description -l pl.UTF-8
+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
+%patch0 -p1
+%patch1 -p1
+
+mv -f po/{no,nb}.po
+sed -i 's/Categories=.*/Categories=GTK;GNOME;Development;Translation;/' data/desktop/gtranslator.desktop.in
 
 %build
-rm -f missing
-%{__libtoolize}
-%{__gettextize}
-xml-i18n-toolize --copy --force
-aclocal -I macros
-%{__autoconf}
+%{__glib_gettextize}
+%{__intltoolize}
+%{__aclocal}
+%{__autoheader}
 %{__automake}
+%{__autoconf}
 %configure
 %{__make}
 %{__make} check
 
 %install
+rm -rf $RPM_BUILD_ROOT
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT \
-       Developmentdir=%{__applnkdir}/Development \
-       omf_dest_dir=%{_omf_dest_dir}/%{name}
-
-%post
-scrollkeeper-update
+       Applicationdir=%{_desktopdir}
 
-%postun
-scrollkeeper-update
+%find_lang %{name} --with-gnome
 
 %clean
-[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
+rm -rf $RPM_BUILD_ROOT
 
-%files
-%defattr(0555, bin, bin)
-%doc AUTHORS COPYING ChangeLog DEPENDS INSTALL NEWS README THANKS TODO
-%attr(755,root,root) %{_bindir}/*
-%attr(755,root,root) %{_datadir}/gtranslator/scripts/*
-
-%defattr(0444, bin, bin, 0555)
-%{_datadir}/gtranslator/colorschemes
-%{_omf_dest_dir}/%{name}/*
-
-%defattr(0444,root,root, 0555)
-%{_mandir}/man1/gtranslator*
-%{_mandir}/man1/pozilla*
-%{_datadir}/gnome/help/gtranslator
+%post   -p /usr/bin/scrollkeeper-update
+%postun -p /usr/bin/scrollkeeper-update
 
-%defattr(0755, bin, bin)
-%{_libdir}/gtranslator/backends/*/*.la
-%{_libdir}/gtranslator/backends/*/*.so
-
-%defattr(-, root, root)
-%{_libdir}/gtranslator/backends/*.xml
-%{_datadir}/gtranslator/etspecs/*etspec
-%{_datadir}/gnome/apps/Development/gtranslator*
-%{_datadir}/pixmaps/*.png
-%{_datadir}/pixmaps/gtranslator
-%{_datadir}/mime-info/gtranslator.*
-%{_datadir}/locale/*/LC_MESSAGES/gtranslator.mo
+%files -f %{name}.lang
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog DEPENDS HACKING NEWS README THANKS TODO
+%attr(755,root,root) %{_bindir}/*
+%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}
This page took 0.037068 seconds and 4 git commands to generate.