vtg-0.5.0-1kkr2009.0.spec

%define name           vtg
%define version        0.5.0
%define release        %mkrel 1

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

%define __autoreconf   %{_bindir}/autoreconf


Summary:        Vala Toys for gEdit
Name:           %{name}
Version:        %{version}
Release:        %{release}
Source:         %{name}-%{version}.tar.bz2
  # Size  : 511,549
  # MD5   : 53c65e9c11a1335adb0f7faf0b85151a
  # SHA-1 : 38393482d6c842967983981c1e4c17392e035638
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.6 gtksourcecompletion >= 0.7.0 readline
BuildRequires:  gedit-devel >= 2.24.0 vala-devel >= 0.7.6 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
%{__sed} -i 's:${prefix}/doc/vtg:%{buildroot}/%{_datadir}/doc/%{name}:' Makefile.am
%{__autoreconf} --force --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
* 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