|
@@ -1,45 +1,65 @@
|
|
|
Summary: A GNOME po file editor with many bells and whistles.
|
|
|
Summary(ja): GNOME po ファイルエディタ
|
|
|
Name: gtranslator
|
|
|
-Version: 1.9.9
|
|
|
+Version: 1.9.12
|
|
|
Release: 1%{?_dist_release}
|
|
|
License: GPL
|
|
|
Group: Applications/Development
|
|
|
URL: http://www.gtranslator.org/
|
|
|
Source: http://ftp.gnome.org/pub/GNOME/sources/gtranslator/1.9/%{name}-%{version}.tar.bz2
|
|
|
-Patch0: po_header_set_field_wrapper.patch
|
|
|
+#Patch0: po_header_set_field_wrapper.patch
|
|
|
|
|
|
Vendor: Project Vine
|
|
|
Distribution: Vine Linux
|
|
|
Packager: inagaki,yasumichi
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
-BuildRequires: glib2-devel >= 2.15.5
|
|
|
+
|
|
|
+BuildRequires: libxml2-devel >= 2.4.12
|
|
|
+BuildRequires: glib2-devel >= 2.25.10
|
|
|
+BuildRequires: gtk2-devel >= 2.21.5
|
|
|
BuildRequires: gtksourceview2-devel >= 2.4.0
|
|
|
-BuildRequires: GConf2-devel >= 2.18.0
|
|
|
-BuildRequires: gdl-devel >= 0.6.0
|
|
|
-BuildRequires: gtkspell-devel >= 2.0.0
|
|
|
-BuildRequires: gucharmap-devel
|
|
|
-BuildRequires: apr-devel apr-util-devel neon-devel
|
|
|
-BuildRequires: subversion-devel
|
|
|
+BuildRequires: gdl-devel >= 2.26.0
|
|
|
+#BuildRequires: apr-devel apr-util-devel neon-devel
|
|
|
+#BuildRequires: subversion-devel
|
|
|
|
|
|
-BuildRequires: gnome-doc-utils >= 0.3.2
|
|
|
-BuildRequires: libuuid-devel
|
|
|
+#BuildRequires: libuuid-devel
|
|
|
BuildRequires: unique-devel
|
|
|
+BuildRequires: libgda-devel
|
|
|
|
|
|
-Requires(post): scrollkeeper GConf2
|
|
|
-Requires(pre): GConf2
|
|
|
-Requires(preun): GConf2
|
|
|
+Requires(post): scrollkeeper
|
|
|
Requires(postun): scrollkeeper
|
|
|
|
|
|
-Requires: glib2 >= 2.15.5
|
|
|
+Requires: libxml2 >= 2.4.12
|
|
|
+Requires: glib2 >= 2.25.10
|
|
|
+Requires: gtk2 >= 2.21.5
|
|
|
Requires: gtksourceview2 >= 2.4.0
|
|
|
-Requires: gdl >= 0.6.0
|
|
|
-Requires: gtkspell >= 2.0.0
|
|
|
+Requires: gdl >= 2.26.0
|
|
|
+#Requires: apr apr-util neon
|
|
|
+#Requires: subversion
|
|
|
+#Requires: libuuid
|
|
|
+Requires: libgda
|
|
|
+
|
|
|
+# for documentation
|
|
|
+BuildRequires: gtk-doc
|
|
|
+BuildRequires: gnome-doc-utils >= 0.20.2
|
|
|
+
|
|
|
+# for charmap plugin
|
|
|
Requires: gucharmap
|
|
|
-Requires: apr apr-util neon
|
|
|
-Requires: subversion
|
|
|
-Requires: libuuid
|
|
|
+BuildRequires: gucharmap-devel
|
|
|
+
|
|
|
+# for open-tran plugin
|
|
|
+Requires: libsoup
|
|
|
+BuildRequires: libsoup-devel
|
|
|
+
|
|
|
+# for dictionary plugin
|
|
|
+Requires: gnome-utils
|
|
|
+BuildRequires: gnome-utils
|
|
|
+
|
|
|
+# for spell support
|
|
|
+Requires: gtkspell >= 2.0.2
|
|
|
+BuildRequires: gtkspell-devel >= 2.0.2
|
|
|
+
|
|
|
|
|
|
%description
|
|
|
gtranslator is a comfortable po file editor with many bells and whistles.
|
|
@@ -66,15 +86,13 @@ applications which will use %{name}.
|
|
|
%configure --disable-static \
|
|
|
--disable-debug \
|
|
|
--disable-scrollkeeper \
|
|
|
- --disable-schemas-install
|
|
|
+ --disable-schemas-compile
|
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
%install
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
-export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
|
|
|
-%makeinstall
|
|
|
-unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
|
|
|
+make DESTDIR=$RPM_BUILD_ROOT UPDATE_DESKTOP= install
|
|
|
|
|
|
%find_lang %{name}
|
|
|
|
|
@@ -82,37 +100,28 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/gtranslator/*/*.la
|
|
|
|
|
|
%post
|
|
|
scrollkeeper-update -q > /dev/null 2>&1 || :
|
|
|
-export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
|
|
|
-gconftool-2 --makefile-install-rule \
|
|
|
- %{_sysconfdir}/gconf/schemas/gtranslator.schemas >& /dev/null ||:
|
|
|
-
|
|
|
-%pre
|
|
|
-if [ "$1" -gt 1 ]; then
|
|
|
-export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
|
|
|
-gconftool-2 --makefile-uninstall-rule \
|
|
|
- %{_sysconfdir}/gconf/schemas/gtranslator.schemas >& /dev/null ||:
|
|
|
-fi
|
|
|
|
|
|
-%preun
|
|
|
-if [ "$1" -eq 0 ]; then
|
|
|
-export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
|
|
|
-gconftool-2 --makefile-uninstall-rule \
|
|
|
- %{_sysconfdir}/gconf/schemas/gtranslator.schemas >& /dev/null ||:
|
|
|
-fi
|
|
|
+%posttrans
|
|
|
+glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
|
|
|
+update-desktop-database %{_datadir}/applications/
|
|
|
|
|
|
%postun
|
|
|
scrollkeeper-update -q > /dev/null 2>&1 || :
|
|
|
+if [ $1 -eq 0 ]; then
|
|
|
+ glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
|
|
|
+ update-desktop-database %{_datadir}/applications/
|
|
|
+fi
|
|
|
|
|
|
%clean
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
%files -f %{name}.lang
|
|
|
%defattr(-, root, root, 0755)
|
|
|
-%doc AUTHORS ChangeLog COPYING NEWS README THANKS TODO
|
|
|
-%{_sysconfdir}/gconf/schemas/*
|
|
|
+%doc AUTHORS ChangeLog COPYING NEWS README THANKS
|
|
|
%{_bindir}/*
|
|
|
%{_libdir}/gtranslator
|
|
|
%{_datadir}/applications/*.desktop
|
|
|
+%{_datadir}/glib-2.0/schemas/org.gnome.gtranslator.*gschema.xml
|
|
|
%{_datadir}/gnome/help/gtranslator
|
|
|
%{_datadir}/gtranslator
|
|
|
%{_datadir}/omf/gtranslator
|
|
@@ -127,6 +136,12 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
|
|
%changelog
|
|
|
+* Wed Oct 13 2010 Yasumichi Akahoshi <yasumichi@vinelinux.org> 1.9.12-1
|
|
|
+- new upstream release
|
|
|
+- rebuild dependency
|
|
|
+- replace GConf2 by glib-compile-schemas
|
|
|
+- care desktop-files
|
|
|
+
|
|
|
* Thu Mar 11 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.9.9-1
|
|
|
- new upstream release
|
|
|
- add BuildRequires: unique-devel
|