vtg-0.5.0-0.20090703.1kkr2009.0.spec

%define name           vtg
%define version        0.5.0
%define rel            0.20090703
%define release        %mkrel %{rel}
%define subrel         1

%define vtgdir         %{_datadir}/%{name}
%define geditplugindir %{_libdir}/gedit-2/plugins

%define __autoreconf   %{_bindir}/autoreconf
%define __intltoolize  %{_bindir}/intltoolize


Summary:        Vala Toys for gEdit
Name:           %{name}
Version:        %{version}
Release:        %{release}
Source:         %{name}-%{version}-%{rel}.tar.lzma
  # Size  : 149,117
  # MD5   : 5b61ec19197a7c2f460743bb86590a64
  # SHA-1 : 158a00bbddfafb39d5705082119c2a0d1b820675
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
Requires:       gedit >= 2.24.0 vala >= 0.7.4 gtksourcecompletion >= 0.7.0 readline
BuildRequires:  gedit-devel >= 2.24.0 vala-devel >= 0.7.4 libgtksourcecompletion-devel >= 0.7.0 autoconf 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 -n %{name}-read-only
%{__sed} -i 's:${prefix}/doc/vtg:%{buildroot}/%{_datadir}/doc/%{name}:' Makefile.am
%{__intltoolize}
%{__autoreconf} --install


%build
%configure2_5x
%make


%install
%{__rm} %{buildroot} -fr
%makeinstall
%{__lzma} %{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
%{geditplugindir}/libvtg.*
%{geditplugindir}/vtg.gedit-plugin
%{vtgdir}/


%changelog
* Fri Jul 03 2009 kakurasan <kakurasan AT gmail DOT com> 0.5.0-0.20090703.1kkr2009.0
- initial build