vtg-0.6.1-1kkr2010.0.spec
%define name vtg
%define version 0.6.1
%define release %mkrel 1
Summary: Vala Toys for gEdit
Name: %{name}
Version: %{version}
Release: %{release}
Source: %{name}-%{version}.tar.bz2
# Size : 533,222
# MD5 : 066cb84ebcb5ba5508286473d6a91e28
# SHA-1 : 4b6c67b4c5726c50525ccf2e0b92514bab3a7dd1
URL: http://code.google.com/p/vtg/
# The entire source code is GPLv2+ except vsc/ which is LGPLv2+
License: GPLv2+ and LGPLv2+
Group: Editors
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildRequires: gedit-devel >= 2.22.0 vala-devel >= 0.7.7 libgtksourcecompletion-devel >= 0.7.0 intltool readline-devel libGConf2-devel >= 2.22.0
%description
Vala Toys for gEdit is an experimental collection of plugins that extends the gEdit editor to make it a better programmer editor for the Vala language.
%description -l ja
Vala Toys for gEditはgEditエディタをVala言語プログラミング向けに機能拡張するための実験的なプラグイン集です。
%prep
%setup -q
# docdir
%{__sed} -i 's:${prefix}/doc/vtg:%{buildroot}/%{_datadir}/doc/%{name}:' Makefile.in
# "str-fmt" fix
%{__sed} -i 's:\(dialog = g_object_ref_sink ((GtkMessageDialog\*) gtk_message_dialog_new (NULL, GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE\):\1, "%s":' vtg/vtgutils.c
%build
%configure2_5x
%make
%install
%{__rm} %{buildroot} -fr
%makeinstall
%{__xz} %{buildroot}/%{_datadir}/doc/%{name}/*
#%find_lang %{name}.lang
%clean
%{__rm} %{buildroot} -fr
#%files -f %{name}.lang
%files
%defattr(-, root, root)
%{_bindir}/vala-gen-project
%{_bindir}/vsc-shell
%{_mandir}/man1/vala-gen-project.1*
%{_docdir}/%{name}/
%{_datadir}/locale/*/LC_MESSAGES/%{name}.mo
%{_libdir}/gedit-2/plugins/libvtg.*
%{_libdir}/gedit-2/plugins/vtg.gedit-plugin
%{_datadir}/%{name}/
%changelog
* Wed Jan 20 2010 kakurasan <kakurasan AT gmail DOT com> 0.6.1-1kkr2010.0
- new version
- drop unneeded Requires
* Wed Oct 07 2009 kakurasan <kakurasan AT gmail DOT com> 0.6.0-1kkr2009.0
- new version
* Mon Sep 28 2009 kakurasan <kakurasan AT gmail DOT com> 0.6.0-0.20090928.1kkr2009.0
- new version
* Sun Sep 27 2009 kakurasan <kakurasan AT gmail DOT com> 0.5.0-1kkr2009.0
- new version
* Fri Jul 03 2009 kakurasan <kakurasan AT gmail DOT com> 0.5.0-0.20090703.1kkr2009.0
- initial build