2010-05-05 23:43:46 +02:00
|
|
|
#
|
2011-02-14 01:26:10 +01:00
|
|
|
# spec file for package gtranslator
|
2010-05-05 23:43:46 +02:00
|
|
|
#
|
2011-02-14 01:26:10 +01:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2010-05-05 23:43:46 +02:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: gtranslator
|
2011-06-15 11:20:40 +02:00
|
|
|
Version: 2.90.5
|
2011-06-01 13:43:07 +02:00
|
|
|
Release: 1
|
2010-08-14 00:05:30 +02:00
|
|
|
License: GPLv3+
|
2010-05-05 23:43:46 +02:00
|
|
|
Summary: A GNOME po file editor with many bells and whistles
|
|
|
|
Url: http://gtranslator.sourceforge.net
|
2011-06-01 13:43:07 +02:00
|
|
|
Group: Development/Tools/Other
|
2010-05-05 23:43:46 +02:00
|
|
|
Source: http://www.kabalak.net/gtranslator/download/releases/%{version}/%{name}-%{version}.tar.bz2
|
2011-07-01 14:16:04 +02:00
|
|
|
# PATCH-FIX-UPSTREAM gtranslator-libgda-5.0.patch bgo#652639 dimstar@opensuse.org -- Add support for libgda 5.0
|
|
|
|
Patch0: gtranslator-libgda-5.0.patch
|
2010-05-05 23:43:46 +02:00
|
|
|
BuildRequires: fdupes
|
2011-07-01 14:19:14 +02:00
|
|
|
# Needed by patch0
|
2011-07-01 14:16:04 +02:00
|
|
|
BuildRequires: gnome-common
|
2010-05-05 23:43:46 +02:00
|
|
|
BuildRequires: gnome-doc-utils-devel
|
|
|
|
BuildRequires: intltool
|
2011-07-01 14:19:14 +02:00
|
|
|
# Not using a pkgconfig() BuildRequires, to allow building against libgda 4.0 and 5.0
|
2011-07-01 14:16:04 +02:00
|
|
|
BuildRequires: libgda-devel
|
2011-06-01 13:59:29 +02:00
|
|
|
BuildRequires: translation-update-upstream
|
|
|
|
BuildRequires: update-desktop-files
|
2011-06-01 13:43:07 +02:00
|
|
|
BuildRequires: pkgconfig(gdict-1.0)
|
|
|
|
BuildRequires: pkgconfig(gdl-3.0)
|
|
|
|
BuildRequires: pkgconfig(glib-2.0)
|
|
|
|
BuildRequires: pkgconfig(gsettings-desktop-schemas)
|
|
|
|
BuildRequires: pkgconfig(gtk+-3.0)
|
|
|
|
BuildRequires: pkgconfig(gtksourceview-3.0)
|
|
|
|
BuildRequires: pkgconfig(gtkspell-2.0)
|
2011-06-01 13:59:29 +02:00
|
|
|
BuildRequires: pkgconfig(iso-codes)
|
2011-06-01 13:43:07 +02:00
|
|
|
BuildRequires: pkgconfig(json-glib-1.0)
|
|
|
|
BuildRequires: pkgconfig(libpeas-1.0)
|
|
|
|
BuildRequires: pkgconfig(libpeas-gtk-1.0)
|
|
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
2010-10-12 10:09:35 +02:00
|
|
|
Requires: gsettings-desktop-schemas
|
2011-02-13 21:57:12 +01:00
|
|
|
Recommends: %{name}-lang
|
2011-06-01 13:43:07 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-10-12 10:09:35 +02:00
|
|
|
%glib2_gsettings_schema_requires
|
2010-05-05 23:43:46 +02:00
|
|
|
|
|
|
|
%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 imminently.
|
|
|
|
|
|
|
|
%package devel
|
2011-06-01 13:43:07 +02:00
|
|
|
License: GPLv3+
|
2010-05-05 23:43:46 +02:00
|
|
|
Summary: A GNOME po file editor with many bells and whistles
|
|
|
|
Group: Development/Tools/Other
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
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 imminently.
|
|
|
|
|
|
|
|
%lang_package
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2011-07-01 14:16:04 +02:00
|
|
|
%patch0 -p1
|
2011-02-16 15:12:52 +01:00
|
|
|
translation-update-upstream
|
2010-05-05 23:43:46 +02:00
|
|
|
|
|
|
|
%build
|
2011-07-01 14:16:04 +02:00
|
|
|
# Required by patch0
|
|
|
|
NOCONFIGURE=1 gnome-autogen.sh
|
2010-05-05 23:43:46 +02:00
|
|
|
%configure \
|
|
|
|
--disable-static \
|
|
|
|
--disable-scrollkeeper \
|
|
|
|
--with-gtkspell \
|
2011-07-01 14:16:04 +02:00
|
|
|
--with-dictionary \
|
|
|
|
--with-gda=$(rpm -q --provides $(rpm -q --whatprovides libgda-devel) | grep "pkgconfig(libgda-[45].0)" | cut -b 18-20)
|
2011-06-01 13:43:07 +02:00
|
|
|
%{__make} %{?_smp_mflags}
|
2010-05-05 23:43:46 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
%makeinstall
|
2011-06-01 13:43:07 +02:00
|
|
|
find %{buildroot}%{_libdir} -type f -name "*.la" -delete -print
|
2010-05-05 23:43:46 +02:00
|
|
|
%suse_update_desktop_file %{name}
|
2011-02-13 21:57:12 +01:00
|
|
|
%find_lang %{name} %{?no_lang_C}
|
2011-06-01 13:43:07 +02:00
|
|
|
%fdupes %{buildroot}
|
2010-05-05 23:43:46 +02:00
|
|
|
|
|
|
|
%clean
|
|
|
|
%{__rm} -rf %{buildroot}
|
|
|
|
|
2010-10-12 10:09:35 +02:00
|
|
|
%post
|
2011-06-01 13:43:07 +02:00
|
|
|
/sbin/ldconfig
|
2010-10-12 10:09:35 +02:00
|
|
|
%glib2_gsettings_schema_post
|
2011-02-13 21:57:12 +01:00
|
|
|
%desktop_database_post
|
|
|
|
%icon_theme_cache_post
|
2010-10-12 10:09:35 +02:00
|
|
|
|
|
|
|
%postun
|
2011-06-01 13:43:07 +02:00
|
|
|
/sbin/ldconfig
|
2010-10-12 10:09:35 +02:00
|
|
|
%glib2_gsettings_schema_postun
|
2011-02-13 21:57:12 +01:00
|
|
|
%desktop_database_postun
|
|
|
|
%icon_theme_cache_postun
|
2010-10-12 10:09:35 +02:00
|
|
|
|
|
|
|
%files
|
2010-05-05 23:43:46 +02:00
|
|
|
%defattr(-, root, root, 0755)
|
2010-08-10 02:35:02 +02:00
|
|
|
%doc AUTHORS ChangeLog COPYING NEWS README THANKS
|
2011-02-13 21:57:12 +01:00
|
|
|
%dir %{_datadir}/gnome/
|
|
|
|
%dir %{_datadir}/gnome/help/
|
|
|
|
%dir %{_datadir}/gnome/help/%{name}/
|
|
|
|
%doc %{_datadir}/gnome/help/%{name}/C/
|
|
|
|
%dir %{_datadir}/omf/
|
|
|
|
%dir %{_datadir}/omf/%{name}/
|
|
|
|
%doc %{_datadir}/omf/%{name}/%{name}-C.omf
|
2010-05-05 23:43:46 +02:00
|
|
|
%doc %{_mandir}/man?/*
|
2010-10-12 10:09:35 +02:00
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{_libdir}/%{name}/
|
2011-06-01 13:43:07 +02:00
|
|
|
%{_libdir}/libgtranslator-private.so.0*
|
2010-10-12 10:09:35 +02:00
|
|
|
%{_datadir}/%{name}/
|
2010-05-05 23:43:46 +02:00
|
|
|
%{_datadir}/applications/*.desktop
|
2010-10-12 10:09:35 +02:00
|
|
|
%{_datadir}/glib-2.0/schemas/*.gschema.xml
|
2010-05-05 23:43:46 +02:00
|
|
|
%{_datadir}/icons/hicolor/*/apps/gtranslator.*
|
|
|
|
%{_datadir}/pixmaps/%{name}/
|
2011-06-01 13:59:29 +02:00
|
|
|
# .gir file goes to -devel package
|
|
|
|
%exclude %{_datadir}/%{name}/gir-1.0/
|
2010-05-05 23:43:46 +02:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-, root, root)
|
2011-06-01 13:43:07 +02:00
|
|
|
%{_includedir}/gtranslator-3.0/
|
|
|
|
%{_libdir}/libgtranslator-private.so
|
2010-05-05 23:43:46 +02:00
|
|
|
%{_libdir}/pkgconfig/gtranslator.pc
|
2011-06-01 13:59:29 +02:00
|
|
|
%doc %{_datadir}/gtk-doc/html/%{name}/
|
|
|
|
%{_datadir}/%{name}/gir-1.0/
|
2010-05-05 23:43:46 +02:00
|
|
|
|
|
|
|
%files lang -f %{name}.lang
|
|
|
|
|
|
|
|
%changelog
|