packages: gtranslator/gtranslator.spec, gtranslator/gtranslator-disable-des...

patrys patrys at pld-linux.org
Fri Feb 12 10:51:12 CET 2010


Author: patrys                       Date: Fri Feb 12 09:51:12 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- 1.9.8
- TODO: -devel and -apidocs packages

---- Files affected:
packages/gtranslator:
   gtranslator.spec (1.36 -> 1.37) , gtranslator-disable-desktop-update.patch (NONE -> 1.1)  (NEW), gtranslator-configure_in.patch (1.1 -> NONE)  (REMOVED), gtranslator-locale_names.patch (1.4 -> NONE)  (REMOVED), gtranslator-rarian.patch (1.1 -> NONE)  (REMOVED)

---- Diffs:

================================================================
Index: packages/gtranslator/gtranslator.spec
diff -u packages/gtranslator/gtranslator.spec:1.36 packages/gtranslator/gtranslator.spec:1.37
--- packages/gtranslator/gtranslator.spec:1.36	Fri Mar 21 14:34:05 2008
+++ packages/gtranslator/gtranslator.spec	Fri Feb 12 10:51:06 2010
@@ -2,19 +2,18 @@
 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
+Version:	1.9.8
 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
-Patch2:		%{name}-rarian.patch
+Source0:	http://ftp.gnome.org/pub/GNOME/sources/gtranslator/1.9/%{name}-%{version}.tar.bz2
+# Source0-md5:	8f8b967eda9f228c680375fd731d5c6f
+Patch0:		%{name}-disable-desktop-update.patch
 URL:		http://gtranslator.sourceforge.net/
 BuildRequires:	autoconf
 BuildRequires:	automake
+BuildRequires:	gdl-devel >= 2.26.0
 BuildRequires:	gettext-devel
 BuildRequires:	gnome-common >= 2.8.0
 BuildRequires:	gnome-vfs2-devel >= 2.0.0
@@ -26,6 +25,8 @@
 BuildRequires:	libxml2-devel >= 2.4.12
 BuildRequires:	pkgconfig
 BuildRequires:	scrollkeeper
+Requires(post,preun):	GConf2
+Requires(post,postun):	hicolor-icon-theme
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -41,16 +42,11 @@
 %prep
 %setup -q
 %patch0 -p1
-%patch1 -p1
-%patch2 -p1
-
-mv -f po/{no,nb}.po
-sed -i 's/Categories=.*/Categories=GTK;GNOME;Development;Translation;/' data/desktop/gtranslator.desktop.in
 
 %build
 %{__glib_gettextize}
 %{__intltoolize}
-%{__aclocal}
+%{__aclocal} -I m4
 %{__autoheader}
 %{__automake}
 %{__autoconf}
@@ -62,30 +58,47 @@
 rm -rf $RPM_BUILD_ROOT
 
 %{__make} install \
-	DESTDIR=$RPM_BUILD_ROOT \
-	Applicationdir=%{_desktopdir}
+	DESTDIR=$RPM_BUILD_ROOT
+
+rm $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins/*.{a,la}
 
-%find_lang %{name} --with-gnome
+%find_lang %{name} --with-gnome --with-omf
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post   -p /usr/bin/scrollkeeper-update
-%postun -p /usr/bin/scrollkeeper-update
+%post
+%gconf_schema_install gtranslator.schemas
+%update_icon_cache hicolor
+/usr/bin/scrollkeeper-update
+
+%preun
+%gconf_schema_uninstall gtranslator.schemas
+
+%postun
+%update_icon_cache hicolor
+/usr/bin/scrollkeeper-update
 
 %files -f %{name}.lang
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog DEPENDS HACKING NEWS README THANKS TODO
 %attr(755,root,root) %{_bindir}/*
+%{_sysconfdir}/gconf/schemas/gtranslator.schemas
+%dir %{_libdir}/%{name}
+%dir %{_libdir}/%{name}/plugins
+%attr(755,root,root) %{_libdir}/%{name}/plugins/lib*.so
+%attr(755,root,root) %{_libdir}/%{name}/plugins/gtr*.plugin
 %dir %{_datadir}/%{name}
-%{_datadir}/%{name}/colorschemes
 %{_datadir}/%{name}/dtd
-%attr(755,root,root) %{_datadir}/%{name}/scripts
-%{_datadir}/mime-info/*
+%{_datadir}/%{name}/pixmaps
+%{_datadir}/%{name}/ui
+%{_datadir}/%{name}/po.lang
+%{_datadir}/%{name}/*.xml
+%{_iconsdir}/hicolor/*/*/*.png
+%{_iconsdir}/hicolor/*/*/*.svg
 %{_pixmapsdir}/*
 %{_desktopdir}/*.desktop
 %{_mandir}/man1/*
-%{_omf_dest_dir}/%{name}
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -93,6 +106,10 @@
 All persons listed below can be rearched at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.37  2010/02/12 09:51:06  patrys
+- 1.9.8
+- TODO: -devel and -apidocs packages
+
 Revision 1.36  2008/03/21 13:34:05  sls
 - added rarian.patch
 

================================================================
Index: packages/gtranslator/gtranslator-disable-desktop-update.patch
diff -u /dev/null packages/gtranslator/gtranslator-disable-desktop-update.patch:1.1
--- /dev/null	Fri Feb 12 10:51:12 2010
+++ packages/gtranslator/gtranslator-disable-desktop-update.patch	Fri Feb 12 10:51:06 2010
@@ -0,0 +1,19 @@
+--- gtranslator-1.9.8/data/desktop/Makefile.am~	2010-02-07 20:38:35.000000000 +0100
++++ gtranslator-1.9.8/data/desktop/Makefile.am	2010-02-12 10:27:44.371499317 +0100
+@@ -19,16 +19,4 @@
+ 
+ CLEANFILES = $(Application_DATA)
+ 
+-UPDATE_DESKTOP = \
+-	if [ -f $(Applicationdir)/defaults.list ] ; then \
+-		if which update-desktop-database>/dev/null 2>&1 ; then \
+-			update-desktop-database $(Applicationdir); \
+-		fi \
+-	fi
+-
+-install-data-hook:
+-	$(UPDATE_DESKTOP)
+-
+-uninstall-hook:
+-	$(UPDATE_DESKTOP) 
+ -include $(top_srcdir)/git.mk
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gtranslator/gtranslator.spec?r1=1.36&r2=1.37&f=u



More information about the pld-cvs-commit mailing list