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
|
|
|
#
|
2012-02-10 20:36:55 +01:00
|
|
|
# Copyright (c) 2012 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/
|
|
|
|
#
|
|
|
|
|
2012-03-30 08:50:42 +02:00
|
|
|
|
2010-05-05 23:43:46 +02:00
|
|
|
Name: gtranslator
|
2012-06-20 18:15:29 +02:00
|
|
|
Version: 2.91.5
|
2012-02-10 20:36:55 +01:00
|
|
|
Release: 0
|
2010-05-05 23:43:46 +02:00
|
|
|
Summary: A GNOME po file editor with many bells and whistles
|
2012-02-10 20:36:55 +01:00
|
|
|
License: GPL-3.0+
|
2011-06-01 13:43:07 +02:00
|
|
|
Group: Development/Tools/Other
|
2012-02-10 20:36:55 +01:00
|
|
|
Url: http://gtranslator.sourceforge.net
|
2012-03-30 08:50:42 +02:00
|
|
|
Source: http://download.gnome.org/sources/gtranslator/2.91/%{name}-%{version}.tar.xz
|
2012-12-04 10:32:06 +01:00
|
|
|
# PATCH-FIX-UPSTREAM gtranslator-gdl362.patch dimstar@opensuse.org -- fix build with gdl 3.6.2, taken from git.
|
|
|
|
Patch0: gtranslator-gdl362.patch
|
2010-05-05 23:43:46 +02:00
|
|
|
BuildRequires: fdupes
|
|
|
|
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)
|
2012-05-17 19:36:19 +02:00
|
|
|
BuildRequires: pkgconfig(glib-2.0) >= 2.32.0
|
2011-06-01 13:43:07 +02:00
|
|
|
BuildRequires: pkgconfig(gsettings-desktop-schemas)
|
2012-05-17 19:36:19 +02:00
|
|
|
BuildRequires: pkgconfig(gtk+-3.0) >= 3.4.2
|
2012-03-30 08:50:42 +02:00
|
|
|
BuildRequires: pkgconfig(gtksourceview-3.0) >= 3.0.0
|
2011-10-03 08:57:40 +02:00
|
|
|
BuildRequires: pkgconfig(gtkspell-3.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)
|
2012-04-11 10:31:29 +02:00
|
|
|
BuildRequires: pkgconfig(libpeas-1.0) >= 1.2.0
|
2011-06-01 13:43:07 +02:00
|
|
|
BuildRequires: pkgconfig(libpeas-gtk-1.0)
|
2012-03-30 08:50:42 +02:00
|
|
|
BuildRequires: pkgconfig(libxml-2.0) >= 2.4.12
|
2010-10-12 10:09:35 +02:00
|
|
|
Requires: gsettings-desktop-schemas
|
2011-10-07 08:19:38 +02:00
|
|
|
Requires: iso-codes
|
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
|
|
|
|
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
|
2012-12-04 10:32:06 +01:00
|
|
|
%patch0 -p1
|
2011-02-16 15:12:52 +01:00
|
|
|
translation-update-upstream
|
2010-05-05 23:43:46 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
%configure \
|
|
|
|
--disable-static \
|
|
|
|
--disable-scrollkeeper \
|
2011-10-12 15:13:54 +02:00
|
|
|
--with-gtkspell3 \
|
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}/
|
|
|
|
%{_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.*
|
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/
|
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
|